Skip to content

Instantly share code, notes, and snippets.

View fltiago's full-sized avatar

Tiago Ferreira Lima fltiago

View GitHub Profile
require "debugger"
class Wally < Grape::API
format :json
helpers do
def current_user
@current_user ||= Author.find_by(token: params[:token])
end
@fltiago
fltiago / gist:3711346
Created September 13, 2012 01:50
Estrutura de Wally
Será composto pelos seguintes componentes:
Wall:
- items
- itemsTotal
- url
Activity
- actor
- object
@fltiago
fltiago / References
Created May 10, 2012 16:51
Cross Domain Request
JSONP
-> http://en.wikipedia.org/wiki/JSONP
Cross-origin resource sharing
-> http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/
Failed examples:
rspec ./spec/models/course_spec.rb:777 # Course behaves like a billable when verifying members limit and plan is on course and plan has members limit should permit entry
rspec ./spec/models/licensed_invoice_spec.rb:114 # LicensedInvoice when calculating the amount updates to the correct amount
rspec ./spec/models/licensed_invoice_spec.rb:189 # LicensedInvoice when refreshing open licensed invoices should calculates invoice1's relative amount
rspec ./spec/models/license_spec.rb:56 # License retrievers retrieves all payable licenses
rspec ./spec/models/user_course_invitation_spec.rb:93 # UserCourseInvitation states when accept do NOT accept if it does not have a user
http://beginrescueend.com/rvm/install/
rvm install 1.9.3
rvm use 1.9.3
gem install rails --no-ri --no-rdoc
Instalando MySQL
Basta instalá-lo através do apt-get:
$ sudo apt-get install mysql-server mysql-client
$ sudo apt-get install libmysql-ruby libmysqlclient-dev

O Redu está procurando nerds para trabalhar e se divertir na startup.

Para os interessados basta enviar para [email protected] com currículo/linkedin/github/lattes.

O que é obrigatório:

  • Ter fluência em uma ou mais das seguintes linguagens: Python, Ruby ou JavaScript
  • Ser mestre ou estar quase lá

Ganha ponto quem: