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
ruby-1.9.1-p378 > tree = parser.parse "field :ciccio, 'integer'" | |
=> SyntaxNode+Field1+Field0 offset=0, "...d :ciccio, 'integer'" (construct,sp,name,s1,s2,interpretation): | |
SyntaxNode offset=0, "field" | |
SyntaxNode offset=5, " ": | |
SyntaxNode offset=5, " " | |
SyntaxNode offset=6, ":" | |
SyntaxNode offset=7, "ciccio": | |
SyntaxNode offset=7, "c" | |
SyntaxNode offset=8, "i" | |
SyntaxNode offset=9, "c" |
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
ruby-1.9.1-p378 > tree = parser.parse "field :ciccio, 'integer'" | |
=> SyntaxNode+Field1+Field0 offset=0, "...d :ciccio, 'integer'" (construct,sp,name,s1,s2,interpretation): | |
SyntaxNode offset=0, "field" | |
SyntaxNode offset=5, " ": | |
SyntaxNode offset=5, " " | |
SyntaxNode offset=6, ":" | |
SyntaxNode offset=7, "ciccio": | |
SyntaxNode offset=7, "c" | |
SyntaxNode offset=8, "i" | |
SyntaxNode offset=9, "c" |
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
namespace :release do | |
task :js => :environment do | |
puts "Compiling coffeescript to javascript..." | |
[...] | |
File.open("#{release_dir}/example.js", 'w') do |file| | |
file.write CoffeeScript.compile(File.read("#{dev_dir}/example.coffee")) | |
end | |
puts "Coffeescript compiled" | |
puts "Closure Compiler: minifying" |
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
test = (input) -> | |
alert input | |
test 'hello' |
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
%div.example | |
foo | |
:coffeescript | |
alert "I have #{@count} posts" |
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 'usb' | |
require 'betabrite' | |
### | |
# Get a betabrite sign: | |
# | |
# http://www.betabrite.com/ | |
# http://www.amazon.com/Brite-Prism-Moving-Message-Display/dp/B000MQAI72 | |
# | |
# Install gems: |
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
[debug]: Finding <feature> - steps, step definitions, and step transforms | |
rake aborted! | |
no marshal_dump is defined for class class gherkin.I18n | |
org/jruby/java/proxies/JavaProxy.java:369:in `marshal_dump' | |
org/jruby/RubyMarshal.java:101:in `dump' | |
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/serializers/yardoc_serializer.rb:86:in `dump' | |
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/serializers/yardoc_serializer.rb:65:in `serialize' | |
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/registry_store.rb:143:in `save' | |
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/registry.rb:157:in `save' | |
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/cli/yardoc.rb:216:in `run' |
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
$ bundle | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.9.2) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/rake-0.9.2.gemspec | |
Using multi_json (1.0.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/multi_json-1.0.3.gemspec | |
Using activesupport (3.1.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/activesupport-3.1.0.gemspec | |
Using bouncy-castle-java (1.5.0146.1) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/bouncy-castle-java-1.5.0146.1.gemspec | |
Using builder (3.0.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/builder-3.0.0.gemspec | |
Using columnize (0.3.4) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/columnize-0.3.4.gemspec | |
Using diff-lcs (1.1.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/diff-lcs-1.1.3.gemspec | |
Installing json (1.6.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. |
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
/Users/ale/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb | |
WARNING: JRuby does not support native extensions or the `mkmf' library very well. | |
Check http://kenai.com/projects/jruby/pages/Home for alternatives. | |
checking for re.h... yes | |
checking for ruby/st.h... yes | |
creating Makefile |
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
$ bundle | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.9.2) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/rake-0.9.2.gemspec | |
Using multi_json (1.0.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/multi_json-1.0.3.gemspec | |
Using activesupport (3.1.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/activesupport-3.1.0.gemspec | |
Using bouncy-castle-java (1.5.0146.1) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/bouncy-castle-java-1.5.0146.1.gemspec | |
Using builder (3.0.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/builder-3.0.0.gemspec | |
Using columnize (0.3.4) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/columnize-0.3.4.gemspec | |
Using diff-lcs (1.1.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/diff-lcs-1.1.3.gemspec | |
Installing json (1.6.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. |
OlderNewer