Skip to content

Instantly share code, notes, and snippets.

Happy Freelancing

Je m’appelle Thibaut Assus, j’ai 30 ans, je suis freelance en développement web et ma technologie de prédilection est le Ruby on Rails. J’ai maintenant un peu d’expérience dans le domaine du freelancing et ce document a pour but de partager avec vous une partie de cette expérience.

Mon parcours de développeur Ruby

@tibastral
tibastral / gist:7481035
Last active December 28, 2015 09:39
Game CONTEST @ Parisrb

For people who were not there the last meetup and want a little recap ;)

ParisRB organizes a contest of video games :

Principle

Develop a game in Ruby, whose commands are text only (or highly related to text mode games that are back in the game today, but were very very present in the 1980s) . An example : the excellent RubyWarrior , or the famous game (lisp) Dunnet (emacs : M-x dunnet) ... or the sublime candybox .

How to participate?

ParisRB is about Ruby on Rails

and all web technologies, business topics... are welcome.
It's a good thing to be curious, so anything related to developers' interests is OK.

We value everyone's contribution and well-being.
As for any social interactions, respect and courtesy are expected.
This event is a gathering of professionals, behave as such.

We value our attendees

@tibastral
tibastral / ab.rb
Created September 19, 2012 12:47
Fixes for Apache AB for Mountain Lion
require 'formula'
class Ab < Formula
homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html'
url 'http://www.apache.org/dist/httpd/httpd-2.4.3.tar.bz2'
sha1 '0ef1281bb758add937efe61c345287be2f27f662'
depends_on 'pcre'
depends_on 'libtool'
Before('@omniauth_test') do
OmniAuth.config.test_mode = true
end
After('@omniauth_test') do
OmniAuth.config.test_mode = false
end
@tibastral
tibastral / hotspots.rb
Created February 27, 2012 16:36
I love capybara_webkit
When /^I create a new "([^"]*)" hotspot$/ do |hotspot_type|
click_link "Hotspots"
page.find(:css, "a[data-hotspot-type=\"#{hotspot_type.camelize}Hotspot\"]").click
end
@tibastral
tibastral / sessions_controller.rb
Created May 8, 2011 22:25
omniauth session controller
class SessionsController < ApplicationController
def create
auth = request.env["omniauth.auth"]
user = User.find_by_provider_and_uid(auth["provider"], auth["uid"])
user ||= User.create_with_omniauth(auth)
session[:user_id] = user.id
redirect_to [:dashboard, user]
end
def destroy
@tibastral
tibastral / store_redirect_to.rb
Created May 8, 2011 22:21
omniauth redirect back to
class StoreRedirectTo
def initialize(app)
@app = app
end
def call(env)
request = Rack::Request.new(env)
path = request.path
signin = path.match(%r(^/auth/[^/]+$)) && path != '/auth/failure'
signout = path == '/users/signout'
if signin || signout
gem install ruby-debug19 -- --with-ruby-include=/Users/thibaut/.rvm/src/ruby-1.9.1-p378
[
"Alsace",
"Aquitaine",
"Auvergne",
"Basse-Normandie",
"Bourgogne",
"Bretagne",
"Centre",
"Champagne-Ardenne",
"Corse",