Skip to content

Instantly share code, notes, and snippets.

View Voker57's full-sized avatar

Voker57 Voker57

View GitHub Profile
# written by faze, revised by BlastHardcheese
crawl () {
case "$1" in
"cao" )
local user="joshua"
local server="crawl.akrasiac.org"
;;
"cdo" )
local user="crawl"
module Komariq
def self.update_entries(criteria, action)
while true
needs_update = criteria.call
count = needs_update.count
if count > 0
Rails.logger.info "#{count} feeds need to be updated"
needs_update.each do |entry|
begin
Rails.logger.info "Feed #{feed.id} is going to be updated"
@Voker57
Voker57 / case.rb
Last active August 29, 2015 14:07
a = lambda do yield "test" end
a.call do |a| puts a end
require 'mechanize'
www = Mechanize.new
pg = www.get ARGV[0]
magics = pg.at('div[@class="cloudcast-play-button-container"]')["m-preview"]
puts magics.gsub("previews", "c/m4a").gsub("mp3","m4a")
hoster = rand((ARGV[0] || 2).to_i)
alllist = "Spartan Federation
Gaia's Stepdaughters
University of Planet
Peacekeeping Forces
Human Hive
Lord's Believers
Morgan Industries
#0 0xb7d6eb5d in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#1 0xb7e1cdef in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2 0x08049b4d in logs (msg=0x804dfe9 "fuse is finished\n", len=17) at hatexmpp.c:38
#3 0x08049b8a in logstr (msg=0x804dfe9 "fuse is finished\n") at hatexmpp.c:46
#4 0x0804b87c in fuseinit (argc=3, argv=0xbffff634) at fuse.c:560
#5 0x08049fc7 in main (argc=3, argv=0xbffff634) at hatexmpp.c:149
main = do
let f = do
print 1
f
class ConstHash < Hash
def []=(name, value)
if has_key? name
raise "Can't rebind #{name}"
else
super name, value
end
end
end
fn1 = fn2
fn2 = fn1
a = a
-- try to evaluate any of variables
@Voker57
Voker57 / gist:95262
Created April 14, 2009 16:19
ruby-like haskell
import Prelude hiding((.))
a . b = b a
main = do {
"-*-Hello world-*-".splitAt(3).snd.splitAt(11).fst.print
}