View error.json
"type": "TransformError",
"message": "SyntaxError /Users/jas/Desktop/emptybrc/index.ios.js: Unexpected token (17:6)",
"snippet": " 15 | render() {
16 | return (
> 17 | <View style={styles.container}>
| ^
18 | <Text style={styles.welcome}>
19 | Welcome to React Native!
20 | </Text>",
View gist:eaed649c94ef08b06b66
desiredAccuracy: 0,
stationaryRadius: 1,
distanceFilter: 0,
disableElasticity: false,
stopDetectionDelay: 1,
stopTimeout: 2,
activityType: 'Other',
activityRecognitionInterval: 0,
debug: true
View gist:170ca0afd47db6d3bdf8
Last login: Fri Sep 18 15:22:13 on console
/Users/jas/AwesomeProject/node_modules/react-native/packager/launchPackager.command ; exit;
➜ ~ /Users/jas/AwesomeProject/node_modules/react-native/packager/launchPackager.command ; exit;
View ReactLinkTroix
import React from 'react/addons';
import { Input } from 'react-bootstrap';
class StateProxy {
constructor(rootComponent, pathPrefix) {
this._rootComponent = rootComponent;
this._pathPrefix = pathPrefix;
get(path) {
return _.get(this._rootComponent.state, this._pathPrefix.concat(path));
View example.js
// (This is psuedo code)
class fooAction extends store {
addFoo(foo, bar, baz) {
return new Promise(function(reject, resolve) {
ajax(function(response, error) {
if (error) {
// I want to pass two arguments here but it will noly pass the first one.
reject({foo, error});
} else {

How to MITM with a chrome extension

  • Download these files and update them
  • goto chrome://extensions and drag the parent folder holding these files into the window (you may need to turn chrome extension developer mode on)
  • goto website and watch the magic.

For some extra awesomeness replace a javascript file with a js file from dropbox with ?dl=1 at the end of the js url. Now you can modify the file locally, it will update itself, and you just have to refresh the browser. Pretty cool!

View gist:12990abdbf3e2bf5f090
➜ browser.html-master python --version
Python 2.7.6
➜ browser.html-master npm install
npm WARN package.json browser.html@0.0.2 scripts['server'] should probably be scripts['start'].
node-uuid@1.4.3 node_modules/node-uuid
requirejs@2.1.16 node_modules/requirejs
immutable@3.6.2 node_modules/immutable
View A) CSS Animation Imports
CSS animations (and the GPU) are really good at animating position, rotation, or
scale, this combined with beautiful bezier curve transitions and if you're
creative you can come up with some pretty amazing animations. However if you've
ever worked on any large or more complex web animations, especially if you're
porting them over from after effects you're bond to run into some limit of the
web and pretty quickly and have to resort to expensive hacks.
The main walls I ran into with CSS can be solved by this; If CSS has the ability
to compose animations into a hierarchy of groups. After effects calls these
compositions. (
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:ddf0bef0f32ea4813fb4
extension Double {
var km: Double { return self * 1_000.0 }
var m: Double { return self }
var cm: Double { return self / 100.0 }
var mm: Double { return self / 1_000.0 }
var ft: Double { return self / 3.28084 }
let oneInch =
println("One inch is \(oneInch) meters")
// prints "One inch is 0.0254 meters"