mewlist mewlist

View roman
1 2 3 4 5 6 7
T=[%w(I V X),%w(X L C),%w(C D M), %w(M - -)]
D=[[],[0],[0,0],[0,0,0],[0,1],[1],[1,0],[1,0,0],[1,0,0,0],[0,2]]
(1..1999).each{|n|
s = n.to_s.split('').map{|v|v.to_i}
s.size.times{|i| D[s[i]].each{|j| print T[s.size-i-1][j] } }
puts
}
View jquery.cors.js
1 2 3 4 5 6 7 8 9
$.ajaxTransport("+*", function( options, originalOptions, jqXHR ) {
 
if(jQuery.browser.msie && window.XDomainRequest) {
 
var xdr;
 
return {
 
send: function( headers, completeCallback ) {
View gist:1200004
1 2 3 4 5 6 7
[alias]
co = checkout
st = status
ll = log --graph --decorate --oneline
la = log --graph --decorate --oneline --all
[color]
ui = true
View alert.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
# usage:
# alert.sh [command]
 
$@
ruby <<EOD
require 'real_growl'
RealGrowl::Application.new("Alert").notify(:title=>"Alert", :description=>"finished: $@", :priority=>0, :sticky => false)
EOD
View convert_asset_to_inline.rb
1 2 3 4 5 6 7 8 9 10
require 'open-uri'
require 'image_size'
 
class ConvertAssetInline
def initialize
@orig = nil
@cache = {}
end
 
def convert(url)
Something went wrong with that request. Please try again.