git checkout master
git pull --rebase
to make sure you have the latest version of mastergit checkout feature/my-branch
git rebase master
... to rebase this branch from master- Optionally,
git push --force
to update the branch on github. This is useful for making sure it closes a pull request properly.
- Optionally,
git checkout master
git merge --no-ff feature/my-branch
... merge the branch into master, making sure there's a merge commit
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
$.getJSON('e1/me/track_likes.json?limit=200').done(function (likes) { | |
var list = likes.map(function (like, i) { | |
i++; | |
var sound = like.track; | |
return [ | |
'File' + i + '=' + sound.stream_url + "?client_id=" + require('config').get('client_id'), | |
'Title' + i + '=' + sound.title, | |
'Length' + i + '=' + Math.round(sound.duration / 1000) | |
].join('\n'); |
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
Disclaimer: We are not affiliated with GitHub in any way! | |
Random Hacks of Kindness Berlin, Dec 2011 #RHoKbln | |
Project: Broken Lifts | |
Next steps: | |
Backend team | |
create database with static data |
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
javascript:(function()%7Bconst adverbs %3D %5B'abruptly'%2C 'actively'%2C 'badly'%2C 'beautifully'%2C'briskly'%2C 'brutally'%2C 'carefully'%2C 'cheerfully'%2C'circularly'%2C 'clearly'%2C 'collectively'%2C 'comfortably'%2C'considerably'%2C 'continuously'%2C 'courageously'%2C 'crazily'%2C'creatively'%2C 'creditably'%2C 'dangerously'%2C 'delicately'%2C'delightfully'%2C 'destructively'%2C 'differently'%2C 'endlessly'%2C'enviously'%2C 'eternally'%2C 'expectedly'%2C 'expertly'%2C'financially'%2C 'firmly'%2C 'forcefully'%2C 'gloriously'%2C'growingly'%2C 'harmfully'%2C 'hatefully'%2C 'healthily'%2C'hopefully'%2C 'imitatively'%2C 'impressively'%2C 'inclusively'%2C'indicatively'%2C 'injuriously'%2C 'insultingly'%2C 'intentionally'%2C'irritatingly'%2C 'leadingly'%2C 'lightly'%2C 'livingly'%2C'madly'%2C 'massively'%2C 'monotonously'%2C 'movingly'%2C'powerfully'%2C 'quickly'%2C 'randomly'%2C 'sadly'%2C'securely'%2C 'sloppily'%2C 'sorrowfully'%2C 'speedily'%2C'truthfully'%2C 'uneasily'%2C 'wearily'%2C 'weirdly'%2C'wholehea |
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
/* | |
Below is an incomplete snippet of code which is used to implement the Lazy Require Calls | |
method described here http://spadgos.github.io/rupy13/#/29 | |
Basically, it takes an AST like this: | |
var Foo = require('foo'); | |
function bar() { | |
Foo.quux(); | |
} |
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
<div class="dashModContainer"> | |
<div class="box dashModContent"> | |
<div class="boxHead row subBelow"> | |
<div class="span11 dashModDrag"> | |
<h2 class="dashModTitle"> | |
Lines Modified | |
</h2> | |
</div> | |
<div class="span1 configureContainer"> | |
<button type="button" class=" dashModConfigure configureModule bare icon-gear mini iconText" data-form-url="/dashboard/modules/AX5LGVBXVMK94GXREDACTEDFSCUCYRFCSQOZVA/edit/"> |
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
_.bar() | |
{ | |
"0": { | |
"type": "CallExpression", | |
"start": 0, | |
"end": 7, | |
"callee": { | |
"type": "MemberExpression", | |
"start": 0, | |
"end": 5, |
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
{ | |
"csslint_options": { | |
"adjoining-classes": false | |
}, | |
"jshint_options": { | |
"asi": false, | |
"bitwise": true, | |
"boss": false, | |
"browser": true, | |
"curly": true, |
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
{ | |
"keys": ["alt+shift+6"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": | |
[ | |
[0, 0, 1, 2], [1, 0, 2, 1], |
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
$ pacmd | |
Welcome to PulseAudio! Use "help" for usage information. | |
>>> list-sinks | |
1 sink(s) available. | |
* index: 0 | |
name: <alsa_output.pci-0000_00_1b.0.analog-stereo> | |
driver: <module-alsa-card.c> | |
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY | |
state: SUSPENDED | |
suspend cause: IDLE |
NewerOlder