Skip to content

Instantly share code, notes, and snippets.

View fibo's full-sized avatar
🎼
Working from everywhere

Gianluca Casati fibo

🎼
Working from everywhere
View GitHub Profile
@fibo
fibo / browser-language-codes.js
Created July 21, 2019 17:19 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
"ar-jo": "Arabic (Jordan)",
@fibo
fibo / springer-free-maths-books.md
Created December 28, 2015 20:05 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@fibo
fibo / gist:1203756
Created September 8, 2011 16:00 — forked from osfameron/gist:1203752
Crivello Haskell
import Data.List
import Debug.Trace
-- primes = 2 : 3 : zipWith getPrime primes (tail primes)
checkZeros :: [Int] -> Bool
checkZeros ms = any isZero ms
where isZero 0 = True
isZero _ = False
calculateMods :: Int -> [Int] -> [Int]