This is a reimplementation of the Grouped Bar Chart by Mike Bostock. Although useful, I found the original's minimal comments and inverted axes hard to follow, so I created the version you see here.
This file contains hidden or 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
{ | |
"Version": "2008-10-17", | |
"Id": "b2cc31d0-cc91-4285-a658-473099d2c867", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
This file contains hidden or 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 node | |
var http = require("http"), | |
fs = require("fs"), | |
sys = require('sys'), | |
exec = require('child_process').exec; | |
var ENDPOINT="https://app.customer.io/api/v1/customers/"; | |
var SITEID="YOUR SITE ID"; | |
var APIKEY="YOUR API KEY"; |
This file contains hidden or 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
# Patched to no process @media queries in <style> blocks. | |
# For HTML emails, @media queries are exclusively used for | |
# targeting mobile clients. These should not be inlined. | |
class CssParser::Parser | |
def parse_block_into_rule_sets!(block, options = {}) # :nodoc: | |
current_media_queries = [:all] | |
if options[:media_types] | |
current_media_queries = options[:media_types].flatten.collect { |mt| CssParser.sanitize_media_query(mt)} | |
end |
This file contains hidden or 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
var email = $("#email").val(); | |
var id = email.replace('@', '_'); | |
id = id.replace('.', '_'); |
This file contains hidden or 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
<script type="text/javascript"> | |
$(window).scroll(function() { if ($(window).scrollTop() > 110) $("#signupbox").css("position", "fixed"); else $("#signupbox").css("position", "static"); }); | |
</script> |
This file contains hidden or 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/bash | |
echo "Caddy v 0.1 from Customer.io" | |
ENDPOINT="https://app.customer.io/api/v1/customers/" | |
SITEID="YOUR SITE ID" | |
APIKEY="YOUR API KEY" | |
INPUT=users.csv | |
OLDIFS=$IFS |
This file contains hidden or 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
Last login: Tue Jul 10 07:54:59 on tty?? | |
➜ ~ brew install -v cmake | |
Warning: Not sure what version of Xcode is the latest for OS X 10.8. | |
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/cmake-2.8.8.tar.gz | |
/usr/bin/tar xf /Library/Caches/Homebrew/cmake-2.8.8.tar.gz | |
==> Downloading patches | |
/usr/bin/curl -qf#LA Homebrew 0.9.2 (Ruby 1.8.7-358; Mac OS X 10.8) https://github.com/Kitware/CMake/commit/3ea850.patch -o 000-homebrew.diff https://github.com/Kitware/CMake/commit/8b2fb3.patch -o 001-homebrew.diff | |
######################################################################## 100.0% | |
######################################################################## 100.0% |
This file contains hidden or 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
function Penguin(name) { | |
this.name = name; | |
this.numLegs = 2; | |
} | |
// create your Emperor class here and make it inherit from Penguin | |
function Emperor(name){ | |
this.prototype = new Penguin(name); |
This file contains hidden or 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 should work well. We'll use the "plan" variable. When a user signs up it will be blank. | |
* When they complete the process, it should be "Premium" or whatever you would call your plan. | |
* Using the created at date, we'll send users an email X days after signup if the plan is blank. | |
*/ | |
<script type="text/javascript"> | |
var _cio = _cio || []; |