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.
For people who were not there the last meetup and want a little recap ;)
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 .
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before('@omniauth_test') do | |
OmniAuth.config.test_mode = true | |
end | |
After('@omniauth_test') do | |
OmniAuth.config.test_mode = false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install ruby-debug19 -- --with-ruby-include=/Users/thibaut/.rvm/src/ruby-1.9.1-p378 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"Alsace", | |
"Aquitaine", | |
"Auvergne", | |
"Basse-Normandie", | |
"Bourgogne", | |
"Bretagne", | |
"Centre", | |
"Champagne-Ardenne", | |
"Corse", |