$ [clone this gist]
$ hipley --dev
$ open http://localhost:3000
``
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
Atom.app |
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
variables.first = makeFirst(variables.first); | |
function makeFirst (first) { | |
return first + '(made)'; | |
} |
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
" be iMproved, required | |
set nocompatible | |
" required | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
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
/** | |
* History action creators. | |
*/ | |
import * as types from '../types' | |
export function resetHistory () { | |
return {type: types.HISTORY_RESET} | |
} |
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
Show hidden characters
{ | |
"auto_complete": false, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/SublimeLinter/Monokai Extended (SL).tmTheme", | |
"font_face": "Source Code Pro", | |
"font_size": 13.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
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
import _ from 'lodash' | |
import idgen from 'idgen' | |
import {List, Map, Record} from 'immutable' | |
import serialize from '../lib/serialize' | |
// Wraps a schema to provide the default values that an Immutable Record needs. | |
export default function CreateModel (schema, name = 'Model') { | |
// Create a 'defaults' object for the Record factory. | |
let defaults = _.reduce(schema, (result, opts, key) => { | |
return _.extend(result, { |
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
{ | |
"name": "example", | |
"scripts": { | |
"postinstall" : "node -e \"var s='../src/js',d='node_modules/@app',fs=require('fs');fs.exists(d,function(exists){exists||fs.symlinkSync(s,d,'dir')});\"" | |
} | |
} |
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
// ... | |
NSURL *jsCodeLocation; | |
/** | |
* This Replaces the regular OPTION1/OPTION2 business with the hard-coded IPs. | |
* @see https://gist.github.com/cpsubrian/5f3acf2b9ed1212ee33703a6bee63737 | |
* @see http://moduscreate.com/automated-ip-configuration-for-react-native-development/ | |
* @see https://github.com/facebook/react-native/pull/4681/files | |
*/ | |
#define AUTO_IP |