Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #! /bin/sh | |
| alias gs="git status" | |
| alias gc="git commit" | |
| alias gr="git checkout" | |
| alias ga="git add" | |
| alias gl="git lola" | 
| #!/usr/bin/python | |
| from __future__ import with_statement | |
| import sys, string, xmlrpclib, re, os | |
| if len(sys.argv) < 5: | |
| exit("Usage: " + sys.argv[0] + " spacekey pagetitle contentType filename"); | |
| spacekey = sys.argv[1]; | |
| pagetitle = sys.argv[2]; | 
| from numpy import * | |
| from scipy.stats import beta | |
| class BetaBandit(object): | |
| def __init__(self, num_options=2, prior=(1.0,1.0)): | |
| self.trials = zeros(shape=(num_options,), dtype=int) | |
| self.successes = zeros(shape=(num_options,), dtype=int) | |
| self.num_options = num_options | |
| self.prior = prior | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import math | |
| import numpy as np | |
| sys.path.append('xgboost/wrapper/') | |
| import xgboost as xgb | 
| # THIS CODE IS NOW RETIRED. GO TO THE NEW REPOSITORY: https://github.com/brakmic/TwitterClient | |
| # -*- coding: utf-8 -*- | |
| #============================================================================== | |
| # A simple console-based twitter client capable of persisting data | |
| # Usage: python client.py --config=your_json_config.json | |
| # To persist to a database a valid DNS entry is needed. | |
| # Also, create a proper Tweets table. Check 'insert' method in DbConnector. | |
| # ============================================================================= | 
Title: Simple Sabotage Field Manual Author: Strategic Services Office of Strategic Services