This file contains 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
cd lib && \ | |
ERL_TOP=/private/tmp/homebrew-erlang-R14B01-8lkU PATH=/private/tmp/homebrew-erlang-R14B01-8lkU/bootstrap/bin:${PATH} \ | |
make opt SECONDARY_BOOTSTRAP=true | |
=== Entering application hipe | |
(cd ../main && make hipe.hrl) | |
sed -e "s;%VSN%;3.7.8;" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl | |
erlc -W +debug_info +inline -o../ebin hipe_rtl.erl | |
(no error logger present) error: "Error in process <0.1.0> with exit value: {{badfun,[<<5 bytes>>,<<50 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2 bytes>>,<<5 bytes>>,<<12 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8 bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<53 bytes>>,<<5 bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<6 bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<12 bytes>>]},[{erlang,apply,2}]}\n" |
This file contains 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
it "handles a math expression" do | |
tokens = lexer.parse "1 + 2 * 3" | |
expected = [ | |
Token.new(:Decimal, 1), | |
Token.new(:Identifier, "+"), | |
Token.new(:Decimal, 2), | |
Token.new(:Identifier, "*"), | |
Token.new(:Decimal, 3) | |
] | |
tokens.should == expected |
This file contains 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
[2011-01-14 21:33:53] ant dist | |
Buildfile: /Users/david/.rvm/src/jruby-head/build.xml | |
init: | |
prepare-bin-jruby: | |
jar: | |
init: |
This file contains 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
#!/bin/sh | |
cat $0 |
This file contains 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
factorial := method(n, | |
if(n == 0, return 1) | |
res := 1 | |
Range 1 to(n) foreach(i, res = res * i) | |
) |
This file contains 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
$ gem update --system | |
Updating RubyGems | |
Updating rubygems-update | |
Successfully installed rubygems-update-1.4.0 | |
Updating RubyGems to 1.4.0 | |
Installing RubyGems 1.4.0 | |
/Users/david/.rvm/gems/ruby-1.9.2-p0/gems/rubygems-update-1.4.0/lib/rubygems/source_index.rb:62:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError) | |
from /Users/david/.rvm/gems/ruby-1.9.2-p0/gems/rubygems-update-1.4.0/lib/rubygems/source_index.rb:52:in `from_installed_gems' | |
from /Users/david/.rvm/gems/ruby-1.9.2-p0/gems/rubygems-update-1.4.0/lib/rubygems.rb:914:in `source_index' | |
from /Users/david/.rvm/gems/ruby-1.9.2-p0/gems/rubygems-update-1.4.0/lib/rubygems/gem_path_searcher.rb:98:in `init_gemspecs' |
This file contains 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
function MyObject(name) { | |
this.name = name | |
} | |
MyObject.prototype.toString = function() { return "My name is " + this.name } | |
> a = new MyObject("node") | |
> a.toString() | |
My name is node |
This file contains 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
{ | |
"type": "Program", | |
"elements": [ | |
{ | |
"type": "VariableStatement", | |
"declarations": [ | |
{ | |
"type": "VariableDeclaration", | |
"name": "a", | |
"value": { |
This file contains 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 <list> | |
#include <stdexcept> | |
template <class T, class Allocator = std::allocator<T> > | |
class my_list : public std::list<T,Allocator> { | |
public: | |
typedef typename std::list<T,Allocator>::reference reference; | |
typedef typename std::list<T,Allocator>::const_reference const_reference; | |
reference back() { |
This file contains 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 'complex' | |
BENCHMARK_REPS = ARGV[0] ? ARGV[0].to_i : 1 | |
WIDTH,HEIGHT = 640,480 | |
MAX_COLOR = 360 | |
ZOOM_FACT = 0.8 | |
MAX_ITERATIONS = 40 | |
CENTER = -0.65 | |
X_INC = WIDTH / (200000 * ZOOM_FACT) |