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
/* Fields */ | |
input[type='text'], input[type='password'], textarea { font-size: 13px; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; } | |
input[type="text"], textarea, select { padding: 2px; } | |
input[type="text"]:focus, textarea:focus, select:focus { } | |
option { } | |
input#issue_subject { font-size: 200%; width: 90%; } | |
input#issue_subject, #project_description { width: 92.5%; } | |
textarea#issue_description { width: 93%;} |
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
FROM docker:5000/wheezy-ruby | |
# install deps | |
RUN apt-get install -y qt4-qmake libqtwebkit-dev libcurl4-openssl-dev | |
RUN mkdir -p /bundle /rails | |
RUN apt-get install -y ssh | |
RUN mkdir -p /var/run/sshd |
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 FactoryGirlStepHelpers | |
def convert_human_hash_to_attribute_hash(human_hash, associations = []) | |
HumanHashToAttributeHash.new(human_hash, associations).attributes | |
end | |
class HumanHashToAttributeHash | |
attr_reader :associations | |
def initialize(human_hash, associations) | |
@human_hash = human_hash |
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
# Copyright © 2010-2011 Tech-Angels. All Rights Reserved. | |
# CollectorTransaction will be created each time the Collector needs | |
# to trace an activity. | |
# | |
# Attributes: | |
# * id [integer, primary, not null] - primary key | |
# * before_tr [binary] - associated model serialized before transaction | |
# * created_at [datetime] - creation time | |
# * model_id [integer] - belongs_to Model (polymorphic) |
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
Day job: CEO @ Tech-Angels.fr | |
Your Rails contributions (if any): a few bugs reporting/squashing | |
What's your Ruby/Rail experience?: Since 1.0, so a few years :) | |
How do you use GitHub?: Professionnaly to host our projects sources and configurations, personally to serve^h^h^h^h^hfork and protect^h^h^h^h^hhack |
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
select orders.user_id, | |
email, | |
sum(stake) as mises_perdantes, | |
5.00 as bonus | |
from bets | |
join orders on orders.id = bets.order_id | |
join users on orders.user_id = users.id | |
join races on races.id = bets.race_id | |
where races.start_time::date BETWEEN '2011-04-29' AND '2011-04-30' | |
and bets.status = 'paid' |
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
>> Event.find(123).participants.ascend_by_number | |
[works] | |
>> Event.find(123).participants.published.all(:order => :number) | |
[works] | |
>> Event.find(123).participants.published.ascend_by_number | |
[returns the whole table until memory is full and server crash] | |
SQL : | |
SELECT * FROM "events" WHERE ("events"."id" = 123) |
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
rvm update --trace | |
--trace | |
rvm 1.0.15 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
+__rvm_parse_args:416> [[ -z 4.3.9 ]] | |
+__rvm_parse_args:572> [[ -z update ]] | |
+__rvm_parse_args:574> [[ 0 -eq 1 || -n '' ]] | |
+__rvm_parse_args:15> [[ -n '' ]] | |
+__rvm_parse_args:578> [[ 0 -gt 0 ]] |
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
tcp_syslog is now a gem : | |
https://github.com/tech-angels/tcp_syslog |
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 'rubygems' | |
require 'wirble' | |
require 'hirb' | |
Wirble.init | |
Wirble.colorize | |
# hirb (active record output format in table) | |
Hirb::View.enable | |
# IRB Options | |
IRB.conf[:AUTO_INDENT] = true |
NewerOlder