Skip to content

Instantly share code, notes, and snippets.

View chris-jamieson's full-sized avatar

Chris Jamieson chris-jamieson

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chris-jamieson
chris-jamieson / checklists.md
Created January 13, 2016 11:10
Overview of why checklists are great, and how to make good checklists

Why use checklists?

According to Atul Gawande:

The primary aim of a checklist is to prevent human failure, either from ignorance (you don't know what you don't know) or ineptitude (knowledge is applied inconsistently or incorrectly).

The secondary aim of a checklist is to force people to talk to each other and foster teamwork. This is known as "activation phenomenon": giving people a chance to say something at the start of a procedure seems to activate their sense of participation and responsibility and their willingness to speak up.

What makes a good checklist?

  1. Define clear pause point at which the checklist is supposed to be used.
@chris-jamieson
chris-jamieson / proxy_handler.php
Created October 18, 2015 16:26
Random proxy rotation
<?php
// suggest buying proxies from http://buyproxies.org/ - I found this to be an excellent service and well-priced too.
// function returns a keyed array of proxy info
// if you want you can pass a specific ID in (for instand if you want to use the same proxy for a sequence of calls
function custom_proxy_handler_get_proxy($proxy_id = 0)
{
$all_proxies = array(
@chris-jamieson
chris-jamieson / integrations.md
Created October 7, 2015 15:26
Segment available integrations

The following is a list of integrations available via Segment as at 7th Oct 2015

  • Facebook Conversions
  • Google Analytics
  • Google Tag Manager
  • GoSquared
  • Hello Bar
  • Intercom
  • Lucky Orange
  • MailChimp
## Ubuntu
- Install from Live DVD
## Dev tools
- Sublime
- Git
- Heroku
- Meteor
-
@chris-jamieson
chris-jamieson / gist:b0bded976eb8c60b44ea
Created March 24, 2015 16:02
Python convert from unicode
# original from http://stackoverflow.com/questions/13101653/python-convert-complex-dictionary-of-strings-from-unicode-to-ascii
def convert_from_unicode(input):
if isinstance(input, dict):
return dict((convert_from_unicode(key), convert_from_unicode(value)) for key, value in input.iteritems())
elif isinstance(input, list):
return [convert_from_unicode(element) for element in input]
elif isinstance(input, unicode):
return input.encode('utf-8')
else:
return input
@chris-jamieson
chris-jamieson / gist:06e06dc16680fde2e8b3
Created March 24, 2015 14:01
Message thread query syntax mongolab
{
"_id": {
"$oid": "5507785bd4a87b03003f5c5b"
}
}
@chris-jamieson
chris-jamieson / app.js
Created March 4, 2015 10:46
Motivation JS
(function(){
var $ = document.getElementById.bind(document);
var $$ = document.querySelectorAll.bind(document);
var App = function($el){
this.$el = $el;
this.load();
this.$el.addEventListener(