Skip to content

Instantly share code, notes, and snippets.

View tibastral's full-sized avatar

Thibaut Assus tibastral

  • Milesrock
  • Paris, France
View GitHub Profile

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 / 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?

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

# Array + Hashes
a = [ 1, 'cat', 3.14 ] # array with three elements
puts "The first element is #{a[0]}"
a[2] = nil
puts "The array is now #{a.inspect}"
# -> The first element is 1
@tibastral
tibastral / .env
Last active March 17, 2016 15:11 — forked from dblandin/.env
Managing RubyMotion environment variables
TESTFLIGHT_APP_TOKEN=90210
TESTFLIGHT_TEAM_TOKEN=90210
TESTFLIGHT_API_TOKEN=90210
BUGSENSE_API_KEY=90210
BUGSENSE_API_TOKEN=90210
DEVELOPMENT_CERTIFICATE_NAME="iPhone Developer: yourName"
DEVELOPMENT_PROVISIONING_PROFILE_PATH="/path/to/development.mobileprovision"
class LogoUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
def extension_white_list
%w(jpg jpeg gif png)
end
process :convert => 'png'
process :resize_to_limit => [1024, 1024]
step : Game -> Position -> Game
step game arrows =
game
|> handleWinning
|> handleLoosing
|> stepCharacter arrows
|> stepEnemies
isWinning : Game -> Bool
all : Test
all =
describe "A Test Suite"
[ test "Collision" <|
\() ->
Expect.false "Collision didn't work" (Character.collision initialKoala initialFlag)
, test "CollisionPosition" <|
\() ->
Expect.false "Initial state of game is loosing" (Game.isLoosing Game.initial)
, test "CollisionPosition" <|
moveBottomRight ({ x, y } as coords) =
{ coords | x = x + 1, y = y + 1 }
# frozen_string_literal: true
class PlacesController < ApplicationController
def index
render json: RIP.get(
:gplaces,
'autocomplete/json',
input: params[:q]
)