Skip to content

Instantly share code, notes, and snippets.

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