Skip to content

Instantly share code, notes, and snippets.

View penso's full-sized avatar

Fabien Penso penso

View GitHub Profile
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
@timurvafin
timurvafin / Gemfile
Created October 13, 2012 07:49
Get http requests benchmark: sync vs. celluloid vs. em
source :rubygems
gem 'celluloid'
gem 'em-synchrony'
gem 'em-http-request'
@13k
13k / sidekiq_scheduling.rb
Last active March 31, 2016 18:02
low-level sidekiq scheduling helpers
# 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)
anonymous
anonymous / -
Created October 25, 2017 09:40
[alias]
ci = commit -v
co = checkout
l = log --oneline --graph --decorate
la = log --oneline --graph --decorate --all
lp = log -p
lpr = log -p --reverse
ll = log -3
lr = log --oneline --decorate --reverse
ls = log --stat
@devinus
devinus / gist:415179
Created May 26, 2010 22:38
Turn CSS rules into inline style attributes using jQuery
(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);
@ball-hayden
ball-hayden / README.md
Last active September 21, 2018 09:07
ActiveAdmin Bootstrap

ActiveAdmin Bootstrap

This is a rough proof of concept.

There will be broken things.

Comments are welcome.

Installation

# Set our default provider for this Vagrantfile to 'vmware_appcatalyst'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'vmware_appcatalyst'
nodes = [
{ hostname: 'gantry-test-5', box: 'phusion/ubuntu-14.04-amd64' },
{ hostname: 'gantry-test-6', box: 'phusion/ubuntu-14.04-amd64' },
]
Vagrant.configure('2') do |config|
# Set our default provider for this Vagrantfile to 'vmware_appcatalyst'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'vmware_appcatalyst'
nodes = [
{ hostname: 'fullbox', box: 'phusion/ubuntu-14.04-amd64' }
]
Vagrant.configure('2') do |config|
# Configure our boxes with 1 CPU and 384MB of RAM
@oivoodoo
oivoodoo / routes.rake
Created March 5, 2013 10:06
rake task for printing grape routes.
namespace :grape do
desc 'Print compiled grape routes'
task :routes => :environment do
API.routes.each do |route|
puts route
end
end
end
@lancejpollard
lancejpollard / chacha20.js
Created May 29, 2020 10:50 — forked from rumkin/chacha20.js
Chacha20-Poly1305.js
/* chacha20 - 256 bits */
// Written in 2014 by Devi Mandiri. Public domain.
//
// Implementation derived from chacha-ref.c version 20080118
// See for details: http://cr.yp.to/chacha/chacha-20080128.pdf
function U8TO32_LE(x, i) {
return x[i] | (x[i+1]<<8) | (x[i+2]<<16) | (x[i+3]<<24);
}