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
type StopItProps<T> = { | |
items: T[] | |
callback: (item: T, index: number) => JSX.Element | |
} | |
const stopIt = <T,>(items: StopItProps<T>['items']) => ( | |
callback: StopItProps<T>['callback'] | |
): JSX.Element[] => | |
items.map((item, i) => ( | |
<React.Fragment key={`corey-was-here-${i}-${Date.now()}`}>{callback(item, i)}</React.Fragment> |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
public static void printPermissions(Context context) { | |
PackageInfo android; | |
try { | |
android = context.getPackageManager().getPackageInfo("android", PackageManager.GET_PERMISSIONS); | |
} catch (PackageManager.NameNotFoundException e) { | |
e.printStackTrace(); | |
return; | |
} | |
PermissionInfo[] permissions = android.permissions; |
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
/*jshint expr: true, curly: false, unused: false, browser: true*/ | |
/*global $, Ember, iScroll, ExpandScroll*/ | |
'use strict'; | |
var App = Ember.Application.create({ | |
LOG_TRANSITIONS: true, | |
ready: function () { | |
document.addEventListener('touchmove', function (e) { | |
e.preventDefault(); |
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
App.Router.map(function() { | |
this.resource('happs', function() { | |
this.route('new'); | |
this.resource('happ', { path: ':happ_name'}, function() { | |
this.route('edit'); | |
}); | |
}); | |
}); | |
App.HappsRoute = Ember.Route.extend({ |
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 now = new Date(); | |
App.Conversation.FIXTURES = [ | |
{ | |
id: 1, | |
messages: [{ | |
id: 1, | |
user: 2, | |
text: "We are having such a blast at Sam's birthday party!", | |
conversation_id: 0, | |
captures: [{ |
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
/*jshint expr: true, curly: false, unused: false, browser: true*/ | |
/*global $, Ember, iScroll, ExpandScroll*/ | |
'use strict'; | |
var App = Ember.Application.create({ | |
LOG_TRANSITIONS: true, | |
ready: function () {} |
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 trackEvent = { | |
"event": "test tracking pixel", | |
"properties": { | |
"token": "SHHH!IT'S_SECRET!", | |
"time": Date.now(), | |
"campaign": "ad4game" | |
} | |
}; | |
var str = btoa(JSON.stringify(test)); |
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
info: Creating snapshot 0.0.1-38 | |
info Uploading: [=============================] 100% | |
info: Updating app Buskly | |
info: Activating snapshot 0.0.1-38 for Buskly | |
info: Starting app Buskly | |
error: Error running command deploy | |
error: socket hang up | |
info: The nodejitsu api reset the connection | |
help: This error may be due to the application or the drone server | |
help: For help with this error contact Nodejitsu Support: |
NewerOlder