This file contains hidden or 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
diff --git a/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs b/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs | |
index 71d69a1..7ef07f7 100644 | |
--- a/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs | |
+++ b/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs | |
@@ -56,11 +56,11 @@ namespace IronRuby.Rack.Handler { | |
// application knows its virtual "location". This may be an empty | |
// string, if the application corresponds to the "root" of the | |
// server. | |
// The SCRIPT_NAME, if non-empty, must start with / | |
This file contains hidden or 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
include System::Collections::Generic | |
class List | |
def foo | |
self.class | |
end | |
end | |
List.of(Fixnum).new.foo | |
# => System::Collections::Generic::List[Fixnum] |
This file contains hidden or 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 'win32ole' | |
# Creates OLE object to Excel | |
excel = WIN32OLE.new("excel.application") | |
# Create the chart | |
excel['Visible'] = true | |
workbook = excel.Workbooks.Add | |
excel.Range("a1")['Value'] = 3 | |
excel.Range("a2")['Value'] = 2 |
This file contains hidden or 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
Foo = 1 | |
class Bar(object): | |
def baz(self): | |
print Foo |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Scripting.Hosting; | |
namespace simple_scripting { | |
class Program { | |
static IDictionary<string, Action> _commands = new Dictionary<string, Action>(); | |
static Hosting _host; |
This file contains hidden or 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 'rubygems' | |
require 'test/spec' | |
require 'mscorlib' | |
include System::Collections | |
describe '.NET Stack instantiation' do | |
it 'can create an empty stack' do | |
@stack = Stack.new | |
@stack.should.be.a.kind_of System::Collections::Stack |
This file contains hidden or 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
T.user_name | |
replies = T.get_replies | |
replies.first.text | |
U.delegate_user_timeline_fetch "oscon" |
This file contains hidden or 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
def add x, y | |
x + y | |
end | |
add 3, 4 | |
%python | |
class Bob(object): | |
def __init__(self): |
This file contains hidden or 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
using Moonlight.Gtk; | |
using Moonlight; | |
public static void Main(string[] args) | |
{ | |
n = LoadNodes (args [0], "Size", "Foo"); | |
Gtk.Application.Init (); | |
MoonlightRuntime.Init (); |
This file contains hidden or 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
#rupert@linux:~/Desktop/oscon09/ironruby/Merlin/Main/Bin/Release> ir | |
#IronRuby 0.6.0.0 on Mono 2.4.2.1 | |
#Copyright (c) Microsoft Corporation. All rights reserved. | |
# | |
puts 2 + 2 | |
#4 | |
#=> nil | |
(1..10).inject{|sum, i| sum += i} | |
#=> 55 | |
System::Environment.OSVersion |