This file contains 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 python | |
#install the follow first: | |
#sudo easy_install pip | |
#sudo pip install -U boto | |
#sudo pip install configparser |
This file contains 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
➜ raw git:(Relaunch) ✗ jekyll --auto | |
Configuration from /Users/sudonim/Projects/home/raw/_config.yml | |
Auto-regenerating enabled: . -> ../public | |
[2012-12-25 22:13:08] regeneration: 289 files changed | |
Asset Pipeline: Processing 'css_asset_tag' manifest 'blog' | |
Asset Pipeline: Saved 'style.css' to '_site/assets' | |
Asset Pipeline: Saved 'signup.css' to '_site/assets' | |
Asset Pipeline: Saved 'blog.css' to '_site/assets' | |
Asset Pipeline: Saved 'bootstrap-responsive.min' to '_site/assets' | |
Asset Pipeline: Processing 'javascript_asset_tag' manifest 'global' |
This file contains 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
source: . | |
destination: ../public | |
includes: ./_includes | |
plugins: ./_plugins | |
pygments: true | |
permalink: /blog/:title.html | |
base_url: http://customer.io | |
description: Customer.io | |
root_desc: Customer.io |
This file contains 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 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 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 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 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 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 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); |