Skip to content

Instantly share code, notes, and snippets.

View jhliberty's full-sized avatar
:octocat:
It's a rails kind of year

John-Henry Liberty jhliberty

:octocat:
It's a rails kind of year
View GitHub Profile
@eirikb
eirikb / example.js
Last active August 29, 2015 14:17
nodify
var nodify = require('nodify');
// Prints build time
console.log(nodify(function() {
return new Date();
}));
// Prints current time
console.log(new Date());
@jhliberty
jhliberty / build.sh
Last active February 21, 2016 19:24 — forked from patrickarlt/build.sh
ES 7 async/await demo!
babel github-es6.js -o github.js --optional runtime --experimental
@runspired
runspired / CurrentSetup.md
Last active January 18, 2016 15:49
Using Pods in Ember
adapters/
  foo.js
  
models/
  foo.js
  
serializers/
  foo.js
@djtech42
djtech42 / logicproxScripterEvents
Created October 11, 2015 01:21
Logic Pro X MIDI Scripter Javascript Events
//-----------------------------------------------------------------------------
// EventTypes.js
//-----------------------------------------------------------------------------
// required event class definitions for MIDI events
//-----------------------------------------------------------------------------
// Event : base class for all events
//-----------------------------------------------------------------------------
@tomdale
tomdale / deploy.js
Created December 22, 2015 03:32
Script for deploying zip of FastBoot build to S3
#!/usr/bin/env node
var AWS = require('aws-sdk');
var RSVP = require('rsvp');
var exec = RSVP.denodeify(require('child_process').exec);
var fs = require('fs-promise');
var chalk = require('chalk');
var crypto = require('crypto');
@rondagdag
rondagdag / LittlebitsWebSocket.cs
Created January 3, 2016 02:53
Littlebits Web Socket using WebSocketSharp.Net and Newtonsoft.Json
using UnityEngine;
using System.Collections;
using System;
using System.Security.Policy;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using WebSocketSharp;
using WebSocketSharp.Net;
@bbozo
bbozo / install.sh
Created January 26, 2016 09:24
Heroku deployment script
#!/bin/bash
set -e
# set -x # -> for debug
#rm -rf /tmp/heroku
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1) /'
@zacharygolba
zacharygolba / posts.js
Created March 15, 2016 19:07
Lux Controller - Example 1
import { Controller } from 'lux-framework';
import setUser from '../middleware/set-user';
class PostsController extends Controller {
params = [
'body',
'isPublic',
'userId'
];
@zacharygolba
zacharygolba / users.js
Created March 15, 2016 19:09
Lux Controller - Example 2
import { Controller, action } from 'lux-framework';
class UsersController extends Controller {
params = [
'name',
'email',
'password'
];
@action