Public Gists by nrk

Gravatar
Tue Jun 09 23:44:10 -0700 2009
1
2
3
[MissingMethodException: undefined method `create_user' for #<AccountMembershipService:0x0000298 @repo=IrTodo.Models.Lightspeed.IrTodoRepository>]
   IronRuby.Builtins.KernelOps.MethodMissing(RubyContext context, Object self, SymbolId symbol, Object[] args) in c:\tools\ironruby\merlin\main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\KernelOps.cs:460
   CallSite.Target(Closure , CallSite , RubyScope , Object , Object , Object , Object ) +232
gist: 120874 A basic example of how to u...
Gravatar
Sun May 31 05:14:51 -0700 2009
1
2
3
require 'redis'
 
local redis = Redis.connect("127.0.0.1", 6379)
Gravatar
Sun May 03 02:46:43 -0700 2009
1
2
3
IronRuby 0.4.0.0 on .NET 2.0.50727.4918
Copyright (c) Microsoft Corporation. All rights reserved.
 
gist: 93723 Hpricot 0.8.1 test suite ex...
Gravatar
Sat Apr 11 13:41:52 -0700 2009
1
2
3
Hpricot 0.8.1 test suite executed against the 0.7_experimental
branch of ironruby-hpricot (updated to commit f98ec80)
 
gist: 87107 Events in Lua. That is, som...
Gravatar
Sat Mar 28 06:52:44 -0700 2009
1
2
3
local _G = _G
 
module('Event')
gist: 53361 Hpricot on IronRuby
Gravatar
Tue Jan 27 06:31:14 -0800 2009
1
2
3
require 'hpricot'
 
xml =<<XML
gist: 51046 Quickly-hacked script to re...
Gravatar
Fri Jan 23 07:38:48 -0800 2009
1
2
3
require 'rexml/document'
require 'ftools'
include REXML
Gravatar
Mon Jan 19 07:16:04 -0800 2009
1
2
3
Error 1 Friend access was granted to 'ClassInitGenerator,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9',
but the output assembly is named 'ClassInitGenerator, Version=1.0.0.0, Culture=neutral,
gist: 45276 Wrong behaviour of $_ in Ir...
Gravatar
Fri Jan 09 12:55:44 -0800 2009
1
2
3
Ruby 1.8.6 (expected behaviour)
 
irb(main):001:0> gets
gist: 42514 Problems with Mutex and Con...
Gravatar
Fri Jan 02 03:49:47 -0800 2009
1
2
3
# code taken from http://www.rubycentral.com/pickaxe/tut_threads.html#UF
 
require 'thread'
gist: 34875 The "forward" slot in the i...
Gravatar
Thu Dec 11 13:10:32 -0800 2008
1
2
3
Nrk := Object clone do (
    forward := method("Method called: #{call message name}" interpolate println)
)
Gravatar
Sat Dec 06 12:07:43 -0800 2008
1
2
3
handlers := Map clone
 
handlers atPut("reset", method(
gist: 31175 A function in Lua similar t...
Gravatar
Tue Dec 02 08:53:46 -0800 2008
1
2
3
-- A function in Lua similar to PHP's print_r, from http://luanet.net/lua/function/print_r
 
function print_r ( t )
Gravatar
Mon Oct 27 08:31:14 -0700 2008
1
2
3
C:\ironruby\bin>ir
IronRuby 1.0.0.0 on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
Gravatar
Fri Sep 26 13:12:00 -0700 2008
1
2
3
all_foos = []
 
class Foo
gist: 12318 Post form data using https
Gravatar
Tue Sep 23 09:30:39 -0700 2008
1
2
3
require 'net/http'
require 'net/https'
 
gist: 12261 A simple CouchDB client wit...
Gravatar
Tue Sep 23 03:57:55 -0700 2008
1
2
3
require 'httparty'
 
class CouchDB
gist: 9299 How to map a network share ...
Gravatar
Sun Sep 07 12:22:33 -0700 2008
1
2
3
require 'Win32API'
 
module NetworkDrive
gist: 8440 Win32API.so ported to IronRuby
Gravatar
Tue Sep 02 11:32:38 -0700 2008
1
2
3
irb(main):001:0> require 'Win32API'
=> true
irb(main):002:0> $get_logical_drives = Win32API.new('kernel32', 'GetLogicalDriveStrings', ['P', 'P'], 'I')
gist: 8100 Win32API.so ported to IronR...
Gravatar
Sat Aug 30 02:13:53 -0700 2008
1
2
3
IronRuby 1.0.0.0 on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.