- How many programmers does it take to change a lightbulb?
- Only one. But then the whole house falls down.
- How many programmers does it take to change a lightbulb?
- None. That is a hardware problem.
- How many programmers does it take to change a lightbulb?
- This is a known issue. When we installed the lightbulb we knew it had a finite TTL. How many programmers does it take to change a lightbulb?
Title: Simple Sabotage Field Manual Author: Strategic Services Office of Strategic Services
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
# 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. | |
# ============================================================================= |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import math | |
import numpy as np | |
sys.path.append('xgboost/wrapper/') | |
import xgboost as xgb |
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
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 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 |
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
#!/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]; |
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
#! /bin/sh | |
alias gs="git status" | |
alias gc="git commit" | |
alias gr="git checkout" | |
alias ga="git add" | |
alias gl="git lola" |