Skip to content

Instantly share code, notes, and snippets.

#Works (foo is not included)
:markdown
Hello
World
%foo
#Fails (foo is included)
:markdown
Hello
{
"begin" : "^(\\s*):markdown\\b",
"end" : "^(?!\\1)|^\\1\\S",
"patterns" : [
{
"include" : "text.html.markdown"
}
]
},
{
"patterns" : [
{
"begin" : "^\\s*==",
"patterns" : [
{
"include" : "#interpolated_ruby"
}
],
"contentName" : "string.quoted.double.ruby",
user www-data;
worker_processes 6;
events {
worker_connections 1024;
}
http {
include mime.types;
$ 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
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
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
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 )
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
# 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',