Forking has been fixed, but the old repositories will still be corrupted.
The method page
will create a new page:
page "home" do
"Hello, world!"
#!/usr/bin/env ruby | |
require "net/http" | |
if ARGV.length == 0 then | |
puts "Usage: #{__FILE__.split('/').last} album loc [albumN locN ...]" | |
exit | |
end | |
while ARGV.length > 0 |
#!/usr/bin/ruby | |
RLSP_VERSION = "1.4.2" | |
class Lambda | |
attr_accessor :args, :body | |
def initialize(args=[],body="") | |
@args = (args.class == Array) ? args : [args] | |
@body = body | |
end |
#!/bin/sh | |
FOLDER=cfgames_locationfake | |
# Ensure we're able to use sudo | |
amiroot=$(sudo whoami) | |
if [ "$amiroot" != "root" ]; then | |
echo "You must have sudo permission to run this script." | |
exit 1 | |
fi |
$ ruby inline-test.rb demo.rb | |
demo.rb | |
my_function .. | |
first .. | |
Foo#bar . | |
Bar::Baz#bar .. | |
7/7 tests passed in 0.113 seconds | |
$ |
About a month ago, "s0ck" made an "ask me anything" thread on Reddit. It's probably the absolute best description of a meth user I've ever seen, probably because it comes from. Watching Breaking Bad only makes me realize how spot-on that show is in how it portrays meth culture.
This document's basically what I find to be the most important and interesting bits of the IAmA thread.
#!/usr/bin/env ruby | |
module Spec | |
class AssertionError < Exception; end | |
class Should | |
def initialize(obj, invert=false) | |
@invert = invert | |
@self = obj | |
end |
#!/usr/bin/ruby | |
=begin | |
Changelog for 1.7 | |
* Fixed a bug where bottom-level directories did not, in fact, have their '/' | |
* Allowed the specification of flags and directories in any order. Thus, the | |
results of `tree -depth 1 test` and `tree test -depth 1` are identical, and | |
either can be used. | |
Changelog for 1.6.2 |
<html> | |
<head> | |
<title>Javascript REPL</title> | |
<script type="text/javascript"> | |
function $(i){return document.getElementById(i);} | |
</script> | |
</head> | |
<body> | |
<pre><span id="repl"></span><span style="font-size:12px;">█</span></pre> | |
<script type="text/javascript"> |