As configured in my dotfiles.
start new:
tmux
start new with session name:
function uuid() { | |
var uuid = "", i, random; | |
for (i = 0; i < 32; i++) { | |
random = Math.random() * 16 | 0; | |
if (i == 8 || i == 12 || i == 16 || i == 20) { | |
uuid += "-" | |
} | |
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16); | |
} |
// Put this file in Program Files\Adobe\Photoshop\Presets\Scripts\ | |
// In PhotoShop menu File > Automate > Scripts: layersToSprite.js | |
// Arrange layers into a sprite sheet. | |
if (documents.length > 0) | |
{ | |
// -------------------------- | |
docRef = activeDocument; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
The "WTH" Public License | |
Copyright (C) 2012 Paul Isaac | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
#. You can do whatever-the-heck you like with this code. |
// set-up a connection between the client and the server | |
var socket = io.connect(); | |
// let's assume that the client page, once rendered, knows what room it wants to join | |
var room = "abc123"; | |
socket.on('connect', function() { | |
// Connected, let's sign-up for to receive messages for this room | |
socket.emit('room', room); | |
}); |
jsbin.settings.editor.theme = "monokai"; | |
jsbin.settings.editor.indentUnit = 4; | |
jsbin.settings.editor.smartIndent = true; | |
jsbin.settings.editor.tabSize = 4; | |
jsbin.settings.editor.indentWithTabs = true; | |
jsbin.settings.editor.autoClearEmptyLines = true; | |
jsbin.settings.editor.lineWrapping = true; | |
jsbin.settings.editor.lineNumbers = true; | |
jsbin.settings.editor.matchBrackets = true; |
ffmpeg -i <audio.aac> -acodec libmp3lame <audio.mp3> |
/* jerev - 10/2012 - parallax.js | |
Be sure to require plugins.parallax, and place this file in lib/plugins/ | |
Parallax usage | |
p = new Parallax(); | |
p.add('path/to/image.ext', {distance: 1, y: 0}) | |
p.add('path/to/other/image.ext', {distance: 5, y: 0}) | |
p.move(speed); |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000