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
platform :ios, '9.3' | |
target 'rentcssbeta' do | |
rn_path = '../node_modules/react-native' | |
pod 'react-native-maps', path: '../node_modules/react-native-maps' | |
pod 'RNFirebase', path: '../node_modules/react-native-firebase/ios' | |
pod 'Firebase/Core' | |
pod 'Firebase/Messaging' | |
pod 'Firebase/Crash' |
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
var sourceMap = require('source-map'); | |
var convert = require('convert-source-map'); | |
var fs = require('fs'); | |
var source = 'PATH_TO_APP/Myapp.app/main.jsbundle'; | |
var content = fs.readFileSync(source, 'utf8'); | |
var json = convert.fromComment(content).toJSON(); | |
var smc = new sourceMap.SourceMapConsumer(json); | |
var position = smc.originalPositionFor({ |
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
module.exports = { | |
__proto__: null, | |
START: 0, | |
WORKER_READY: 2, | |
BUS_READY: 3, | |
BUS_DRAINED: 4, | |
BUS_END: 5, | |
WORKER_ERROR: 6, | |
}; |
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
// Example way to construct a Bus | |
// | |
// const ctrl = new SharedArrayBuffer(12); | |
// const size = new SharedArrayBuffer(4); | |
// let busSize = 4096; | |
// const data = new SharedArrayBuffer(busSize); | |
// const bufs = {ctrl,size,data,}; | |
// const bus = new Bus(bufs); | |
'use strict'; |
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
const spawn = require('child_process').spawn; | |
const command = 'node'; | |
const parameters = [path.resolve('program.js')]; | |
const child = spawn(command, parameters, { | |
stdio: [ 'pipe', 'pipe', 'pipe', 'ipc' ] | |
}); |
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
const cluster = require('cluster'); | |
const http = require('http'); | |
const numCPUs = require('os').cpus().length; | |
if (cluster.isMaster) { | |
// Fork workers. | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} |
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
const ipc = require('node-ipc'); | |
ipc.config.id = 'a-unique-process-name1'; | |
ipc.config.retry = 1500; | |
ipc.config.silent = true; | |
ipc.serve(() => ipc.server.on('a-unique-message-name', message => { | |
console.log(message); | |
})); | |
ipc.server.start(); |
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
// using ES6 Proxy to let Promises/Observables pretend like they're regular values. | |
// get the mapping function used for async objects | |
let getMapper = (target) => target instanceof Promise ? 'then' : | |
target instanceof Observable ? 'switchMap' : null; | |
// ^ fails if the Observable is in a local namespace e.g. Rx.Observable | |
// bind a value to its object if it's a function | |
let bindFn = (val, obj) => typeof val == 'function' ? val.bind(obj) : val; |
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
#!/bin/sh | |
# enable-charles-proxy.sh | |
# | |
# Created by John Boiles on 9/21/15. | |
# | |
# This script sets :NSAppTransportSecurity:NSAllowsArbitraryLoads to true in the Info.plist file if building the Debug configuration. | |
# This enables debugging from https proxies such as Charles. | |
INFO_PLIST="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" |
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
version: 2 | |
reference: | |
## Constants | |
gradle_cache_path: &gradle_cache_path | |
gradle_cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
workspace: &workspace | |
~/src | |
## Configurations | |
android_config: &android_config | |
working_directory: *workspace |
OlderNewer