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 { get, post } = require('snekfetch'); | |
const express = require('express'); | |
const btoa = require('btoa'); | |
const app = express(); | |
const cfg = { | |
id: 'get_one', | |
secret: 'get_one' | |
}; |
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
class EventEmitter | |
/// Shared Instance. | |
public static var sharedInstance = EventEmitter() | |
// ReactNativeEventEmitter is instantiated by React Native with the bridge. | |
private static var eventEmitter: ReactNativeEventEmitter! | |
private init() {} |
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
// Save to... /Applications/Adobe Illustrator CC/Presets.localized/<LOCALE>/Scripts/ | |
// Polyfill for forEach | |
function forEach(array, fn, scope) { | |
scope = scope || array; | |
// array is cloned in order to allow mutations | |
// in `fn` but not suffer from them, so iteration | |
// keeps normally. | |
array = Array.prototype.slice.call(array,0); | |
for(var i = 0, len = array.length; i < len; i++) { |