Skip to content

Instantly share code, notes, and snippets.

View lxkm's full-sized avatar
🏠
Figuring out what to work on next

Matthew Shaw lxkm

🏠
Figuring out what to work on next
  • Japan
View GitHub Profile
// ==UserScript==
// @name Evolve
// @namespace http://tampermonkey.net/
// @version 3.3.1.123
// @description try to take over the world!
// @downloadURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.user.js
// @updateURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.meta.js
// @author Fafnir
// @author TMVictor
// @author Vollch
@lxkm
lxkm / in.rb
Last active August 29, 2015 14:19
Basic "In" method for Ruby, mimicking Python
# Probably re-inventing the wheel for the umpteenth time, but figured I'd roll my own basic version.
# Probably also not production-code worthy, but serves well enough for the work I'm doing.
class Object
def in(*other)
raise(ArgumentError,"Other must be an enumberable type") unless other.is_a? Enumerable
other.include? self
end
end