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
#!/usr/bin/env coffee | |
stdin = process.openStdin() | |
stdout = process.stdout | |
input = '' | |
stdin.setEncoding 'utf8' | |
stdin.on 'data', (data) -> | |
return unless data? |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Error 401 Unauthorized</title> | |
</head> | |
<body> | |
<h2>HTTP ERROR: 401</h2> | |
<p>Problem accessing '/2b/site.json'. Reason: | |
<pre> Unauthorized</pre> | |
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 Fixnum | |
NUMERALS = { | |
1000 => %w(M), | |
100 => %w(C D), | |
10 => %w(X L), | |
1 => %w(I V), | |
} | |
def to_roman | |
raise "Out of range" unless (1...3000).include?(self) |
OlderNewer