This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'RMagick' | |
# This script draws ukulele chords for use in | |
# tabs or elsewhere | |
# | |
# Author:: Tom MacWright (mailto:[email protected]) | |
# Copyright:: Copyright (c) 2008 Tom MacWright | |
# License:: BSD License | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function generate an array with all the information required to | |
* authenticate against Mollom. To prevent that requests are forged and | |
* that you are impersonated, each request is signed with a hash computed | |
* based on a private key and a timestamp. | |
* | |
* Both the client and the server share the secret key that is used to | |
* create the authentication hash based on a timestamp. They both hash | |
* the timestamp with the secret key, and if the hashes match, the | |
* authenticity of the message has been validated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGE:=osm2pgsql | |
VERSION:=0.65 | |
SVN:=$(shell svnversion) | |
CC = gcc | |
CXX = g++ | |
#alias pg_config='/opt/local/lib/postgresql83/bin/pg_config | |
CFLAGS += -g -O2 -Wall -Wextra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from optparse import OptionParser | |
import subprocess, os, re | |
''' | |
Runzip: recursively unzip | |
''' | |
parser = OptionParser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Usage: | |
python grow.py > grow.log & | |
''' | |
import time, os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update naf_join set ppexpend05i = int4(replace(replace(replace(ppexpend05, 'N/A', '0'), '$', ''), ',', '')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Restrict layer list, if requested | |
if self.layers and self.layers != self.name: | |
layers = self.layers.split(",") | |
for layer_num in range(len(m.layers)-1, -1, -1): | |
l = m.layers[layer_num] | |
if l.name not in layers: | |
del m.layers[layer_num] | |
if self.debug: | |
print >>sys.stderr, "Removed layer %s loaded from %s, not in list: %s" % (l.name, self.mapfile, layers) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Map srs="+proj=latlong +datum=WGS84" bgcolor="rgba(0,0,0,0)"> | |
<Style name="_public___osm_highways_new___the_geom__sql_20090614163732542_style"> | |
<Rule> | |
<Filter>([type]='motorway')</Filter> | |
<LineSymbolizer> | |
<CssParameter name="stroke">rgb(200,200,200)</CssParameter> | |
<CssParameter name="stroke-width">1.2</CssParameter> | |
<CssParameter name="stroke-linejoin">bevel</CssParameter> | |
<CssParameter name="stroke-linecap">square</CssParameter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -lR | grep -viE "334" | wc -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kml_layers = new Array(); | |
/** | |
* Process KML Layers | |
* | |
* @param layerOptions | |
* Object of options | |
* @param mapid | |
* Map ID | |
* @return |
OlderNewer