Rule of thumb: when in doubt, C-g it out.
You simply can't get by without having these at your fingertips.
- C-x C-c - quit
- C-x C-s - save buffer
- C-x C-f - open file
- C-x b buffer name - switch to open buffer
define 'ExampleController', -> | |
class | |
# Save a reference to the view | |
constructor: (@view) -> | |
# Hook our method up to the view event | |
implements: | |
'click:logo': 'clickLogo' |
find . -name '*.js' | xargs wc -l |
#!/usr/bin/env ruby | |
file="~/.gitshots/#{Time.now.to_i}.jpg" | |
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__)) | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file} &" | |
end | |
exit 0 |
<wunderland-component attributes="name value values options type prefix_nodes"> | |
<template> | |
<template repeat="{{val, i in values}}"> | |
<div class="prefix_insertion" id="{{i | attach_prefix_node}}"></div> | |
<wunderland-select on-change="{{updateValue}}"> | |
<template repeat="{{opt in options}}"> | |
<wunderland-option selected="{{opt == val}}">{{opt}}</wunderland-option> | |
</template> | |
</wunderland-select> | |
<wunderland-button class="remove" context="danger" on-click="{{removeOption}}" index="{{i}}" size="small">Remove</wunderland-button> |
http://www.trn.gl/bhkr | |
INDEX/KEY/POSITION | |
/QFQ(FQ_Q)FS* | |
0 1Q 1.1.01 | |
1 1F 1.1.49 | |
2 1Q 1.2.01 | |
4 1F 1.2.49 |
import { combineReducers } from 'redux'; | |
function user(state = {}, action) { | |
switch (action.type) { | |
case UPDATE_USERNAME: | |
return { | |
...state, | |
name: action.payload | |
}; | |
} |
var Dilla = require('./index'); | |
var audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
var dilla = new Dilla(audioContext); | |
// Setup the standard metronome stuff | |
var high = { | |
'position': '*.1.01', | |
'freq': 440, | |
'duration': 15 | |
}; |
import { freeze, assoc } from 'icepick' | |
interface User { | |
/** | |
* Name of the user | |
*/ | |
readonly name: string | |
/** | |
* Age of the user | |
*/ |