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 ( | |
"io/ioutil" | |
"log" | |
"net" | |
"code.google.com/p/go.crypto/ssh" | |
) |
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 __future__ import with_statement | |
import os | |
from django.core import management | |
# We have to re-name this to avoid clashes with fabric.api.settings. | |
import ohbooklist.conf.local.settings as django_settings | |
management.setup_environ(django_settings) | |
from fabric.api import * |
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
{ | |
"china,canton,guangzhou": "guangdong", | |
"shenzhen,guangdong,china": "guangdong", | |
"china,,\u82cf\u5dde": "jiangsu", | |
"peking,china": "beijing", | |
"pudong,district,,shanghai,,china": "shanghai", | |
"beijing,.china": "beijing", | |
"huadu,district,guangzhou,guangdong,china": "guangdong", | |
"beihang,university,,beijing,,china": "beijing", | |
"shanghai,china": "shanghai", |
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
{ | |
"Taipei,Taiwan": "TW", | |
"Vancouver": "CA", | |
"SF,/,BOS,/,NYC,/,LA": "BO", | |
"Omaha,NE": "NE", | |
"China,Canton,Guangzhou": "CN", | |
"Arkansas": "US", | |
"Beijing,China": "CN", | |
"Waco,TX": "US", | |
"Ancona,Italy": "IT", |
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 HTMLParser import HTMLParser | |
import urllib | |
import sys | |
class parselinks(HTMLParser): | |
def __init__(self): | |
self.data=[] | |
self.href=0 | |
self.linkname='' | |
HTMLParser.__init__(self) |
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 "fmt" | |
import "time" | |
import "runtime" | |
func main(){ | |
runtime.GOMAXPROCS(8) | |
channel := make(chan string) |
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
import tornado.ioloop | |
import tornado.web | |
import tornado.escape | |
import tornado.options | |
import tornado.httputil | |
import jinja2 | |
import pyjade.compiler | |
import coffeescript | |
import markdown |
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
"""Beautiful Soup | |
Elixir and Tonic | |
"The Screen-Scraper's Friend" | |
http://www.crummy.com/software/BeautifulSoup/ | |
Beautiful Soup parses a (possibly invalid) XML or HTML document into a | |
tree representation. It provides methods and Pythonic idioms that make | |
it easy to navigate, search, and modify the tree. | |
A well-formed XML/HTML document yields a well-formed data |
NewerOlder