Skip to content

Instantly share code, notes, and snippets.

View antonioparisi's full-sized avatar

Antonio antonioparisi

View GitHub Profile
@antonioparisi
antonioparisi / giffgaff_iphone7_availability_checker.rb
Last active November 8, 2016 13:02
Now days find an iPhone 7 Plus is an hard mission. This is a simple script to check if it's available on the GiffGaff shop.
require 'watir'
require 'highline'
MEMORIES = ['32GB', '128GB', '256GB']
COLORS = ['black', 'gold', 'jet black', 'rose gold', 'silver']
cli = HighLine.new
memory = cli.choose do |menu|
menu.prompt = "Please choose the iPhone's memory:"
@antonioparisi
antonioparisi / sample-app-esa-torii.md
Last active August 29, 2015 14:04
Demo app using ember-simple-auth + ember-simple-auth-torii + torii

Demo app using ember-simple-auth + ember-simple-auth-torii + torii

BRIEFING

Have a little demo app, trying to use ember-simple-auth with ember-simple-auth-torii + torii (client and API), having a fluid authentication workflow:

  • Auth with e.g. facebook-connect
  • Send userId and accessToken to the API
  • Check that it's a valid facebook user
  • Generate a random accessToken on the API
  • Send the generated accessToken to the client
@antonioparisi
antonioparisi / rails_api_template.rb
Last active December 22, 2015 07:08 — forked from bugant/rails_api_template.rb
rails-api new project_name -m this_gist_url
gem 'active_model_serializers'
gem_group :development, :test do
gem 'debugger'
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'factory_girl_rails'
end
initializer 'strong_parameters.rb', <<-CODE