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
<!-- | |
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" /> |
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
should 'add' do | |
$calc.do 2, 'Add', 3, 'equals' | |
$calc.screen.should.equal '5' | |
end |
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
# 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 |
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
# 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 |
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 'yaml' | |
YAML::load('date: [ :year, :month, :day ]') |
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
class A | |
alias_method :old_inspect, :inspect | |
def inspect | |
"Object inspection: " + old_inspect | |
end | |
end | |
#>>> a = A.new | |
#=> Object inspection: #<A:0x0000076> |
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
File.dirname("c:/") | |
# IronRuby => "." | |
# Ruby => "c:/" |
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
# 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' |
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
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 |
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
module Foo | |
def self.file | |
__FILE__ | |
end | |
end |