Skip to content

Instantly share code, notes, and snippets.

View artjumble's full-sized avatar

Steve Mathews artjumble

View GitHub Profile
@artjumble
artjumble / ReactNativeStyles
Created March 27, 2015 04:51
React Native StyleSheet example
var styles = StyleSheet.create({
base: {
width: 38,
height: 38,
},
background: {
backgroundColor: '#222222',
},
active: {
borderWidth: 2,
var {
AppRegistry,
StyleSheet,
Text,
View,
} = React;
@artjumble
artjumble / git shortlist
Created September 26, 2013 18:13
Short list of git commands w/descriptions.
git add (add new files)
git commit -m "Message" (commit with message)
git checkout <name> (switch to branch)
git checkout -b <name> (create branch <name> and switch to it)
git merge <name> (merge <name> branch into current brnach)
git branch -d <name> (delete <name> branch)
git status (status of current branch)
git branch (list all branches)
@artjumble
artjumble / lib_app_index.js
Created April 18, 2012 17:01
Simplistic derby
var app = require('derby').createApp(module)
, get = app.get
, view = app.view
, ready = app.ready
// ROUTES //
// Derby routes can be rendered on the client and the server
get('/', function(page, model, params) {
page.render()