This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |