View Scrape.py
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 mechanize import Browser | |
from BeautifulSoup import BeautifulSoup | |
mech = Browser() | |
years = ['2009','2008'] | |
teams = ['aag','cai','sbr','ial','fau','bal','way','hba','nbh','mbk','bry','sbb','mam','wbg','hac','naj','wai','sad','dau','abh','uvs','scc','dae','hbd','iao','aaj','mbn','wbj','sbe','tap','nam','map','flg','wal','kab','pal','sag','vac','cbm','xaa','dah','tbq','scf','tas','hay','mbq','cao','sbh','wao','lan','oai','gad','tba','fak','kae','saj','rae','bab','scy','pao','tac','vaf','cbp','yaa','sci','nfl','dak','aap','bau','tav','laq','mav','bae','nas','nba','mbd','gag','iae','jab','fan','hal','cab','nac','maf','rah','eaa','par','sam','laa','pab','vai','may','ncb','aas','cau','gaj','cbc','nbd','mbg','lat','nav','jae','eat','sbn','hao','nds','uaf','tai','rak','faa','ead','pau','sap','lad','aac','cbv','lbu','aav','nay','cax','sas','aaf','wax','cah','iak','fat','sbq','oab','nai','mal','tal','pah','qae','sac','wah','dat','cbi','sbt','dad','mbm','ban','sav','ian','tao','nal','wbi','hae','oae','raa','kaa','sd |
View Macro.groovy
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
{groovy} | |
import org.apache.xmlrpc.XmlRpcException; | |
import org.apache.xmlrpc.client.XmlRpcClient; | |
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; | |
//For use with the confluence script plugin and zCALM Server | |
XmlRpcClient client = new XmlRpcClient(); | |
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); | |
config.setServerURL(new URL("http://localhost:8090/ZXmlRpcServer/zXmlRpcServlet")); |
View xml-rpc-example.groovy
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 groovy.grape.Grape | |
import groovy.net.xmlrpc.* | |
// Gets dependencies | |
@Grab(group='org.codehaus.groovy', module='groovy-xmlrpc', version='0.7') | |
def getGrapes(){} | |
def c = new XMLRPCServerProxy("http://localhost:8090/ZXmlRpcServer/zXmlRpcServlet") | |
//Gets all hierarchy classes |
View 187c364beba62d244b66.rb
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
# >---------------------------[ Install Command ]-----------------------------< | |
# rails new APP_NAME -m http://railswizard.org/187c364beba62d244b66.rb -J -O -T | |
# >---------------------------------------------------------------------------< | |
# | |
# _____ _ _ __ ___ _ | |
# | __ \ (_) | \ \ / (_) | | | |
# | |__) |__ _ _| |___\ \ /\ / / _ ______ _ _ __ __| | | |
# | _ // _` | | / __|\ \/ \/ / | |_ / _` | '__/ _` | | |
# | | \ \ (_| | | \__ \ \ /\ / | |/ / (_| | | | (_| | | |
# |_| \_\__,_|_|_|___/ \/ \/ |_/___\__,_|_| \__,_| |
View gist:934775
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
<a hreflang="en"> |
View vagrant_zipline
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
git clone git://github.com/quantopian/zipline.git | |
cd zipline | |
vagrant add lucid64 http://files.vagrantup.com/lucid64.box | |
vagrant init lucid64 | |
# Add memory configuration to Vagrantfile | |
config.vm.customize ["modifyvm", :id, "--memory", 1024] | |
vagrant up | |
vagrant ssh |
View zipline_picloud
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
# Follow pre-reqs to setup picloud | |
http://docs.picloud.com/prereqs.html | |
# Create a new environment using Python 2.7 - Ubuntu Precise 12.04 | |
# Use the environment name below in _env | |
# Precise includes many required dependencies http://www.picloud.com/docs/base_environment/3/installed/ | |
http://docs.picloud.com/environment.html#environment-create |
View example_grails_travis_build_matrix.yml
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
language: groovy | |
jdk: | |
- oraclejdk6 | |
env: | |
- GRAILS_VERSION=2.2.4 | |
- GRAILS_VERSION=2.2.3 | |
- GRAILS_VERSION=2.2.2 | |
- GRAILS_VERSION=2.2.1 |
View run_each.rb
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 'timeout' | |
files = Dir.glob("spec/ruby/core/*/*") | |
files.reject! { |f| File.directory?(f) } | |
num = 1 | |
total = files.size | |
files.each_with_index do |file, index| | |
specname = file.split('/').last.split('_')[0..-2].join('_') | |
puts "specname #{specname}" |
View run_each_dir.rb
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 'timeout' | |
files = Dir.glob("spec/ruby/core/*/") | |
files.map! {|x| x[0..-2] } | |
files.each do |file| | |
command = "ruby tool/jt.rb untag #{file}" | |
puts "starting process #{command}" | |
pid = Process.spawn(command) | |
begin |
OlderNewer