Skip to content

Instantly share code, notes, and snippets.

SPINNERS = ["|", "/", "\\", "-"]
def spinner():
sys.stdout.write("\r")
sys.stdout.write(random.choice(SPINNERS))
sys.stdout.flush()
Pagegen queuepeek stuff
@cmheisel
cmheisel / log-domain.txt
Last active August 29, 2015 13:57
pagegen-good
278 - www.ajc.com
218 - www.statesman.com
135 - www.kirotv.com
104 - www.clarkhoward.com
101 - www.palmbeachpost.com
94 - www.daytondailynews.com
79 - www.wftv.com
77 - www.wsbtv.com
69 - www.journal-news.com
69 - www.ktvu.com
@cmheisel
cmheisel / log-domain.txt
Last active August 29, 2015 13:57
pagegen-bad
345 - www.ajc.com
165 - www.statesman.com
156 - www.clarkhoward.com
102 - www.palmbeachpost.com
98 - www.wsoctv.com
97 - www.daytondailynews.com
72 - www.kirotv.com
64 - www.wftv.com
63 - www.accessatlanta.com
62 - www.wpxi.com
@cmheisel
cmheisel / domains.txt
Created March 23, 2014 00:46
3/22 pagegen peek
345 - www.ajc.com
165 - www.statesman.com
156 - www.clarkhoward.com
102 - www.palmbeachpost.com
98 - www.wsoctv.com
97 - www.daytondailynews.com
72 - www.kirotv.com
64 - www.wftv.com
63 - www.accessatlanta.com
62 - www.wpxi.com
@cmheisel
cmheisel / getkanban-session-comparison.rst
Last active December 21, 2015 23:38
Physical vs. Virtual getKanban game thoughts

I've experienced the getKanban physical board game as a trainee, and recently had a chance to lead some coworkers through the game using the virtual version. Here are some thoughts on the differences in no particular order.

  • Being able to project the virtual game on a wall, helped engage the whole room. The physical board limits you to a certain group size (or you risk folks on the periphery disengaging)
  • Seemed to get the same level of engagement, caring, and excitement at shipping features between both versions
  • It's harder to get folks engaged as PMs and accountants since the software does the CFD, Cycle time and Revenue charts for you
  • It's harder to explain/show folks what a CFD is if you're not showing them how to manually create one each simulated day
@cmheisel
cmheisel / hp01checker.py
Last active December 16, 2015 17:50
Check for HP01, log if it appears more than it should (twice)
import time
import datetime
import random
import requests
sites_to_check = {
"http://www.daytondailynews.com/": dict(hit=0, miss=0),
"http://www.oxfordpress.com/": dict(hit=0, miss=0),
"http://www.springfieldnewssun.com/": dict(hit=0, miss=0),
@cmheisel
cmheisel / Vagrantfile
Created January 26, 2013 14:37
Don't want your project's .vagrant file sync'd via Dropbox? Do something like this.
Vagrant::Config.run do |config|
# Setup the box
config.vagrant.dotfile_name = File.expand_path("~/.vagrant-PROJECTNAMEHERE")
end
@cmheisel
cmheisel / travsci.py
Created October 20, 2012 00:41
Check build status with travis before deploying
def ci(branch):
import requests, json, time
r = requests.get('http://travis-ci.org/%s/%s/builds.json' % (USERNAME, REPO))
assert r.status_code == 200
assert 'json' in r.headers['content-type']
data = json.loads(r.read())
builds_by_branch = {}
for build in data:
builds_for_branch = builds_by_branch.get(build['branch'], [])
@cmheisel
cmheisel / category_management.json
Created June 26, 2012 18:04
category_management.json
[
{
"Top News": {
"feeds": [
"/api/content/v1/manuallist/5847/?format=json",
"/api/content/v1/automaticlist/9121/?format=json"
]
}
},
{