I hereby claim:
- I am eriknomitch on github.
- I am eriknomitch (https://keybase.io/eriknomitch) on keybase.
- I have a public key whose fingerprint is 8C57 5493 091C 8137 917C DC98 B69A B500 E604 2BBA
To claim this, I am signing this object:
$.ajax({ | |
type: "GET", | |
url: "/pages/ajax", | |
data: {foo: prompt("What is foo?")}, | |
success: function(data) { | |
$("title").html(data); | |
} | |
}); |
# In concepts.js | |
function newTag (){ | |
$.ajax({ | |
type: "POST", | |
url: "/tags/create", | |
data: {"tag[seconds]": player.getCurrentTime(), "concept_name": "Cross Product"}, | |
success: function(data) { | |
alert("supposed success:"+data); | |
} |
(defclass checker () | |
((x :accessor checker-x | |
:initarg :x) | |
(y :accessor checker-y | |
:initarg :y) | |
(color :accessor checker-color | |
:initarg :color) | |
(king :accessor checker-king | |
:initarg :king | |
:initform nil))) |
def as_json(options = {}) | |
json = super(options) | |
[:follow_status, :other_thing].each do |attr| | |
json[attr.to_s] = options[attr].send(attr, self) if options[attr] | |
end | |
end |
def score(dice, total=0) | |
# * A set of three ones is 1000 points | |
if dice.select {|d| d == 1}.length >= 3 | |
3.times {|i| dice.delete_at(dice.index(1)) } | |
return score dice, 1000 | |
end | |
# * A set of three numbers (other than ones) is worth 100 times the | |
# number. (e.g. three fives is 500 points). |
I hereby claim:
To claim this, I am signing this object:
Downloading ruby-2.1.1.tar.gz... | |
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2 | |
Installing ruby-2.1.1... | |
BUILD FAILED | |
Inspect or clean up the working tree at | |
/var/folders/gt/p9gcc3mx36104jplq02qcrwh0000gn/T/ruby-build.20140521110828.13171 | |
Results logged to | |
/var/folders/gt/p9gcc3mx36104jplq02qcrwh0000gn/T/ruby-build.20140521110828.13171.log |
/var/folders/gt/p9gcc3mx36104jplq02qcrwh0000gn/T/ruby-build.20140521110828.13171 ~/.repositories/prelang-gem | |
HTTP/1.1 200 OK | |
Content-Type: binary/octet-stream | |
Content-Length: 15092388 | |
Connection: keep-alive | |
Date: Wed, 09 Apr 2014 02:26:36 GMT | |
Last-Modified: Mon, 24 Feb 2014 13:08:59 GMT | |
ETag: "e57fdbb8ed56e70c43f39c79da1654b2" | |
Accept-Ranges: bytes | |
Server: AmazonS3 |
def self.user_types | |
[:candidate, :influencer, :employee] | |
end | |
User.user_types.each do |user_type| | |
define_method "#{user_type}?" do | |
!!send(user_type) | |
end | |
end |
function evalCS(source) { | |
// Compile source to Coffeescript (Array) | |
var coffeescript = CoffeeScript.compile(source.toString()).split("\n"); | |
// Prepend 'debugger' | |
coffeescript[1] = "debugger;" + coffeescript[1]; | |
// Join and eval | |
eval(coffeescript.join("\n")); |