Skip to content

Instantly share code, notes, and snippets.

def create_pdf
doc_task = DocRaptor.create(doc_options)
status = {'status' => "Queued generation for #{channel_partner_name} with DocRapter"}
timeout_time = Time.now + TWO_MINUTES
print_status(status)
while !(['completed','failed'].include? status['status']) && Time.now <= timeout_time
sleep SLEEP_TIME
@jakemauer
jakemauer / rubytest_user_key_settings
Last active August 29, 2015 14:00
ST3 RubyText + Zeus Setup
[
{ "keys": ["super+shift+r"], "command": "run_single_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // single test
{ "keys": ["super+shift+t"], "command": "run_all_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
@jakemauer
jakemauer / hulk_speed_racer.md
Created May 8, 2014 03:19
Film Crit Hulk review of Speed Racer (2008)

Amalgamation: the combining or uniting of multiple entities into one thing

Besides being one of hulk's favorite words, it is also something that is a tricky proposition in cinema. We most often think of it in terms of quentin tarantino's work, where his films seem to jump into different genres at will. But they often speak in heavy codified language. They shift in look and feel so we know what we're experiencing. But anytime you play with these things, what you are really playing with is audience expectation, which promptly turns any amalgamation into a high wire act.

Speed racer is an amalgamation.

And it's an amalgamation of so many things that it might seem confusing: it's a racing movie. It's a kids movie. It's an action movie. Beyond mere genre, there's the subject matter itself: it's a movie about corruption. A movie about family dynamics. It's a coming of age story. And beyond mere subject, there's the raucous tonal jumps: silly monkeys, gun violence, date nights, kung fu, schoolyard hijinks, impr

App.Evaluation = DS.Model.extend
team_members: DS.hasMany 'team_member', async: true
approving_members: DS.hasMany 'team_member', async: true
App.TeamMember = DS.Model.extend
evaluations: DS.hasMany 'evaluation', async: true
@jakemauer
jakemauer / install-phantomjs2-debian.sh
Last active August 29, 2015 14:19
PhantomJS 2.0 installer for Debian
echo deb http://ftp.us.debian.org/debian jessie main >> /etc/apt/sources.list
apt-get update
apt-get -y install libicu52 libjpeg-dev libfreetype6 libfontconfig unzip
mkdir -p /root/bin
curl -sL -o /root/bin/phantomjs-2.0.zip https://github.com/jakemauer/phantomjs/releases/download/2.0.0-debian-bin/phantomjs-2.0.0-debian-x86_64.zip
unzip /root/bin/phantomjs-2.0.zip -d /root/bin
rm -f /root/bin/phantomjs-2.0.zip
ln -s /root/bin/phantomjs /usr/bin/phantomjs
@jakemauer
jakemauer / install-phantomjs.sh
Created April 15, 2015 20:25
Install phantomJS for Debian/Wheezy
mkdir -p /srv/var && \
wget -q --no-check-certificate -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \
tar -xjf /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C /tmp && \
rm -f /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \
mv /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/ /srv/var/phantomjs && \
ln -s /srv/var/phantomjs/bin/phantomjs /usr/bin/phantomjs

Balance-ember

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Prerequisites

You will need the following things properly installed on your computer.

@jakemauer
jakemauer / terms-fo-use.md
Last active August 29, 2015 14:25
Allovue Terms of Use

Website Terms of Use

Version 1.0

Last revised on: June 12, 2015

The website(s) located at the Balance platform setup for your organization (the " Site") is a copyrighted work belonging to ALLOVUE, INC. (" Company", " us", " our", and " we"). Certain features of the Site may be subject to additional guidelines, terms, or rules, which will be posted on the Site in connection with such features. All such additional terms, guidelines, and rules are incorporated by reference into these Terms.

ALLOVUE, INC.

PRIVACY POLICY

Last Updated: June 12, 2015

At ALLOVUE, Inc. and its related companies (" Company"), we understand that privacy is important to users of our Balance platform and affiliated websites. This privacy policy (" Policy") describes how the Company collects, uses and shares personal information of consumer users of its _Balance _platform made available to your organization at the organization-specific link provided to you (the " Site"). This Policy also applies to any of our other websites that post this Policy. This Policy does not apply to websites that post different statements.

WHAT WE COLLECT

.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');