This file contains 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
[ | |
{"label": "Afghanistan", "value": "af"}, | |
{"label": "Åland Islands", "value": "ax"}, | |
{"label": "Albania", "value": "al"}, | |
{"label": "Algeria", "value": "dz"}, | |
{"label": "American Samoa", "value": "as"}, | |
{"label": "AndorrA", "value": "ad"}, | |
{"label": "Angola", "value": "ao"}, | |
{"label": "Anguilla", "value": "ai"}, | |
{"label": "Antarctica", "value": "aq"}, |
This file contains 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
/** | |
* Trying to figure out types of the optional arguments. | |
*/ | |
let mandatory = (~s: string) => s; | |
// let mandatory: (~s: string) => string = <fun>; | |
let optional = (~s: string=?) => s; |
This file contains 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
#require "core_bench";; | |
open Core_bench;; | |
[ Bench.Test.create ~let numbers = List.range 0 1000 in | |
[ Bench.Test.create ~name:"sum_if" (fun () -> ignore (sum_if numbers)) | |
; Bench.Test.create ~name:"sum" (fun () -> ignore (sum numbers)) ] | |
|> Bench.bench | |
;; | |
(* from https://dev.realworldocaml.org/lists-and-patterns.html#performance *) |
This file contains 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
module Main exposing (..) | |
import Config exposing (..) | |
import Storage exposing (..) | |
-- | |
import Html exposing (..) |
This file contains 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
/* © http://codepen.io/chriscoyier/pen/nfyGk */ | |
#container { | |
text-align: justify; | |
font-size: 0.1px; /* IE 9 & 10 don't like font-size: 0; */ | |
min-width: 600px; | |
} | |
#container div { | |
width: 150px; | |
height: 125px; |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |