Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
!Remap capslock to escape | |
clear lock | |
keycode 0x42 = Escape |
set nocompatible | |
colorscheme wombat | |
set cul | |
syntax on | |
filetype plugin indent on | |
au BufNewFile,BufRead *.djs set filetype=javascript | |
set smartindent |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
// This is ANGLE HLSL output. GLSL input here: https://gist.github.com/4209605 | |
float3 vec3(float x0, float x1, float x2) { | |
return float3(x0, x1, x2); | |
} | |
float4 vec4(float3 x0, float x1) { | |
return float4(x0, x1); | |
} | |
// Attributes | |
static float _P = { |
// This is autogenerated by Three.js: | |
precision highp float; | |
#define VERTEX_TEXTURES | |
#define MAX_DIR_LIGHTS 0 |
float3 vec3(float x0, float x1, float x2) { | |
return float3(x0, x1, x2); | |
} | |
float4 vec4(float3 x0, float x1) { | |
return float4(x0, x1); | |
} | |
static float _P = { | |
0 | |
}; | |
static float _a = { |
'use strict'; | |
var COMPILED = !0, goog = goog || {}; | |
goog.global = this; | |
goog.DEBUG = !1; | |
goog.LOCALE = "en"; | |
goog.provide = function (a) { | |
if (!COMPILED) { | |
if (goog.isProvided_(a)) | |
throw Error('Namespace "' + a + '" already declared.'); | |
delete goog.implicitNamespaces_[a]; |
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
if [ $# -lt 3 ]; then | |
echo "usage: sqlite2pg.sh sqlite_db_path pg_db_name pg_user_name"; | |
exit 1 | |
fi |
people: 96 | |
sophia: 58 | |
room: 50 | |
house: 47 | |
mom: 42 | |
big: 39 | |
going: 36 | |
guy: 31 | |
dartmouth: 29 | |
dream: 28 |
a big: 23 | |
sort of: 18 | |
going to: 18 | |
with mom: 16 | |
sophia and: 14 | |
old house: 14 | |
a lot: 13 | |
lots of: 13 | |
high school: 13 | |
mom and: 13 |