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
.data | |
msg: | |
.ascii "hello, world!" | |
.text | |
.globl _start | |
_start: | |
movq $1, %rax | |
movq $1, %rdi | |
movq $msg, %rsi | |
movq $13, %rdx |
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 'cinch' | |
$channels = ARGV | |
$votes = {} | |
$username = "shelvacubot" | |
$password = "oauth:XXXXXXXX" |
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
a = [] | |
a.append(a) | |
b = [] | |
b.append(b) | |
print(a == b) #=> RecursionError: maximum recursion depth exceeded in comparison |
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
//to clear all purchases: | |
Game.ObjectsById.forEach(function(o){for(var i=0;i<200;i++){o.sell()}}) | |
var mostProfitable = -1; | |
var price = -1; | |
var interval = -1; | |
function determineBest(){ | |
price = -1; | |
Game.ObjectsById.forEach(function(o){ |
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
["awesome","cool","rad"].each do |word| | |
define_method(word.to_sym) do | |
word | |
end | |
end | |
puts awesome, cool, rad |
NewerOlder