This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| var express = require('express') | |
| , cookieSessions = require('./cookie-sessions'); | |
| var app = express(); | |
| app.use(express.cookieParser('manny is cool')); | |
| app.use(cookieSessions('sid')); | |
| app.get('/', function(req, res){ | |
| req.session.count = req.session.count || 0; |
There is no span1..15 styles, instead your css defines your layout and your html remains semantic and not polluted with display information. As it should be.
The markup is incredibly easy, you specify the wrappers width, and then each columns width in percentages. Every other grid framework I've found is incredibly complicated with this.
It allows you to have the exact same markup, and completely different styles for different devices, resolutions, stylesheets, whatever. As it should be.
| function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
| function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
| function trim(s) { return rtrim(ltrim(s)); } | |
| BEGIN { | |
| # whatever | |
| } | |
| { | |
| # whatever | |
| } | |
| END { |
| /etc/zshenv | |
| ~/.zshenv | |
| # if login shell | |
| /etc/zprofile | |
| ~/.zprofile | |
| #if interactive shell | |
| /etc/zshrc | |
| ~/.zshrc |
| "\e[1~": beginning-of-line | |
| "\e[4~": end-of-line | |
| "\e[5~": history-search-backward | |
| "\e[6~": history-search-forward | |
| "\e[3~": delete-char | |
| "\e[2~": quoted-insert | |
| "\e[5C": forward-word | |
| "\e[5D": backward-word | |
| "\e\e[C": forward-word | |
| "\e\e[D": backward-word |
| #!/usr/bin/env python | |
| #-*- coding:utf-8 -*- | |
| import imaplib | |
| import getpass | |
| import argparse | |
| argparser = argparse.ArgumentParser(description="Dump a IMAP folder into .eml files") | |
| argparser.add_argument('-s', dest='host', help="IMAP host, like imap.gmail.com", required=True) | |
| argparser.add_argument('-u', dest='username', help="IMAP username", required=True) |
| var flatiron = require('flatiron') | |
| , connect = require('connect') | |
| , path = require('path') | |
| , fs = require('fs') | |
| , plates = require('plates') | |
| , director = require('director') | |
| , util = require('util') | |
| , keys = require('./auth_keys') | |
| , passport = require('passport') | |
| , TwitterStrategy = require('passport-twitter').Strategy |
| /** | |
| * A proof of concept monkeypatch to make Cloud9 IDE work on a tablet. | |
| * Since i'm an extremely lazy bastard I prepended this snippet directly in package/client/js/apf_release.js | |
| * | |
| * What does it do? | |
| * - It fires a doubleclick for a 2-finger tap | |
| * - It fires a mousewheel up / down event for a 2-finger swipe up / down. | |
| * | |
| * How does it work? | |
| * Prepend the functions below to <cloud9>/package/client/js/apf_release.js, save, load in tablet. |
| var tty = require('tty'), | |
| spawn = require('child_process').spawn; | |
| var child = spawn('vim'); | |
| child.stdout.pipe(process.stdout); | |
| child.stderr.pipe(process.stderr); | |
| process.stdin.pipe(child.stdin); | |
| process.stdin.resume(); | |
| tty.setRawMode(true); |