Skip to content

Instantly share code, notes, and snippets.

mmorgp
2 reality: current time + future time
can bring articats from future to craft in current time
3 fractions, 2 war 1 neutral
all skills and usable things (also passive) are inventory items, can be dropped
vehicles
pets are craftable cyborgs
battle royale mode (as oly alternative) taken from npc
mmo/party quest system
@maxdeepfield
maxdeepfield / .gitlab-ci.yml
Created August 25, 2017 08:42
gitlab-ci ftp deploy recipe
stages:
- deploy
ftp:
stage: deploy
script:
- lftp -e "mirror -Re . ./web;quit" -u $CI_BUILD_REF_NAME.$FTP_USER,$CI_BUILD_REF_NAME.$FTP_PASS $FTP_HOST
decode: function (encoded, precision) {
precision = Math.pow(10, -precision);
var len = encoded.length, index = 0, lat = 0, lng = 0, array = [];
while (index < len) {
var b, shift = 0, result = 0;
do {
b = encoded.charCodeAt(index++) - 63;
result |= (b & 0x1f) << shift;
shift += 5;
} while (b >= 0x20);
// converts HH:ii time to seconds from midnight
var timeToSeconds = function(time){
if (time.length != 5) {
return false;
}
var h = Number(time.split(':')[0]);
var m = Number(time.split(':')[1]);
if (isNaN(h) || isNaN(m)) {
return false;
}