View run_server_and_tests.sh
#!/usr/bin/env bash
./gradlew bootRun > /dev/null 2>&1 &
GRADLE_PID=$!
printf 'starting server'
until $(curl --output /dev/null --silent --head http://localhost:8080); do
printf '.'
sleep 3
View manifest.yml
---
applications:
- name: your-app-here
command: node slack.js
# no-route: true
health-check-type: none
domain: cfapps.io
env:
SLACK_API_TOKEN: your-token-here
View fetchIfNecessary.js
import React from 'react';
export default (Component, requiredPropName, fetchAction) => {
return class extends React.Component {
constructor(props) {
super(props);
this.hasRequiredProp = this.hasRequiredProp.bind(this);
}
hasRequiredProp() {
return !!this.props[requiredPropName];
View projectmonitor.raptorize.js
(function() {
$.browser = {mozilla: false, webkit: false};
$('<script>').attr('src', 'https://rawgit.com/davesierra/raptorize/master/jquery.raptorize.1.0.js').appendTo('body');
setInterval(function() {
if ($('.building').length) {
$(window).raptorize({enterOn: 'timer', delayTime: 0});
}
}, 10000);
}());
View progress_bar.rb
def progress_bar(current, total, width=80)
pos = (current.to_f / total * width).round
print "\r|#{'=' * pos}#{'-' * (width - pos)}|"
puts if current == total
end
View keybase.md

Keybase proof

I hereby claim:

  • I am carpeliam on github.
  • I am carpeliam (https://keybase.io/carpeliam) on keybase.
  • I have a public key whose fingerprint is 4088 36A3 4193 3818 94C1 757B 2C70 F045 7834 4F8C

To claim this, I am signing this object:

View get_prisons.rb
#!/usr/bin/env ruby
require 'spreadsheet'
require 'capybara'
require 'csv'
include Capybara::DSL
COL_CDCR = 0
View SassMeister-input-HTML.html
<link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700" media="all" rel="stylesheet">
<h1>This is H1 Text</h1>
<h2>This is H2 Text</h2>
<h3>This is H3 Text</h3>
<h4>This is H4 Text</h4>
<h5>This is H5 Text</h5>
<h6>This is H6 Text</h6>
<hr>
View pre-commit
#!/bin/sh
#
# To enable this hook, rename this file to "pre-commit".
PRY_PATTERN="require.+[\'\"]pry[\'\"]|binding\.pry"
# Redirect output to stderr.
exec 1>&2
if git diff --cached | grep '^\+' | grep -q -E $PRY_PATTERN; then
echo "ERROR: There is left over pry stuff in this commit"
View gist:08fad4f02e1d3fa2ef23
// after running `vagrant ssh` to log into VM:
// sudo su - osehra
// cd ewdjs
var ewdGlobals = require('ewdjs/lib/ewdGlobals');
var interface = require('nodem/lib/mumps');
var db = new interface.Gtm();
var util = require('util');
var ok = db.open();
ewdGlobals.init(db);