- Enum Get Name list
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>D3 Test</title> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [5,10,15,20,25]; |
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
def jsonp(f): | |
"""Wrap a json response in a callback, and set the mimetype (Content-Type) header accordingly | |
(will wrap in text/javascript if there is a callback). If the "callback" or "jsonp" paramters | |
are provided, will wrap the json output in callback({thejson}) | |
Usage: | |
@jsonp | |
def my_json_view(request): | |
d = { 'key': 'value' } |
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 main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
outter := make([][]uint8, dy) | |
for i:=0; i < dy; i++ { | |
inner := make([]uint8, dx) | |
for f:=0; f<dx; f++ { |
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
alter table dor_parcels add column full_address varchar(500); | |
update dor_parcels set full_address = coalesce(house, 0) || ' ' || coalesce(stdir, '') || ' ' || coalesce(stnam, '') || ' ' || coalesce(stdes, ''); | |
create index parcel_addr_idx on dor_parcels (full_address); | |
alter table dor_parcels add column ts_f_address tsvector; | |
update dor_parcels set ts_f_address = to_tsvector('english', coalesce(full_address,'')); | |
create index textsearch_address on dor_parcels using gin(ts_f_address); |
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
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" " required! | |
Bundle 'gmarik/vundle' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'tpope/vim-vinegar' | |
Bundle 'tpope/vim-surround' | |
Bundle 'tpope/vim-repeat' |
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
unzip PhiladelphiaHistoricSites_PhilaReg201201.zip | |
sudo -u postgres createdb philatour | |
sudo -u postgres shp2pgsql -I -s 2272 PhiladelphiaHistoricSites_PhilaReg201201.shp public.sites | sudo -u postgres psql -d philatour |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: | |
# arg1: xls file | |
# arg2: col position to check for dups | |
# | |
# file name without extension | |
base_name=$(echo $1 | cut -d. -f1) | |
# convert to csv | |
libreoffice --headless --convert-to csv $1 --outdir . |
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
{ | |
"features": [ | |
{ | |
"geometry": { | |
"coordinates": [ | |
[ | |
[ | |
-75.27592602596428, | |
39.89805555562 | |
], |
OlderNewer