Skip to content

Instantly share code, notes, and snippets.

@jpotts18
jpotts18 / caudio
Created July 26, 2016 16:55 — forked from davidrichards/caudio
Collecting ffmpeg snippets that work for me and converting them to reusable scripts.
#!/usr/bin/env bash
set -e
gain=${3-"2"}
if [ "$#" -lt 2 ]; then
echo "Usage: $0 input.aifc output.aifc [gain=2]"
exit 1
else
angular.module('bs.common.models').factory('AuthInterceptor', function ($rootScope, $q, $window) {
return {
request: function (config) {
config.headers = config.headers || {};
var token = $window.localStorage.getItem('user-token');
if (token) {
config.headers.Authorization = 'Bearer ' + token;
}
return config;
},
package com.rain.example.data.provider;
import com.rain.example.data.database.RainEmployeeDatabase;
import com.rain.example.data.database.table.*;
import android.provider.BaseColumns;
import android.text.TextUtils;
import android.content.ContentUris;
import android.database.sqlite.SQLiteQueryBuilder;