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
- arabic_egypt | |
- basque | |
- belarusian | |
- brazilian_portuguese | |
- english_AU | |
- english_US | |
- hebrew | |
- indonesian | |
- irish | |
- luxembourgish |
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
### Keybase proof | |
I hereby claim: | |
* I am avdg on github. | |
* I am anthonyvdg (https://keybase.io/anthonyvdg) on keybase. | |
* I have a public key whose fingerprint is AEAB D787 FD4A 0B8E CD9B D3B1 E296 08B0 FF0E 3964 | |
To claim this, I am signing this object: |
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 global = self; | |
var Reflect = { | |
global: global | |
}; | |
!function a(b, c, d) { | |
function e(g, h) { | |
if (!c[g]) { | |
if (!b[g]) { |
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 fs = require('fs'); | |
var http = require('http'); | |
var path = require('path'); | |
var useLocal = false; // Just to stop this script from fetching unicodeData all the time ;-) | |
var es6mode = false; // If false, we use es5 syntax and ommit some characters for now | |
// Format: | |
// 0000;<control>;Cc;0;BN;;;;;N;NULL;;;; | |
// |
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
//! moment-timezone.js | |
//! version : 0.3.0 | |
//! author : Tim Wood | |
//! license : MIT | |
//! github.com/moment/moment-timezone | |
var moment = (function (root, factory) { | |
"use strict"; | |
/*global define*/ |
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
c.prototype.findClosest = function(b, c) { | |
var e = this; | |
c = d.clone(c || {}); | |
var f = a.rooms[this.roomName]; | |
if (!f) throw new Error("Could not access a room " + this.roomName); | |
if (d.isUndefined(b)) return null; | |
var g, j = null, k = f.getEndNodes(b, c); | |
if (!c.algorithm) { | |
var l, m = 0; | |
k.objects.forEach(function(a) { |
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
// Priority stack implementation over here https://github.com/avdg/screeps/blob/master/extensions/tools/library/priorityStack.js | |
// Assume AI.priorityStack = require(<path to priorityQueue>); | |
/** | |
* A basic huffman tree compression algorithm | |
* | |
* @param input String Input to convert | |
* | |
* @return string | |
*/ |
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
'use strict'; | |
function hasWall(list, returnValueDefaultsTrue) { | |
if (!Array.isArray(list)) { | |
return returnValueDefaultsTrue === undefined ? true : returnValueDefaultsTrue; | |
} | |
for (var i = 0; i < list.length; i++) { | |
if (list[i].type === "terrain" && list[i].terrain === "wall") { | |
return true; |
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
'use strict'; | |
// TODO use high performance array? | |
var types = { | |
plain: 0, | |
swamp: 1, | |
lava: 2, | |
wall: 3 | |
}; |