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
Route object | |
└── Route leg object | |
├── Banner instruction object | |
└── Route step object | |
└── Step maneuver object | |
└── Voice instruction object |
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
Mapbox - storytelling demo | |
license: mit |
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
Mapbox - helper.html in Storytelling | |
license: mit |
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
BERT_PRAMS = { | |
'vocab_file': '/efs/sp/vocab.txt', | |
'bert_config_file': '/efs/config.json', | |
'init_checkpoint': '/efs/model/bert_model.ckpt', | |
... | |
} |
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
class convert_to_simlarity: | |
def __init__(self): | |
self.output = {"target": None, "texts": None} | |
def from_texts(self, target, texts): | |
self.output["target"] = target | |
self.output["texts"] = texts | |
self.output["sims"] = self.texts2similarity() | |
return self.output |
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
# Mapbox GL JS - Simple Map | |
license: mit |
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
import csv | |
import numpy as np | |
with open('test.tsv', mode='r', newline='', encoding='utf-8') as f: | |
raw_input = csv.reader(f, delimiter='\t') | |
input = [row for row in raw_input] | |
# handle data (ex. delete column) | |
output = np.delete(input, 1, 1) |
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
const fs = require('fs'); | |
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | |
const dirPath = require('path').dirname(require.main.filename); | |
const mkdirExceptExist = (dirPath) => { | |
if (!fs.existsSync(dirPath)) { fs.mkdirSync(dirPath); } | |
}; | |
mkdirExceptExist("output"); |
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
# three-vrm - VRM motion capture by PoseNet | |
license: mit |
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
# d3v5 - Selective Projection Map | |
license: mit |