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
#Works (foo is not included) | |
:markdown | |
Hello | |
World | |
%foo | |
#Fails (foo is included) | |
:markdown | |
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
{ | |
"begin" : "^(\\s*):markdown\\b", | |
"end" : "^(?!\\1)|^\\1\\S", | |
"patterns" : [ | |
{ | |
"include" : "text.html.markdown" | |
} | |
] | |
}, |
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
{ | |
"patterns" : [ | |
{ | |
"begin" : "^\\s*==", | |
"patterns" : [ | |
{ | |
"include" : "#interpolated_ruby" | |
} | |
], | |
"contentName" : "string.quoted.double.ruby", |
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
user www-data; | |
worker_processes 6; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
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
$ curl -I http://phrogz.net/SVG/turtle-spark-unfold-animated.svg | |
HTTP/1.1 200 OK | |
Server: nginx/0.7.61 | |
Date: Thu, 25 Feb 2010 18:52:22 GMT | |
Content-Type: image/svg+xml | |
Content-Length: 748694 | |
Last-Modified: Thu, 25 Feb 2010 18:32:17 GMT | |
Connection: keep-alive | |
Accept-Ranges: bytes |
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
Response Headers | |
Server nginx/0.7.61 | |
Date Thu, 25 Feb 2010 18:55:28 GMT | |
Content-Type image/svg+xml | |
Content-Length 748694 | |
Last-Modified Thu, 25 Feb 2010 18:32:17 GMT | |
Accept-Ranges bytes | |
Request Headers | |
Host phrogz.net |
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
size.times do |i| | |
k = i | |
((i+1)...size).each do |j| | |
k=j if a[j] < a[k] | |
a[k],a[i] = a[i],a[k] | |
end | |
end | |
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
class String | |
def dindent | |
gsub(/^#{self[/\A\s+/]}/,'') | |
end | |
end | |
class Turtle | |
attr_accessor :x, :y, :a | |
attr_reader :path | |
def initialize( x=0, y=0, a=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
C:\www\bugbot3>type test.rb | |
require 'vendor/gems/ruby-net-ldap-0.0.4/lib/net/ldap.rb' | |
C:\www\bugbot3>ruby test.rb | |
C:/www/bugbot3/vendor/gems/ruby-net-ldap-0.0.4/lib/net/ldap.rb:31:in `require': no such file to load -- net/ber (LoadError) | |
from C:/www/bugbot3/vendor/gems/ruby-net-ldap-0.0.4/lib/net/ldap.rb:31:in `<top (required)>' | |
from test.rb:1:in `require' | |
from test.rb:1:in `<main>' | |
C:\www\bugbot3>type vendor\gems\ruby-net-ldap-0.0.4\lib\net\ldap.rb |
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
# mkdir vendor; cd vendor; mkdir gems; cd gems | |
# gem unpack rack | |
# gem unpack sinatra | |
# gem unpack haml | |
# gem unpack sequel | |
# gem unpack ruby-net-ldap | |
GEMS = { | |
'rack' => 'rack-1.1.0', | |
'sinatra' => 'sinatra-1.0', | |
'haml' => 'haml-2.2.23', |
OlderNewer