Skip to content

Instantly share code, notes, and snippets.

require 'cinch'
$channels = ARGV
$votes = {}
$username = "shelvacubot"
$password = "oauth:XXXXXXXX"
@shelvacu
shelvacu / clean_amazon.adblock_rules
Last active January 22, 2017 08:36 — forked from AustinSpafford/clean_amazon.adblock_rules
AdBlock rules for cleaning up Amazon's storefront.
feedly.com##div#discoverModule_part
feedly.com##div#herculePanel
//s3.feedly.com/production/head/images/icon-action-markasread.png
! Main page ad-carousel, recommendations, and ad-grid
amazon.com##div#gw-desktop-herotator
amazon.com##div#rhf-container
amazon.com##div#gw-content-grid
! Title bar department-menu and middle-ads
@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
["awesome","cool","rad"].each do |word|
define_method(word.to_sym) do
word
end
end
puts awesome, cool, rad
@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){