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
# lazyload nvm
# all props goes to http://broken-by.me/lazy-load-nvm/
# grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/
lazynvm() {
unset -f nvm node npm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
}
@jhliberty
jhliberty / index.html
Created July 31, 2016 12:14 — forked from anonymous/index.html
Ember Starter Kit v.1.13 component playground - cart total // source http://jsbin.com/tureza/8
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="v.1.13 component playground - cart total">
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<!-- materialize -->
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
@jhliberty
jhliberty / GAME_MASTER_v0_1.protobuf
Created July 17, 2016 10:46 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@jhliberty
jhliberty / MIDI_scales.js
Created July 4, 2016 10:03 — forked from gleitz/MIDI_scales.js
MIDI scale arrays in Javascript
var scales = {
'natural major': [0,2,4,5,7,9,11,12],
'ionian': [0,2,4,5,7,9,11,12],
'major': [0,2,4,5,7,9,11,12],
'chromatic': [0,1,2,3,4,5,6,7,8,9,10,11,12],
'spanish 8 tone': [0,1,3,4,5,6,8,10,12],
'flamenco': [0,1,3,4,5,7,8,10,12],
'symmetrical': [0,1,3,4,6,7,9,10,12],
'inverted diminished': [0,1,3,4,6,7,9,10,12],
'diminished': [0,2,3,5,6,8,9,11,12],
@jhliberty
jhliberty / logicproxScripterEvents
Created June 13, 2016 06:04 — forked from djtech42/logicproxScripterEvents
Logic Pro X MIDI Scripter Javascript Events
//-----------------------------------------------------------------------------
// EventTypes.js
//-----------------------------------------------------------------------------
// required event class definitions for MIDI events
//-----------------------------------------------------------------------------
// Event : base class for all events
//-----------------------------------------------------------------------------
@jhliberty
jhliberty / component.js
Created May 17, 2016 17:31 — forked from aaronbhansen/component.js
UI Field helper {{ui-field}}
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['field'],
classNameBindings: ['is_error:error'],
model: null, // Model object being passed in
property: null, // The specific property on the model to look for
submitted: false,
show_error: true,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.js"></script>
<style id="jsbin-css">
body {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.js"></script>
<style id="jsbin-css">
body {
var Bar1 = base => class extends base {
componentWillMount(){
super.componentWillMount();
console.log('Bar1');
}
};
var Bar2 = base => class extends base {
componentWillMount(){
super.componentWillMount();