Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| FROM debian:latest as builder | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get --no-install-recommends --yes install \ | |
| ca-certificates curl wget build-essential tar pkg-config \ | |
| alsa-utils lame libmp3lame-dev libpulse-dev libjack-jackd2-dev \ | |
| libaudio-dev libasound2-dev libshout3-dev libmp3lame-dev |
| <?php | |
| // update Controller.php as follows | |
| namespace App\Http\Controllers; | |
| use App\Services\TimeTravel; | |
| use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
| use Illuminate\Foundation\Bus\DispatchesJobs; | |
| use Illuminate\Foundation\Validation\ValidatesRequests; |
| <?php | |
| // 1. Register the routes | |
| Route::get('test/{lorem}', function ($lorem) { | |
| sleep(3); | |
| return response()->json([ | |
| 'message' => $lorem, | |
| 'token' => Str::random(), | |
| ]); |
| const express = require('express'); | |
| const app = express(); | |
| // Application | |
| app.get('/', function(req, res) { | |
| if (process.env.NODE_ENV === 'development') { | |
| for (var key in require.cache) { | |
| delete require.cache[key]; | |
| } | |
| } |
| <snippet> | |
| <content><![CDATA[ | |
| <i class="fa fa-fw fa-${1}"></i> | |
| ]]></content> | |
| <tabTrigger>fa</tabTrigger> | |
| <description>Font Awesome Icon</description> | |
| <scope>text.blade, text.html.blade, text.html</scope> | |
| </snippet> |
| package com.gabesechan.android.reusable.receivers; | |
| import java.util.Date; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.telephony.TelephonyManager; | |
| public abstract class PhonecallReceiver extends BroadcastReceiver { |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.DatagramPacket; | |
| import java.net.DatagramSocket; | |
| import java.net.HttpURLConnection; | |
| import java.net.InetSocketAddress; | |
| import java.net.SocketException; | |
| import java.net.URL; | |
| import java.util.Locale; |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso