Public Gists by lwu

gist: 185488 Pressure-sensitive keyboard...
Gravatar
Fri Sep 11 11:36:24 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Pressure-sensitive keyboard IO in Ruby (experimental MSFT hw!)
gist: 156885 Experiment with Wikipedia o...
Gravatar
Mon Jul 27 19:25:16 -0700 2009
1
2
3
#!/usr/bin/ruby
#!/usr/bin/env ruby # MacPorts 1.87
 
Gravatar
Sat Jul 11 20:42:36 -0700 2009
1
2
3
This ruby script takes in a TSV of type co-occurrence probabilities,
does some simple filtering, and prints the output.
 
Gravatar
Fri Apr 24 14:08:30 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'open-uri'
gist: 87357 = AllisonF + Brianna + Cons...
Gravatar
Sun Mar 29 03:57:36 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
# primary source data: zteam car manifests :)
gist: 77921 Want to load compressed JSO...
Gravatar
Wed Mar 11 22:18:19 -0700 2009
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
gist: 58280 Download the OSM XML that c...
Gravatar
Wed Feb 04 11:16:18 -0800 2009
1
2
3
#!/usr/bin/env ruby
%w[open-uri hpricot].each {|lib| require lib }
 
gist: 57862 Get the shapefile for a que...
Gravatar
Tue Feb 03 17:04:27 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
%w[open-uri hpricot].each {|lib| require lib }
Gravatar
Wed Sep 03 19:21:17 -0700 2008
1
2
3
This Python code snippet demonstrates basic use of the proposed "PointDatasource"
object exposed by the Mapnik patch attached here: http://trac.mapnik.org/ticket/113
 
gist: 7382 Shoes + Mapnik = http://fli...
Gravatar
Tue Aug 26 17:09:15 -0700 2008
1
2
3
My first Shoes app! Shoes is a "Tiny Toolkit" for informal graphics and windowing:
  http://code.whytheluckystiff.net/shoes/
 
gist: 7199 DebugShoes, a quick sketch ...
Gravatar
Mon Aug 25 20:20:47 -0700 2008
1
2
3
# Shoes got you down? DebugShoes won't fail silently on ya...
#
class DebugShoes < Shoes
Gravatar
Mon Aug 18 22:03:19 -0700 2008
1
2
3
// This class implements a simple way of displaying point-based data in Mapnik
// (It has yet to be tested as Mapnik r729's memory_featureset is commented out now.)
//
gist: 5520 my .emacs cfg
Gravatar
Thu Aug 14 17:42:37 -0700 2008
1
2
3
;; lwu .emacs 2008 (CarbonEmacs)
 
;; paths and directories
Gravatar
Wed Aug 13 16:45:47 -0700 2008
1
2
3
128.12.16.0/255 Stanford.Res.Mirrielees
128.12.21.0/255 Stanford.Res.Manzanita.Lantana
128.12.22.0/255 Stanford.Res.Manzanita.KimballRF
gist: 5009 example code demonstrating ...
Gravatar
Mon Aug 11 22:18:38 -0700 2008
1
2
3
This code snippet, modifed from Mpanik's rundemo.cpp (r727, license LGPL),
renders the State of California using USGS state boundaries data.