Skip to content

Instantly share code, notes, and snippets.

View h0rs3r4dish's full-sized avatar

Chris Szentkiralyi h0rs3r4dish

View GitHub Profile
@h0rs3r4dish
h0rs3r4dish / rt
Created December 16, 2009 02:35
RubyTask, a todo sort of app
#!/usr/bin/ruby
# Viewing as a Gist? See rubytask.md at the bottom
ARGV.push 'help' if ARGV.empty?
command = ARGV.shift.downcase
Taskfile = '/home/'+ENV['USER']+'/.rtasks'
system "touch #{Taskfile}" if !File.exist? Taskfile
@h0rs3r4dish
h0rs3r4dish / errfree.md
Created December 11, 2009 03:24
errfree IRC bot manual

errfree Factoid/Markov Bot

errfree is a factoid & Markov chain text processing bot that features semi- intelligent conversation and the ability to discern question/answer phrases.

Table of Contents

  1. Basic Functions
@h0rs3r4dish
h0rs3r4dish / rlsp.rb
Created October 27, 2009 22:33
LISP in <200 lines of Ruby
#!/usr/bin/ruby
RLSP_VERSION = "1.4.2"
class Lambda
attr_accessor :args, :body
def initialize(args=[],body="")
@args = (args.class == Array) ? args : [args]
@body = body
end
@h0rs3r4dish
h0rs3r4dish / canine.rb
Created October 16, 2009 00:47
Canine, an easy Ruby "binary" library
class Canine
VERSION = '1.3'
def initialize(&block)
@commands = Hash.new
@default = @latest = :commands
@empty = nil
@auto = {
:commands => hash_command("commands","Show a list of commands",Proc.new {
@commands.each { |cmd| c = cmd[1]
name = c[:name].to_s
@h0rs3r4dish
h0rs3r4dish / README.markdown
Created September 18, 2009 03:43
scratch.rb, a Ruby web 'work

A Note

Forking has been fixed, but the old repositories will still be corrupted.

Basics

The method page will create a new page: page "home" do "Hello, world!"