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
| var randName = function () { | |
| return new Array(10).join(' ').split(' ').map(function() { | |
| return (10 + (Math.random() * 26 | 0)).toString(36); | |
| }); | |
| }; |
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
| function range (from, to, step) { | |
| return new Array(Math.ceil((to - from) / (step || 1))) | |
| .join(' ').split(' ') | |
| .map(function (_, i) { | |
| return from + (i * (step || 1)) | |
| }) | |
| } |
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
| function aKeyMirror(list) { | |
| var i, key, result = {}; | |
| if (!Array.isArray(list)) { | |
| throw new Error('Argument must be an array.'); | |
| } | |
| for(i = 0; i < list.length; i++) { | |
| key = list[i]; | |
| result[key] = key; | |
| } |
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
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight |
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
| var mappings = [ | |
| "Africa/Cairo|(GMT+02:00) Cairo", | |
| "Africa/Cairo|(UTC+02:00) Cairo", | |
| "Africa/Johannesburg|(GMT+02:00) Harare, Pretoria", | |
| "Africa/Johannesburg|(UTC+02:00) Harare, Pretoria", | |
| "Africa/Lagos|(GMT+01:00) West Central Africa", | |
| "Africa/Lagos|(UTC+01:00) West Central Africa", | |
| "Africa/Nairobi|(GMT+03:00) Nairobi", | |
| "Africa/Nairobi|(UTC+03:00) Nairobi", | |
| "Africa/Windhoek|(GMT+02:00) Windhoek", |
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
| var spToIana = [{ "id" : 2, "name" : "Europe/London" }, | |
| { "id" : 3, "name" : "Europe/Paris" }, | |
| { "id" : 4, "name" : "Europe/Berlin" }, | |
| { "id" : 5, "name" : "Europe/Bucharest" }, | |
| { "id" : 6, "name" : "Europe/Budapest" }, | |
| { "id" : 7, "name" : "Europe/Kaliningrad" }, | |
| { "id" : 8, "name" : "America/Sao_Paulo" }, | |
| { "id" : 9, "name" : "America/Halifax" }, | |
| { "id" : 10, "name" : "America/New_York" }, | |
| { "id" : 11, "name" : "America/Chicago" }, |
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
| (function () { | |
| 'use strict'; | |
| function State(properties) { | |
| var self = this; | |
| this.name = properties.name; | |
| this.transitions = properties.transitions; | |
| } | |
| State.prototype.validate = 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
| (function (corpus) { | |
| 'use strict'; | |
| var DEBUG = true; | |
| var err = function (msg) { | |
| throw Error(msg); | |
| }; | |
| /** |
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
| (function () { | |
| "use strict"; | |
| const goal = "METHINKS IT IS LIKE A WEASEL"; | |
| const size = 100; | |
| const rate = 0.04; | |
| const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ "; | |
| var range = function (count) { | |
| return new Array(count).join(' ').split(' '); |