start new:
tmux
start new with session name:
tmux new -s myname
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, |
| // MIT http://rem.mit-license.org | |
| function trim(c) { | |
| var ctx = c.getContext('2d'), | |
| copy = document.createElement('canvas').getContext('2d'), | |
| pixels = ctx.getImageData(0, 0, c.width, c.height), | |
| l = pixels.data.length, | |
| i, | |
| bound = { | |
| top: null, |
| /** | |
| * A collection of functions responsible for performing translations between | |
| * longitude/latitude coordinates and points on a 1/1 square | |
| * (which you could then map to pixelspace) | |
| * | |
| * @author leebyron | |
| */ | |
| /** | |
| * lon double x coordinate in radians [-PI,PI) |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| mongoose.connect('localhost', 'testing_querybydate'); | |
| var schema = new Schema({ | |
| created: Date | |
| , data: {} | |
| }); | |
| var A = mongoose.model('A', schema); |
| var p1 = { | |
| x: 20, | |
| y: 20 | |
| }; | |
| var p2 = { | |
| x: 40, | |
| y: 40 | |
| }; |
| #cat | |
| %img{:alt => "cat", :src => "http://placekitten.com/500/333", :width => "500"}/ |
| // Listen for orientation changes | |
| window.addEventListener("orientationchange", function() { | |
| // Announce the new orientation number | |
| alert(window.orientation); | |
| }, false); | |
| // Listen for resize changes | |
| window.addEventListener("resize", function() { | |
| // Get screen size (inner/outerWidth, inner/outerHeight) | |