This is a rough proof of concept.
There will be broken things.
Comments are welcome.
Installation
(function ($) { | |
var rules = document.styleSheets[document.styleSheets.length-1].cssRules; | |
for (var idx = 0, len = rules.length; idx < len; idx++) { | |
$(rules[idx].selectorText).each(function (i, elem) { | |
elem.style.cssText += rules[idx].style.cssText; | |
}); | |
} | |
$('style').remove(); | |
$('script').remove(); | |
})(jQuery); |
Push 3.0 was one of my favorite apps on my touch and one of the biggest dissapointments with moving to Android. It works flawlessly and is deceptively useful. I caught the unlimited unlock on sale and it was worth every penny. Pricing makes sense, although it wasnt explained well in the description at the time, I had to read comments for clarification. | |
That said, my one and only suggestion for improvement is: MAKE AN ANDROID VERSION, PLZ! Froyo 2.2 is bringing push to the OS and Push 3.0 would make an excellent flagship addition. | |
Is an Android adaptation in the works? Looking forward to buying the full unlocked version the day it hits the Droid Market. | |
Thanks | |
Sent from Samsung mobile |
source :rubygems | |
gem 'celluloid' | |
gem 'em-synchrony' | |
gem 'em-http-request' |
# reschedule a known job | |
# i: job index | |
# soon: reschedule time | |
def reschedule(i=0, soon=1.minute.from_now) | |
# black magic | |
Sidekiq.redis do |r| | |
m = r.zrange('schedule', i, i).first | |
j = JSON.parse(m) | |
j['at'] = soon.to_f | |
r.zrem('schedule', m) |
namespace :grape do | |
desc 'Print compiled grape routes' | |
task :routes => :environment do | |
API.routes.each do |route| | |
puts route | |
end | |
end | |
end |
#!/bin/bash | |
S3_LOG_LOCATION="s3://thelogbucket/logdir" | |
LOCAL_LOG_LOCATION="/tmp/log/" | |
REPORT_TITLE="My report title" | |
HTML_OUTPUT_DIR="/tmp/reporthtml" | |
REPORT="/tmp/report.ps" | |
# Sync log files to a local directory | |
s3cmd -v sync ${S3_LOG_LOCATION} ${LOCAL_LOG_LOCATION} |
# this monit config goes in /etc/monit/conf.d | |
check process puma_master | |
with pidfile /data/myapp/current/tmp/puma.pid | |
start program = "/etc/monit/scripts/puma start" | |
stop program = "/etc/monit/scripts/puma stop" | |
group myapp | |
check process puma_worker_0 | |
with pidfile /data/myapp/current/tmp/puma_worker_0.pid |
Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.
Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:
#!/usr/bin/env bash | |
size=1024 # MB | |
mount_point=$HOME/tmp | |
name=$(basename "$mount_point") | |
usage() { | |
echo "usage: $(basename "$0") [mount | umount | remount | check | orphan]" \ | |
"(default: mount)" >&2 | |
} |