As configured in my dotfiles.
start new:
tmux
start new with session name:
! Molokai theme | |
*xterm*background: #101010 | |
*xterm*foreground: #d0d0d0 | |
*xterm*cursorColor: #d0d0d0 | |
*xterm*color0: #101010 | |
*xterm*color1: #960050 | |
*xterm*color2: #66aa11 | |
*xterm*color3: #c47f2c | |
*xterm*color4: #30309b | |
*xterm*color5: #7e40a5 |
var http = require('http'), | |
fileSystem = require('fs'), | |
path = require('path') | |
util = require('util'); | |
http.createServer(function(request, response) { | |
var filePath = 'path_to_file.mp3'; | |
var stat = fileSystem.statSync(filePath); | |
response.writeHead(200, { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
import sys | |
import colorsys | |
from colorz import colorz | |
WALLPAPER = '/home/james/.wallpaper' | |
COLORS = '/home/james/.colors' | |
XRESOURCES = '/home/james/.Xresources' | |
cols = '' | |
xres = """ |
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 network-interface | |
echo | |
echo e.g. $0 eth0 | |
echo | |
echo shows packets-per-second |
/* | |
Tired of the same old bootstrapped site? | |
Miss the trendy, hip Geocities look? | |
This bookmarklet will fix that in a click! | |
Derived from Bootstrap Geocities theme at http://code.divshot.com/geo-bootstrap/ | |
Simply add new bookmark, edit url, and add bottom code in place of url. Whenevver you miss Geocities, click it. | |
*/ |
// http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3 | |
.tabs-below, .tabs-right, .tabs-left { | |
.nav-tabs { | |
border-bottom: 0; | |
} | |
} | |
.tab-content > .tab-pane, | |
.pill-content > .pill-pane { | |
display: none; |
var request = require('request'); | |
var chp = require('child_process'); | |
// read the npm proxy settings | |
chp.exec('npm config get proxy', function(error, stdout, stderr){ | |
var options = { | |
// repare our target url | |
'uri': 'http://mimosa-data.herokuapp.com/modules' | |
}; | |
// stdout consists of linefeeds |
{ | |
"name": "Durandal Mimosa Skeleton", | |
"version": "2.0.0", | |
"dependencies": { | |
"jquery":"1.9.1", | |
"requirejs":"2.1.8", | |
"requirejs-text":"2.0.3", | |
"knockout.js":"2.3.0", | |
"bootstrap":"2.3.2", | |
"font-awesome":"3.2.1", |