http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
# -*- coding: utf-8 -*- | |
""" | |
Sample report generation script from pbpython.com | |
This program takes an input Excel file, reads it and turns it into a | |
pivot table. | |
The output is saved in multiple tabs in a new Excel file. | |
""" |
# -*- coding: utf-8 -*- | |
""" | |
Sample report generation script from pbpython.com | |
This program takes an input Excel file, reads it and turns it into a | |
pivot table. | |
The output is saved in multiple tabs in a new Excel file. | |
""" |
# -*- coding: utf-8 -*- | |
""" | |
Sample report generation script from pbpython.com | |
This program takes an input Excel file, reads it and turns it into a | |
pivot table. | |
The output is saved in multiple tabs in a new Excel file. | |
""" |
from SimpleCV import Image, Color, Display | |
# Make a function that does a half and half image. | |
def halfsies(left,right): | |
result = left | |
# crop the right image to be just the right side. | |
crop = right.crop(right.width/2.0,0,right.width/2.0,right.height) | |
# now paste the crop on the left image. | |
result = result.blit(crop,(left.width/2,0)) | |
# return the results. |
from itertools import izip | |
import re | |
output_file = 'dataset.csv' | |
input_files = { | |
'train/X_train.txt': 'train/y_train.txt', | |
'test/X_test.txt': 'test/y_test.txt' | |
} | |
def getOutputLines(filenames): |
http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
#!/usr/bin/env python | |
# $ cat ipsec_conf.tmpl | |
# {# | |
# | |
# cgw_in_addr: customer_gateway tunnel_inside_address ip_address | |
# cgw_in_cidr: customer_gateway tunnel_inside_address network_cidr | |
# vgw_in_addr: vpn_gateway tunnel_inside_address ip_address | |
# vgw_in_cidr: vpn_gateway tunnel_inside_address network_cidr | |
# cgw_out_addr: customer_gateway tunnel_outside_address |
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 file partSizeInMb"; | |
exit 0; | |
fi | |
file=$1 | |
if [ ! -f "$file" ]; then |
# Create an index: | |
# | |
curl -XDELETE 'http://127.0.0.1:9200/articles' | |
curl -XPUT 'http://127.0.0.1:9200/articles' | |
# Insert the action mapping, as a child of articles: | |
# | |
curl -XPUT 'http://127.0.0.1:9200/articles/article/_mapping' -d ' | |
{ | |
"article": { |