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
OmniAuth::Strategies::OAuth2::CallbackError | |
Parameters: | |
{"error"=>"unauthorized_client", | |
"error_description"=>"This application has been registered for implicit grants, | |
and cannot requests codes", | |
"state"=>"73bae0a0c0829447a1c463e19b856ab5489c5a444bc6b5d9"} | |
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
protected | |
def handle_unverified_request | |
true | |
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
(defn compa [num] (if (< (Integer. num) 10) | |
((println "wtf") | |
(println "less than 10")) | |
((println "oxi") | |
(println "greaten than 10") | |
)) |
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
brew install postgresql | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
which psql |
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
def factorial(n) | |
if n == 0 | |
1 | |
else | |
n* fact(n-1) | |
end | |
end | |
puts factorial(ARGV[0].to_i) |
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
{ | |
"name": "eavgerinos", | |
"age": "20", | |
"email": "[email protected]" | |
} |
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 'json' | |
require 'rubygems' | |
require 'net/http' | |
require 'open-uri' | |
buf = open(ARGV[0], "UserAgent" => "Ruby-Wget").read | |
json = JSON.parse(buf) | |
puts "Name: " + json['name'] + "\nAge: " + json['age'] + "\nEmail: " + json['email'] |
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
{ | |
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
"font_size": 14.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"matchBracketsAngle": true, | |
"matchBracketsBraces": true, | |
"matchBracketsSquare": true, |
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
[[195616067242230]][[195616073908896]][[195616063908897]] | |
[[195616077242229]][[195616070575563]][[195616170575553]] | |
[[195616163908887]][[195616160575554]][[195616173908886]] | |
[[195616167242220]][[195616250575545]][[195616253908878]] | |
[[195616257242211]][[195616260575544]][[195616247242212]] | |
[[195616363908867]][[195616367242200]][[195616360575534]] | |
--- | |
credits to Kallepanagos |
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 Raffler.Routers.Entries extends Backbone.Router | |
routes: | |
'': 'index' | |
'entries/:id': 'show' | |
initialize: -> | |
@collection = new Raffler.Collections.Entries() | |
@collection.fetch() | |
index: -> |
OlderNewer