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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
const char *g_numeral_list[] = {"M", "CM", "D", "CD", "C", "XC", | |
"L", "XL", "X", "IX", "V", "IV", "I"}; | |
const int g_value_list[] = {1000, 900, 500, 400, 100, 90, | |
50, 40, 10, 9, 5, 4, 1}; | |
const int g_list_length = 13; | |
const size_t g_buffer_size = 32; |
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 ruby | |
require 'date' | |
require 'yaml' | |
class Float | |
def nearest_half | |
(self * 2.0).ceil / 2.0 | |
end | |
end |
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
// ==UserScript== | |
// @name I WANT MY F#(*& WIKIPEDIA | |
// @description Removes the blackout overlay from Wikipedia. Because we already know, and Congress is bound to find a way to mess with the DNS system somehow. | |
// @match http://en.wikipedia.org/* | |
// @match https://en.wikipedia.org/* | |
// @author Dan Poggi | |
// @version 0.1 | |
// ==/UserScript== | |
(function () { |
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
gem 'haml' |
NewerOlder