start new:
tmux
start new with session name:
tmux new -s myname
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| " Set colorscheme to solarized | |
| colorscheme solarized | |
| " Change the Solarized background to dark or light depending upon the time of | |
| " day (5 refers to 5AM and 17 to 5PM). Change the background only if it is not | |
| " already set to the value we want. | |
| function! SetSolarizedBackground() | |
| if strftime("%H") >= 5 && strftime("%H") < 17 | |
| if &background != 'light' | |
| set background=light |
| The Challenge | |
| ------------- | |
| Given the following riddle, write a regular expression describing all possible answers, | |
| assuming you never make a move which simply undoes the last one you made. | |
| The Riddle | |
| ---------- | |
| You are on your way somewhere, taking with you your cabbage, goat, and wolf, as always. | |
| You come upon a river and are compelled to cross it, but you can only carry one of the | |
| three companions at a time. None of them can swim because this isn't THAT kind of riddle. |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| __all__ = ["transform"] | |
| __version__ = '0.3' | |
| __author__ = 'Christoph Burgmer <[email protected]>' | |
| __url__ = 'http://github.com/cburgmer/upsidedown' |
| public class EZMap<T> { | |
| public static void main(String[] args) { | |
| Map<String,Object> m = hashMap( | |
| bob -> 5, | |
| TheGimp -> 8, | |
| incredibleKoolAid -> "James Taylor", | |
| heyArnold -> new Date() | |
| ); | |
| System.out.println(m); | |
| } |