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
#( | |
#(#code_primitive #(#italic #(#{Core.Association} #color #(#{Graphics.ColorValue} 6521 2409 707 )))) | |
#(#code_comment #(#italic #(#{Core.Association} #color #(#{Graphics.ColorValue} 4208 4754 4818)))) | |
#(#code_methodComment #( #(#{Core.Association} #color #(#{Graphics.ColorValue} 4208 4754 4818)))) | |
"syntax" | |
#(#code_assignment) | |
#(#code_cascade) | |
#(#code_return #(#bold #(#{Core.Association} #color #(#{Graphics.ColorValue} 1221 4465 6746)))) |
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
start = Time.now ; duration = 5*60 ; while ((diff = Time.now - start) < duration) do sleep 1 ; q, r = (duration - diff).divmod(60) ; puts "%imin %2.0fs" % [ q, r ] ; 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
Captain! We’ve been hit! | |
Message: | |
MentosError: Traceback (most recent call last): | |
File "/Users/ddfreyne/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.4/lib/pygments/mentos.py", line 303, in start | |
res = self.get_data(method, lexer, args, kwargs, text) | |
File "/Users/ddfreyne/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.4/lib/pygments/mentos.py", line 171, in get_data | |
res = self.highlight_text(text, lexer, formatter_name, args, _convert_keys(opts)) | |
File "/Users/ddfreyne/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.4/lib/pygments/mentos.py", line 122, in highlight_text |
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 Text < Nanoc::Content | |
end | |
class Binary < Nanoc::Content | |
end | |
class DOM < Nanoc::Content | |
end | |
class DOMParser < Nanoc::Filter |
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
▸ rdoc --version | |
rdoc 4.0.0 | |
▸ irb | |
irb(main):001:0> require 'rdoc' | |
=> true | |
irb(main):003:0> RDoc::VERSION | |
=> "3.9.4" |
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
#pragma D option dynvarsize=100m | |
dtrace:::BEGIN | |
{ | |
self->depth = 0; | |
} | |
ruby*:::method-entry | |
{ | |
self->depth++; |
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
---------------------------------------- ---------------------------------------- ---------------------------------------- ------- | |
CALLER CLASS CALLER METHOD ALLOCATED CLASS COUNT | |
---------------------------------------- ---------------------------------------- ---------------------------------------- ------- | |
#<Class:0x007fda0b0e0708> 1 | |
ARGF.class 1 | |
Gem::Version 1 | |
IOError 1 | |
Mutex 1 | |
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
match '/articles/*.md' do | |
filter :rdiscount | |
layout 'article' | |
end | |
[ '/foo/*.md', '/bar/*.md' ].each do |x| | |
match x do | |
filter :rdiscount | |
layout 'article' | |
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
class InvalidDataException < StandardError | |
attr_accessor :filename | |
end | |
def do_something_with_file(filename) | |
begin | |
self.do_something_with_data(File.read(filename)) | |
rescue InvalidDataException => e |
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
% NOTE needs XeTeX | |
% NOTE needs the following fonts: | |
% - GentiumBasic | |
% - ITC Franklin Gothic LT Medium | |
% - Consolas | |
% - Futura LT Book | |
\defaultfontfeatures{Mapping=tex-text} | |
\setromanfont[Mapping=tex-text]{GentiumBasic} |