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
# written by faze, revised by BlastHardcheese | |
crawl () { | |
case "$1" in | |
"cao" ) | |
local user="joshua" | |
local server="crawl.akrasiac.org" | |
;; | |
"cdo" ) | |
local user="crawl" |
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
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" |
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 = lambda do yield "test" end | |
a.call do |a| puts a end |
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 '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") |
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
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 |
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
#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 |
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
main = do | |
let f = do | |
print 1 | |
f |
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
class ConstHash < Hash | |
def []=(name, value) | |
if has_key? name | |
raise "Can't rebind #{name}" | |
else | |
super name, value | |
end | |
end | |
end |
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
fn1 = fn2 | |
fn2 = fn1 | |
a = a | |
-- try to evaluate any of variables |
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
import Prelude hiding((.)) | |
a . b = b a | |
main = do { | |
"-*-Hello world-*-".splitAt(3).snd.splitAt(11).fst.print | |
} |
OlderNewer