Skip to content

Instantly share code, notes, and snippets.

View JohnCoogan's full-sized avatar

John Coogan JohnCoogan

View GitHub Profile
@JohnCoogan
JohnCoogan / main.go
Created August 25, 2017 23:13
Monitor web page changes with Go, forked and minified from https://gist.github.com/ssimunic/47834a8fcc3d66d6d7502e916f7ef613
package main
import (
"net/http"
"io/ioutil"
"time"
"log"
"os"
)
@JohnCoogan
JohnCoogan / rank_users.py
Last active August 29, 2015 14:26
Soylent Customer Ranking Script
# The MIT License (MIT)
# Copyright (c) 2015 John Coogan
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
Verifying that +johncoogan is my Bitcoin username. You can send me #bitcoin here: https://onename.io/johncoogan
@JohnCoogan
JohnCoogan / keybase.md
Created March 4, 2014 02:15
keybase.md

Keybase proof

I hereby claim:

  • I am johncoogan on github.
  • I am johncoogan (https://keybase.io/johncoogan) on keybase.
  • I have a public key whose fingerprint is C85C 180B 0EFC 5CAE A874 3257 CACA A0E3 8E6A 96C9

To claim this, I am signing this object:

@JohnCoogan
JohnCoogan / call_reminder.py
Last active December 17, 2015 06:29
Twilio Call Reminder Script
#!/usr/bin/env python
# Twilio Tools for Reminding & Calling
# Download the twilio-python library from http://twilio.com/docs/libraries
from twilio.rest import TwilioRestClient
from twilio import twiml
from flask import Flask
app = Flask(__name__)
account = "TWILIO ACCOUNT"
@JohnCoogan
JohnCoogan / graph.json
Created December 5, 2012 04:01
Visualizing My Twitter Graph
{
"directed": false,
"graph": [],
"links": [
{
"source": 0,
"target": 6
},
{
"source": 0,
@JohnCoogan
JohnCoogan / d3.geo.min.js
Created December 29, 2011 04:09
India Map in D3
(function(){function b(a,b){return function(c){return c&&c.type in a?a[c.type](c):b}}function c(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+ -2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function d(a,b){a.type in e&&e[a.type](a,b)}function f(a,b){d(a.geometry,b)}function g(a,b){for(var c=a.features,e=0,f=c.length;e<f;e++)d(c[e].geometry,b)}function h(a,b){for(var c=a.geometries,e=0,f=c.length;e<f;e++)d(c[e],b)}function i(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)b.apply(null,c[d])}function j(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)for(var f=c[d],g=0,h=f.length;g<h;g++)b.apply(null,f[g])}function k(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)for(var f=c[d][0],g=0,h=f.length;g<h;g++)b.apply(null,f[g])}function l(a,b){b.apply(null,a.coordinates)}function m(a,b){for(var c=a.coordinates[0],d=0,e=c.length;d<e;d++)b.apply(null,c[d])}function n(a){return a.source}function o(a){return a.target}function p(b,c){function r(b){var c=Math.sin(p-(b*=p))/q,d=Math.sin(b)/q,g=c*h*e+d*n*k,j=c*h*f+d*n*l,m=c*i+d
@JohnCoogan
JohnCoogan / index.html
Created December 4, 2011 09:45 — forked from enjalot/index.html
[d3cast] Simple Bar Chart example with d3.js
<!-- Annotated javascript available at http://enja.org/code/tuts/d3/bar -->
<!-- Code walkthrough screencast available at -->
<html>
<head>
<title>Enjalot's Bar</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script>
<style type="text/css">
.bar rect