Skip to content

Instantly share code, notes, and snippets.

View robink's full-sized avatar
🎯
Focusing

Robin Komiwes robink

🎯
Focusing
View GitHub Profile
# foo(mandatory, [options], callback)
foo = ([mandatoryArg, options]..., callback) ->
options = {} if options is callback
@robink
robink / convince_your_boss_fr.md
Last active January 3, 2016 05:39
Pourquoi venir à la Take Off Conference 2014? Convainquez votre boss!

Mise à jour : https://github.com/robink/take-off-conf-convince-your-boss/blob/master/convince_your_boss_fr.md


Lille accueillera de nouveau, les 30 et 31 janvier prochains à EuraTechnologies, l’évènement Take Off, un festival international de code qui réunira dans la capitale des Flandres plus de 250 inventeurs et créateurs du nouveau monde numérique.

Lille est une métropole dynamique à 50 minutes de Paris (Gare du Nord), 30 min de Bruxelles (Gare du Midi) et 90 minutes de Londres (St Pancras). Les hôtels accessibles et le centre historique permettent de concilier un bon moment touristique avec une conférence d'exception !

Au programme cette année des sujets axés autour de 10 thèmes principaux (autant de bonnes raisons de venir) tels que:

@robink
robink / install_deployinator.md
Last active December 26, 2015 21:58
Etsy's Deployinator install note in a typical ubuntu/nginx/rvm (system wide install) environment.

Commands

1. Get DEPLOYINATOR

cd /var/www
git clone https://github.com/nectify/deployinator.git

2. Unicorn folder setup

@robink
robink / size_of.rb
Created June 20, 2013 19:51
Get an image file resolution from the command line. Requires Imagemagick. Protip: add it in your PATH with +x chmod.
#!/usr/bin/env ruby
out = IO.popen('identify ' + ARGV[0])
puts out.readlines.join().split(' ')[2]
@robink
robink / Gemfile
Last active December 17, 2015 06:58
Show the "changelog" / "releases notes" of a given repo. Relies on Pull Requests descriptions (as they are editables) and printing only when their title contains "#changelog".
source 'https://rubygems.org'
gem "github_api"
gem "highline"
!!! 5
%html
%head
%title= "Your Website"
%meta{ :content => "", :name => "description" }
%meta{ :content => "", :name => "author" }
%meta{ :content => "3 days", :name => "revisit-after" }
%link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
%link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
%link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" }
@robink
robink / DbBackup.rb
Created January 22, 2013 14:07
Resque DbBackup job - A simple mysql database backup job with an upload to a cloud container at the end (rackspace cloud files). Require resque scheduler.
module DbBackup
@queue = :db_backup
def perform( forced_filename = nil )
config = Rails.configuration.database_configuration
database = config[Rails.env]["database"]
username = config[Rails.env]["username"]
password = config[Rails.env]["password"]
dumps_path = Rails.root.join('tmp', 'dumps').to_s
@robink
robink / random_sign.js
Created November 3, 2011 14:37
-1 | 1
var randomSign = function() {
return Math.cos( Math.round( Math.random() ) * Math.PI );
};
@robink
robink / delayedTimeout.js
Created June 6, 2011 15:50
Javascript Deferred Interval
var delayedTimeout = function( callback, initialTime, maxTime ) {
this.currentTime = initialTime;
this.callback = callback;
this.maxTime = 0 || maxTime;
this.nextTick();
}
delayedTimeout.prototype = {