Skip to content

Instantly share code, notes, and snippets.

<!--
the following goes in the <httpHandler> section
in a ASP.NET application's web.config file
-->
<add verb="*" path="*.xap" validate="false" type="Chiron.XapHttpHandler,Chiron" />
should 'add' do
$calc.do 2, 'Add', 3, 'equals'
$calc.screen.should.equal '5'
end
# add to Calculator.Tests\tests\python_engine_test.rb
require 'helper'
run_from_application do
require 'CalculatorTestApp'
include CalculatorTestApp
end
describe "Python Engine" do
before do
# add to Calculator.Tests\tests\function_test.rb
require 'helper'
describe 'Defining functions' do
before do
init_vars
@functions.update_text ''
end
should 'show none with empty code' do
require 'yaml'
YAML::load('date: [ :year, :month, :day ]')
class A
alias_method :old_inspect, :inspect
def inspect
"Object inspection: " + old_inspect
end
end
#>>> a = A.new
#=> Object inspection: #<A:0x0000076>
File.dirname("c:/")
# IronRuby => "."
# Ruby => "c:/"
# repro for http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=545
puts "__FILE__: #{__FILE__}"
puts "$0: #{$0}"
load 'c:\dev/codeplex-545\sub.rb'
load 'c:/dev\codeplex-545/foo\bar.rb'
Objective C# (15 min)
Ted Neward - ThoughtWorks
4/14 - 10:15am
Intro to a Visual Studio Language Service (15 min)
Ted Neward - ThoughtWorks
4/14 - 11:45am
Tim Macfarlane - 24 Geometric Ldt.
Tycho A small dynamic language for .NET
@jschementi
jschementi / foo.rb
Created April 20, 2009 23:08
CodePlex Bug 674
module Foo
def self.file
__FILE__
end
end