-
- Grande chambre principale avec salle d'eau et rangements.
-
- Chambres secondaires (pour une chambre et un bureau).
-
- Garage petit (uniquement pour du stationnement dans sa taille actuelle), pourquoi le faire dépasser ?
- ? Où sont les systèmes (chauffe-eau, etc.) ?
- ? Que représente la croix au dos des toilettes ?
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
<div class="exercise"> | |
<p class="instruction"><span class="counter"></span>Recopie chaque liste en rangeant les mots dans l'ordre alphabétique.</p> | |
<ul> | |
<li> | |
<ul class="inline"> | |
<li>pastille</li> | |
<li>cercle</li> | |
<li>lavande</li> | |
<li>force</li> |
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
path = '/Users/romaintribes/Seelies' | |
# RabbitMQ, Web app and models | |
run "cd #{path}/web_app" | |
run 'rabbitmq-server -detached' | |
run 'sleep 1' | |
run 'subl .' | |
run 'sleep 1' | |
run 'rails server --port 3100' |
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
-module(presence_server). | |
-behaviour(gen_server). | |
-export([ start_link/0 ]). | |
-export([ player_is_online/1, player_is_offline/1, online_players/0 ]). | |
-export([ init/1, handle_cast/2, handle_call/3, terminate/2, handle_info/2, code_change/3 ]). | |
start_link() -> | |
gen_server:start_link({ local, ?MODULE }, ?MODULE, [], []). |
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
-module(seelies_server_websocket_handler). | |
-behaviour(cowboy_websocket_handler). | |
-export([ init/3, websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3 ]). | |
-record(connection, { id, name = none }). | |
-include("../include/constants.hrl"). | |
init({ tcp, http }, _Request, _Options) -> | |
{ upgrade, protocol, cowboy_websocket }. | |
- Intégration du design de Kaoji ;
- Création d'une vue (depuis une recherche) ;
- Affichage du nombre de sujets non lus à côté du nom de la vue ;
- Gestion des lu/non lu dans la messagerie privée ;
- Abonnement à une discussion ;
- Notifications par mail et sur le site ;
- Ajout de tags à une recherche par autocomplete (http://textextjs.com/) ;
- Recherche avancée (par auteur, date et mot-clé) ;
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 Watchlist | |
# Will generate SELECT * FROM users WHERE id IN(SELECT user_id FROM watchlistings WHERE item_id = ...)). | |
# Instead of two queries (one to pluck the ids, the other to get the watchlistings. | |
def self.users_watching(item) | |
ids = Watchlisting.where(item_id: item.id).select(:user_id) | |
User.where(id: ids) | |
end | |
def initialize(user) | |
@user = user |
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 BuyWeaponTest < ActiveSupport::TestCase | |
test "User buys a weapon" do | |
mp5 = WeaponType.create('mp5', gold: 40) | |
ak47 = WeaponType.create('ak47', gold: 100) | |
argo = User.create(name: 'Argo', gold: 100) | |
argo_mp5 = Weapon.create(weapon_type: mp5, user: argo) | |
UserBuysWeapon.new(user, ak47).perform! | |
assert_equal ak47, argo.weapon.weapon_type, "User's new weapon should be a AK-47" |
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
# Accepts a data structure such as: | |
# [ [ 28 ], [ 29, 30 ], [ 80 ], [ 6 ] ] | |
class Board < Struct.new(:matrix) | |
Response = Struct.new(:load) | |
# Finds the column (1-indexed) with the nearest predecessor of the given value. | |
# Returns nil if there is no such predecessor. | |
def column_for(given_value) | |
last_values = matrix.map(&:last) |