Public Gists by judofyr

Gravatar
Tue Nov 24 04:23:42 -0800 2009
1
alert("Hello World!")
Gravatar
Sat Nov 21 07:46:00 -0800 2009
1
2
3
class Echo < Plugin
  author "Henrik Hodne (dvyjones)"
 
Gravatar
Fri Oct 23 05:00:00 -0700 2009
1
2
3
require 'stringio'
 
def silent
Gravatar
Thu Oct 01 06:59:10 -0700 2009
1
2
3
From 80ca680d8c16a6dccd80c2d7ab09bf9eea816b35 Mon Sep 17 00:00:00 2001
From: Magnus Holm <judofyr@gmail.com>
Date: Wed, 30 Sep 2009 21:19:29 +0200
Gravatar
Sat Sep 26 12:29:02 -0700 2009
1
2
3
                        require 'time'
                      require 'optparse'
                                                                  
Gravatar
Sat Aug 15 02:54:33 -0700 2009
1
2
3
# Creates a little histogram of the frequency of words occuring in your string
# Usage : ruby word_histogram.rb "Test string, string"
 
Gravatar
Wed Aug 12 04:07:12 -0700 2009
1
2
3
$ sudo gem update
sudo: uid 501 does not exist in the passwd file!
$ whoami
Gravatar
Tue Aug 11 11:51:50 -0700 2009
1
2
3
if $sitedir then
  if (not $sitedir.=~(Regexp.quote(version))) then
    $sitedir = File.join($sitedir, version)
Gravatar
Tue Aug 11 10:39:49 -0700 2009
1
2
3
REGEXP_PAIRS = Hash[*%w[{ } ( ) [ ] < >]]
REGEXP_PAIRS.default_proc = proc { |h, k| k }
   
Gravatar
Tue Aug 04 16:22:47 -0700 2009
1
2
3
## Taken from The Ruby Programming Language, page 110.
 
# The following simple Ruby program demostrates a flip-flop. It reads a
Gravatar
Mon Jul 13 06:05:51 -0700 2009
1
2
3
## There's more than one way to do it.
 
# 0
Gravatar
Sat Jul 04 06:17:58 -0700 2009
1
2
3
$:.unshift 'lib'
require 'rubygems'
require 'camping'
Gravatar
Thu Jul 02 12:26:41 -0700 2009
1
2
3
Objects
=======
 
Gravatar
Mon Jun 29 02:30:37 -0700 2009
1
2
3
// This would be sweet Miko:
// Go Object.property!
Speck.describe("your mother") {
Gravatar
Mon Apr 13 07:30:38 -0700 2009
1
2
3
Author.new do
  name "Magnus Holm"
  location :norway
Gravatar
Mon Apr 06 05:51:11 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US'>
  <head>
Gravatar
Sat Mar 14 10:44:54 -0700 2009
1
2
3
# Mixin to scan an array for objects that respond to a given method
module WithMethod
 
Gravatar
Sun Jan 18 03:37:25 -0800 2009
1
2
3
(defun scheme-run-outline (arg)
  (interactive "p")
  (save-excursion
Gravatar
Sun Dec 14 12:21:36 -0800 2008
1
2
3
---
extension: xml
layout: nil
gist: 7751 Turns everything into an IO
Gravatar
Thu Aug 28 09:06:39 -0700 2008
1
2
3
require 'open-uri'
 
# == Feed me with: