Skip to content

Instantly share code, notes, and snippets.

View MichaelHoste's full-sized avatar
🐵
def 🍻?() Date.today.on_weekend? end

Michaël Hoste MichaelHoste

🐵
def 🍻?() Date.today.on_weekend? end
View GitHub Profile
{
["af", "an", "asa", "ast", "az", "bem", "bez", "bg", "brx", "ca", "ce", "cgg", "chr", "ckb", "da", "de", "dv", "ee", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gsw", "ha", "haw", "hu", "ia", "io", "it", "jgo", "ji", "jmc", "ka", "kaj", "kcg", "kk", "kkj", "kl", "ks", "ksb", "ku", "ky", "lb", "lg", "lij", "mas", "mgo", "ml", "mn", "mr", "nah", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nr", "ny", "nyn", "om", "or", "os", "pap", "ps", "pt_PT", "rm", "rof", "rwk", "saq", "sc", "scn", "sd", "sdh", "seh", "sn", "so", "sq", "ss", "ssy", "st", "sv", "sw", "syr", "ta", "te", "teo", "tig", "tk", "tn", "tr", "ts", "ug", "ur", "uz", "ve", "vo", "vun", "wae", "xh", "xog", "yi"] => "n != 1",
["ak", "am", "as", "bho", "bn", "doi", "fa", "ff", "gu", "guw", "hi", "hy", "kab", "kn", "ln", "mg", "nso", "pa", "pcm", "pt", "si", "ti", "wa", "zu"] => "n > 1",
["ar", "ars"] => "(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99)
PLURAL_RULES = {
'af' => {
'name' => 'Afrikaans',
'formula' => 'n != 1',
'plurals' => 2,
'cases' => ['one', 'other'],
'examples' => {
'one' => '1',
'other' => '0, 2~16, 100, 1000, 10000, 100000, 1000000, …',
},
@MichaelHoste
MichaelHoste / hangman.rb
Created September 25, 2014 13:47
Hackety-Hack interactive hangman
def circle(size)
for i in (1...360)
forward size
turnright 1
end
end
def draw_gallows
goto 150, 300
setheading 270
@MichaelHoste
MichaelHoste / gist:3851353
Created October 8, 2012 08:16
Chrome conformance tests on old MacOS
WebGL Conformance Test Results
Version 1.0.1
-------------------
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
WebGL VENDOR: WebKit
WebGL VERSION: WebGL 1.0 (OpenGL ES 2.0 Chromium)
WebGL RENDERER: WebKit WebGL
Unmasked VENDOR: undefined
@MichaelHoste
MichaelHoste / gist:3851350
Created October 8, 2012 08:15
Firefox conformance tests on old MacOS
WebGL Conformance Test Results
Version 1.0.1
-------------------
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0.1
WebGL VENDOR: Mozilla
WebGL VERSION: WebGL 1.0
@MichaelHoste
MichaelHoste / gist:3848167
Created October 7, 2012 12:03
WebGL Conformance
WebGL Conformance Test Results
Version 1.0.1
-------------------
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
WebGL VENDOR: WebKit
WebGL VERSION: WebGL 1.0 (OpenGL ES 2.0 Chromium)
WebGL RENDERER: WebKit WebGL
Unmasked VENDOR: undefined
@MichaelHoste
MichaelHoste / gist:3840329
Created October 5, 2012 15:01
WebGL Conformance Test Resulsts
WebGL Conformance Test Results
Version 1.0.1
-------------------
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
WebGL VENDOR: WebKit
WebGL VERSION: WebGL 1.0 (OpenGL ES 2.0 Chromium)
WebGL RENDERER: WebKit WebGL
Unmasked VENDOR: undefined