This file contains hidden or 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
import { GraphRequest, GraphRequestManager } from 'react-native-fbsdk'; | |
//Gets all your friends who have used the app, exploding facebook's caching. | |
export const getFriends = async () => { | |
try { | |
let { pagedFriends, cursor } = await friendsRequest(); | |
let allFriends = pagedFriends; | |
while (pagedFriends.length > 0) { | |
let request = await friendsRequest(cursor); | |
pagedFriends = request.pagedFriends; |
This file contains hidden or 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
var async = require('async'); | |
var _ = require('underscore'); | |
module.exports = { | |
initialize: function(api, next){ | |
function nullOrErrorResult(err, result) { | |
return (err || result === null || result.length === 0); | |
} |
This file contains hidden or 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
#this is a very simple, work in progress helper method for stubbing the stripe checkout.js | |
#this creates a fake server that will generate stripe token as if it's coming from stripe. So we can test credit card input | |
class FakeStripe < Sinatra::Base | |
def self.boot | |
instance = new | |
Capybara::Server.new(instance).tap { |server| server.boot } | |
end | |
get '/checkout.js' do |
This file contains hidden or 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
(function (angular) { | |
'use strict'; | |
angular.module('iwillApp') | |
.run(function ($injector, $location, $rootScope, loginRedirectPath) { | |
if ($injector.has('$state')) { | |
new RouteSecurityManager($location, $rootScope, $injector.get('$state'), loginRedirectPath); | |
} | |
}); | |
function RouteSecurityManager($location, $rootScope, $state, path) { |
This file contains hidden or 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
=item B<check_live> { $username, $domain, \%data } | |
=back | |
=over | |
Checks if a certain subscriber is on a call. Returns true if they are and false if they are not. | |
=back |
This file contains hidden or 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
[common] | |
# Default Method to Request RESTXML or to send Params | |
DEFAULT_HTTP_METHOD = POST | |
# Incoming calls will always use those urls to post answer/hangup events | |
# By default, hangup url is same as answer url | |
DEFAULT_ANSWER_URL = http://testproject.heroku.com/ | |
#DEFAULT_HANGUP_URL = http://127.0.0.1:5000/hangup/ | |
# Set proxy if needed |
This file contains hidden or 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
root@web01-stg: | |
/opt/web/current(deploy)? $ bundle show acts_as_async | |
/opt/rubygems/gems/acts_as_async-0.2.4 | |
root@web01-stg: | |
/opt/web/current(deploy)? $ bundle show authlogic | |
/opt/rubygems/bundler/gems/authlogic-2e8613545c27 | |
root@web01-stg: | |
/opt/web/current(deploy)? $ |
This file contains hidden or 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
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:sl:mod_init: Initializing StateLess engine | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:tm:mod_init: TM - initializing... | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:rr:mod_init: rr - initializing | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:maxfwd:mod_init: initializing... | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:usrloc:ul_init_locks: locks array size 512 | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:registrar:mod_init: initializing... | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:textops:mod_init: initializing... | |
Mar 22 19:34:46 sip01-stg opensips[4234]: INFO:avpops:avpops_init: initializing... | |
Mar 22 19:34:46 sip01-stg opensips: INFO:core:daemonize: pre-daemon process exiting with -1 |