Skip to content

Instantly share code, notes, and snippets.

@jhubert
jhubert / s3_policy.json
Created April 9, 2016 05:40
S3 Bucket Policy for granting Papertrail access
{
"Version": "2012-10-17",
"Id": "papertrail-log-access",
"Statement": [
{
"Sid": "Stmt1460179973156",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::719734659904:root"
},
test 'sessions' do
sess1 = open_session { |sess| sess.reset! }
sess2 = open_session { |sess| sess.reset! }
sess3 = open_session { |sess| sess.reset! }
sess1.host = 'zipline.test1'
sess2.host = 'zipline.test2'
sess3.host = 'zipline.test3'
sess1.assert_equal 'http://zipline.test1/sessions', sess1.sessions_url
@jhubert
jhubert / Key Bindings.json
Created August 5, 2015 04:30
Sublime Text 3 Config
[
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar" },
{ "keys": ["ctrl+t", "ctrl+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}
]
<div id="page">
Loading...
</div>

First Engineer at Early Stage Startup

This is a senior engineering position with growth potential as the company expands. It is a remote position and works directly with the CTO.

Use your extensive knowledge of web application development and infrastructure to help build beautiful products for retail communication. Zipline is being tested by a number of awesome retail companies, like Gap, Eileen Fisher, Levi's, Ross, and Sprint. Our goal is to transform the way that the entire 4.4 trillion dollar retail industry communicates with its store employees. You will improve the way that millions of people work and save them from tedious work with archaic old systems (think fax machines and voicemails).

You will be responsible for large pieces of the architecture, starting with our core messaging and reporting architecture and growing from there. We already have a private beta that showcases the functionality, but we need it to be solid. The role will grow and change as the company does and you can expect to tac

@jhubert
jhubert / demorequest.php
Created April 15, 2015 03:01
A very rough PHP script for posting form data via slack
<?php
$slack_domain = '';
$slack_token = '';
if ( isset($_POST['email']) && isset($_POST['name']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
$message = "Someone wants a demo!\n\n" .
"Name: " . $_POST['name'] . "\n" .
"Company: " . $_POST['company'] . "\n" .
"Email: " . $_POST['email'] . "\n" .

First Engineer at an early-stage startup

This is a senior engineering position with growth potential as the company expands. It is based wherever you are and works directly with the CTO.

Use your extensive knowledge of web application development and infrastructure to help build a beautiful product for retail communication. Zipline is being tested by a number of awesome retail companies, like Gap, Eileen Fisher, Levi's, Ross, and Sprint. Our goal is to transform the way that the entire 4.4 trillion dollar retail industry communicates with its store employees. You will change the way that millions of people work.

The initial focus for role this will be building out Zipline's core messaging and reporting architecture. We already have a private beta that showcases the functionality, but we need it to be solid. The role will grow and change as the company does and you can expect to tackle significant challenges as we scale, including building out our API and all the million other things that go into maki

@jhubert
jhubert / Intro.coffee
Last active August 29, 2015 14:10
A quick sample of the ReactJS / pagejs combination I've been using in my apps. So far so good. Comments appreciated. :)
React = require 'react'
{div, p} = React.DOM
module.exports = React.createClass
displayName: 'IntroPage'
render: ->
div {},
p {}, 'Welcome to my ReactJS app'
@jhubert
jhubert / results.txt
Created October 15, 2014 17:31
Results from the Cool Climate API based on just passing in location, vehicle miles and vehicle mpg
result_takeaction_carfuel_reduction: 0
result_takeaction_carmfg_reduction: 0
result_takeaction_pubtrans_reduction: 0
result_takeaction_airtravel_reduction: 0
result_takeaction_electricity_reduction: 0
result_takeaction_natgas_reduction: 0
result_takeaction_otherfuels_reduction: 0
result_takeaction_watersewage_reduction: 0
result_takeaction_construction_reduction: 0
result_takeaction_meat_reduction: 0