Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
func main()
{
fmt.Printf("hello, world\n")
}
// Error:
from scons_go_support import *
import os
# Build programs
# Modify this to suit your program
main_package = go_env.Go(target='echo.out', source='echo.go')
program = go_env.GoProgram(target='echo', source=[main_package])
select(:id => 'num') do
option(@num.to_i == 10 ? {:selected => true} : {}){ "10" }
option(@num.to_i == 50 ? {:selected => true} : {}){ "50" }
option(@num.to_i == 100 ? {:selected => true} : {}){ "100" }
end
@hank
hank / Error
Created September 21, 2010 13:44
Installing linecache (0.43) with native extensions
/usr/local/rvm/rubies/ruby-head/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions':
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/local/rvm/rubies/ruby-head/bin/ruby extconf.rb
Can't handle 1.9.x yet
all:
g++ -o test test.cpp
section: screens
tardis:
impulse:
end
section: links
tardis:
down = impulse
impulse:
up = tardis
@hank
hank / SConstruct
Created April 3, 2011 17:52
Builds a LXPanel plugin
env = Environment(
LIBPREFIX = "",
)
# Grab all the pkg-config stuff.
env.ParseConfig('pkg-config --cflags --libs gtk+-2.0')
conf = Configure(env)
if not conf.CheckLib("cairo"):
print 'Could not find cairo library.'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1yDQCZLjxcIhepbNiPNPcM2qlEVEHNfaNswzVla0gZ3ULeTi+5CHcaEu1Po3LWLpVH9Ru7PvMhs5gl+r/aUmhLn/ymg1aKimpOrxJXbygyMXdMsjoHzhpBwLG7WbWSJ5Kon47heXeMZCHD7X6C8MbW2DIj/PSGW2LFcFwI5qpz7KZGQmZ3FVZaDIWOU3xpBZFFjT/OXAS9ZySYM6aR5h660RKX4PDR4txuHM+QEyYeBmhIJgHIoyTQnLtI2Yb5vEOwnHF4yiXwXBQ30LurhYWKAzDw9+RSAr3t5TSyFtAag9Jr7rCcwg9/fnSHVW6z11MmOuHyL0OwwNFxu4Bfmjyw== hank@tardis
@hank
hank / walkdata.txt
Created January 19, 2012 07:02
Walk Data
name,description,geometry,marker
1/16/12 7:08 PM (Start),,"<Point><coordinates>-76.827712,39.145476,29.299999237060547</coordinates></Point>",large_green
1/16/12 7:08 PM,,"<LineString><coordinates>-76.827712,39.145476,29.299999237060547 -76.827793,39.145555,52.400001525878906 -76.828042,39.145564,50.29999923706055 -76.828234,39.14553,57.099998474121094 -76.828334,39.145481,62.0 -76.828657,39.145497,61.0 -76.828961,39.145379,57.20000076293945 -76.829609,39.145241,61.70000076293945 -76.829702,39.145303,62.29999923706055 -76.829716,39.14545,59.099998474121094 -76.829961,39.146307,61.099998474121094 -76.829587,39.146508,62.900001525878906 -76.829498,39.146808,57.900001525878906 -76.829083,39.146878,54.29999923706055 -76.829038,39.146918,56.79999923706055 -76.829025,39.146975,58.79999923706055 -76.828927,39.147039,55.099998474121094 -76.828963,39.147192,56.099998474121094 -76.828818,39.14734,58.900001525878906 -76.828741,39.14737,60.20000076293945 -76.828627,39.147375,61.20000076293945 -76.828436,39.147316,59.9000
@hank
hank / fusionrunner.py
Created January 19, 2012 07:13
FusionRunner
#!/usr/bin/python
""" FusionRunner
Queries Google Fusion Tables for MyTracks data.
"""
__author__ = 'hardware.hank@gmail.com (Erik Gregg)'
### IMPORTS ###
import sys
sys.path.append("./fusion-tables-client-python-read-only/src/")
sys.path.append("./httplib2/python2")