Skip to content

Instantly share code, notes, and snippets.

@macdiva
macdiva / index.html
Created June 24, 2015 01:38
In-class exercise of Anscombe's quartet
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
/*css to go here*/
svg {
border: 1px solid #f0f;
}

Keybase proof

I hereby claim:

  • I am MacDiva on github.
  • I am macdiva (https://keybase.io/macdiva) on keybase.
  • I have a public key whose fingerprint is CBC3 5D27 B08C 65A6 98D5 0AAB 46DC 305D F033 28EB

To claim this, I am signing this object:

@macdiva
macdiva / gist:9515847
Last active August 29, 2015 13:57
Ben's prompt
Today started like your typical day. You woke up, showered, had breakfast. But during your commute, you saw the most extraordinary thing, but you couldn't hear it. What was it?
@macdiva
macdiva / tmux-named
Created November 19, 2013 15:42 — forked from indirect/tmux-named
#!/bin/bash
# Set up paths and whatnot
test -e ~/.bashrc && source ~/.bashrc
# We need tmux. Obvs.
if [[ -z `which tmux` ]]; then echo "You need tmux first!"; exit 1; fi
# Named variables are much more flexible
name="$1"
# Copyright Jehiah Czebotar 2013
# http://jehiah.cz/
import tornado.options
import glob
import os
import sqlite3
import logging
import datetime
import csv
Docs here:
http://www.flickr.com/services/api/flickr.photos.search.htm
Interactive API Explorer for that method here:
http://www.flickr.com/services/api/explore/flickr.photos.search
Find a place. Like this:
@macdiva
macdiva / minmal_twitter.css
Created October 20, 2012 01:06 — forked from cmod/minmal_twitter.css
Twitter stylebot
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
@macdiva
macdiva / counter.rb
Created June 1, 2012 06:00 — forked from luigi/counter.rb
Calculate the percentage of tweets linking to a website that came from the Tweet button
#
# Before running:
# $ gem install twitter
#
# To run:
# $ ruby counter.rb sleazywebsite.com
#
# Context:
# http://luigimontanez.com/2012/actually-social-media-buttons-work-really-well
#
@macdiva
macdiva / google-map-marker-with-shadow.js
Created May 20, 2012 04:33 — forked from simonw/google-map-marker-with-shadow.js
google-map-marker-with-shadow.js
/* Here's how to add a coloured marker to a Google Map with a shadow in the
right place.
The pin itself is dynamically generated using the Google Charts API,
documented here:
https://developers.google.com/chart/image/docs/gallery/dynamic_icons
Note however that this API was marked as deprecated on April 20th 2012
although it's not clear when or if it will be turned off.
*/
class Grid
constructor: (@width, @height) ->
@grid = []
get: (x,y) ->
@grid[y*@width + x]
set: (x,y,val) ->