Skip to content

Instantly share code, notes, and snippets.

@carlows
carlows / dynamo_db_query_example.md
Created March 30, 2017 19:34 — forked from kenoir/dynamo_db_query_example.md
Prettied up some AWS Ruby SDK DynamoDB examples from @Integralist.

AWS query-instance_method docs

export AWS_ACCESS_KEY_ID=‘XXXX’
export AWS_SECRET_ACCESS_KEY=‘XXXX’
# ENV['AWS_ACCESS_KEY_ID']
# ENV['AWS_SECRET_ACCESS_KEY']
@carlows
carlows / curl.md
Created July 25, 2016 22:34 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@carlows
carlows / overview.md
Created April 24, 2016 17:57 — forked from anonymous/overview.md
MainYourMom

MainYourMom

It's an application that will store aggregated stats for each summoner that is looked up. Say someone looks up for 'CarlosEME', the app will fetch its data and store it in the database. Same with every lookup, this way it will construct a huge database of summoners over time.

Will consist on 4 pages:

  • Summoner look up page. This is the page where you search for a summoner
  • Summoner stats page. This is the page that displays the stats for an specific summoner.
  • Global summoner stats page. A page that displays every summoner that has been looked up with a summary.
  • Global mastery stats page. A page that displays stats about the masteries stored in the Database.
@carlows
carlows / rspec_rails_cheetsheet.rb
Created March 15, 2016 15:42 — forked from them0nk/rspec_rails_cheetsheet.rb
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)