Skip to content

Instantly share code, notes, and snippets.

.data
msg:
.ascii "hello, world!"
.text
.globl _start
_start:
movq $1, %rax
movq $1, %rdi
movq $msg, %rsi
movq $13, %rdx
require 'cinch'
$channels = ARGV
$votes = {}
$username = "shelvacubot"
$password = "oauth:XXXXXXXX"
@shelvacu
shelvacu / arrays.py
Created March 8, 2016 05:11
Proof that ruby is absolutely superior to python /sarcasm
a = []
a.append(a)
b = []
b.append(b)
print(a == b) #=> RecursionError: maximum recursion depth exceeded in comparison
@shelvacu
shelvacu / gist:7244069
Created October 31, 2013 03:39
Simple script to get optimal cookies per second from cookie clicker: http://orteil.dashnet.org/cookieclicker/ Although it doesn't factor in upgrades or wrinklers. Does nothing that you can't do manually. (except for speed)
//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){
["awesome","cool","rad"].each do |word|
define_method(word.to_sym) do
word
end
end
puts awesome, cool, rad