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
{"users":[{"id":18,"username":"test.username16","first_name":"first16","last_name":"last16","full_name":"first16 last16","avatar_url":"https://gameway-development.s3.amazonaws.com/uploads/user/avatar/18/icon_3fe2ce9a0873256e4edc99d9f785180a.png","user_url":"/users/18","lol_account":null,"starcraft2_account":{"id":null,"url":null,"host":null,"locale":null,"realm":null,"character_name":null,"profile_id":null,"user_id":null,"created_at":null,"updated_at":null}},{"id":2,"username":"test.username0","first_name":"first0","last_name":"last0","full_name":"first0 last0","avatar_url":"https://gameway-development.s3.amazonaws.com/uploads/user/avatar/2/icon_81972f31641c36c6964520fbd03e2f0d.png","user_url":"/users/2","lol_account":null,"starcraft2_account":{"id":null,"url":null,"host":null,"locale":null,"realm":null,"character_name":null,"profile_id":null,"user_id":null,"created_at":null,"updated_at":null}},{"id":3,"username":"test.username1","first_name":"first1","last_name":"last1","full_name":"first1 last1","avatar_url |
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
Gameway.initializer | |
name: 'currentUser' | |
initialize: (container, application) -> | |
store = container.lookup('store:main') | |
user = store.find('user', 'current') | |
# user = Gameway.User.find('current') | |
container.lookup('controller:currentUser').set('content', user) | |
container.typeInjection('controller', 'currentUser', 'controller:currentUser') |
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 RoversController | |
attr_accessor :grid, :rovers | |
def initialize(x, y) | |
@rovers = [] | |
end | |
def add_rover(x, y, direction) | |
@rovers << Rover.new({x: x.to_i, y: y.to_i}, direction) | |
end |
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
@import bourbon | |
@import layout | |
@import components | |
@import groups | |
@import home | |
@import teams | |
@import tournaments | |
@import users |
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
[1] pry(main)> f = FactoryGirl.build(:tournament, :with_teams, teams: 20) | |
(0.3ms) BEGIN | |
User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'example1@example.com' LIMIT 1 | |
User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."username" = 'example1' LIMIT 1 | |
SQL (4.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at", "username") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Oct 2013 18:06:58 UTC +00:00], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$pQOTHk9MXOUE8ayPjkFzmOg/ZW5j0VjyEPmz0PbTgJJc0qGs5A7Ii"], ["first_name", "Maggie"], ["last_name", "Gerlach"], ["updated_at", Mon, 28 Oct 2013 18:06:58 UTC +00:00], ["username", "example1"]] | |
PgSearch::Document Load (0.9ms) SELECT "pg_search_documents".* FROM "pg_search_documents" WHERE "pg_search_documents"."searchable_id" = $1 AND "pg_search_documents"."searchable_type" = $2 ORDER BY "pg_search_documents"."id" ASC |
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
Started PUT "/tournaments/1" for 127.0.0.1 at 2013-10-14 14:13:24 -0700 | |
Processing by TournamentsController#update as */* | |
Parameters: {"position"=>["0", "0", "1"], "id"=>"1"} | |
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1 | |
Tournament Load (0.4ms) SELECT "tournaments".* FROM "tournaments" WHERE "tournaments"."id" = $1 LIMIT 1 [["id", "1"]] | |
UserShowing Load (0.6ms) SELECT "user_showings".* FROM "user_showings" WHERE "user_showings"."match_id" = $1 [["match_id", 1]] | |
User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] | |
(0.3ms) BEGIN | |
SQL (0.4ms) INSERT INTO "matches" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Mon, 14 Oct 2013 21:13:24 UTC +00:00], ["updated_at", Mon, 14 Oct 2013 21:13:24 UTC +00:00]] | |
(1.9ms) COMMIT |
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
$('.bracket').on('click', 'button.slot', () -> | |
$.ajax( | |
type: 'PUT' | |
url: $('.update_path').text() | |
data: | |
position: $(this).data('position') | |
) | |
) | |
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
2013-10-08T20:44:16.760191+00:00 heroku[router]: at=info method=GET path=/assets/application-0ed3cb110cbd2ae74d81b60e04f9f744.js host=gameway-alpha-staging.herokuapp.com fwd="24.130.138.116" dyno=web.1 connect=0ms service=6ms status=404 bytes=1351 | |
2013-10-08T20:44:34.884306+00:00 heroku[router]: at=info method=GET path=/assets/application-65a6873c164edca62ed35f80f75bb8ab.css host=gameway-alpha-staging.herokuapp.com fwd="24.130.138.116" dyno=web.1 connect=1ms service=8ms status=404 bytes=1351 | |
2013-10-08T20:44:34.882168+00:00 app[web.1]: I, [2013-10-08T20:42:50.857986 #2] INFO -- : Started GET "/users/auth/facebook" for 24.130.138.116 at 2013-10-08 20:42:50 +0000 | |
2013-10-08T20:44:34.882168+00:00 app[web.1]: I, [2013-10-08T20:42:50.858620 #2] INFO -- omniauth: (facebook) Request phase initiated. | |
2013-10-08T20:44:34.882168+00:00 app[web.1]: I, [2013-10-08T20:44:06.359183 #2] INFO -- : Started GET "/users/auth/facebook" for 24.130.138.116 at 2013-10-08 20:44:06 +0000 | |
2013-10-08T20:44:34.882168+00:00 app[web.1]: |
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_relative "spellchecker" | |
spellchecker = SpellChecker.new | |
while true | |
print '> ' | |
word = gets.chomp | |
puts spellchecker.suggest(word) | |
end |
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
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
NewerOlder