find . -name '*.pyc' | xargs rm
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
let element; | |
let scrollTop = 0; | |
let pinTop = 0; | |
let lastTime; | |
let options = { | |
lag: 50, | |
maxSpeed: 100, | |
frameRate: 30 | |
}; |
I hereby claim:
- I am kristofferh on github.
- I am hedstrom (https://keybase.io/hedstrom) on keybase.
- I have a public key whose fingerprint is 6059 DDBE 95B3 90F3 547B 3D12 16EB A687 B891 5B52
To claim this, I am signing this object:
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
Open FileMerge from command line | |
opendiff | |
If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to: | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer |
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
List just aliases | |
$ git config --get-regexp alias | |
List all config parameters | |
$ git config --list |
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
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-media-stream |
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
git archive --format zip --output /full/path/to/zipfile.zip master |
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
/** | |
* Check if :before pseudo selector is supported. This can be useful for sprites. | |
* usage: if(!pseudoTest()) { | |
* // do polyfill | |
* } | |
*/ | |
var pseudoTest = (function() { | |
var cache; | |
return function() { |
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
/** | |
* Quick/dirty polyfill for placeholder attribute | |
* Requirements: jQuery | |
* Usage: | |
* var placeIt = Placeholder.init('input#search'); | |
*/ | |
var Placeholder = (function() { | |
// private methods |
NewerOlder