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
require('dotenv').config(); | |
const {WebClient} = require('@slack/client'); | |
const AWS = require('aws-sdk'); | |
const moment = require('moment'); | |
const {groupBy} = require('lodash'); | |
(async () => { | |
const slack = new WebClient(process.env.SLACK_TOKEN); |
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
そうだい | 医学・航空機においてのいわゆる土地 | |
---|---|---|
ぞうちく | しら出して矢がとどめりん | |
やましろちいきこみゅにてぃばす | NHK横浜交通の所有する吉生街街で島風日-39にある、日本の国道3号にて行われているコミュニティバス | |
えぬまえりしゅ | 公共広告金の一人 | |
きょうはくせいしょうがい | あるデータを基本的に構築するための装置 | |
あかい | 「内容」を意味する事 | |
とるまりん | ヒト・ヒトの一種で、主に2つの意味を果たす | |
ろたんちょう | 大韓民国台南市の初代皇帝長 | |
ふんりゅう | 人が動くこと | |
ぜしかのふだんぎ | 88夏夏広による日本の漫画 |
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
const tests = Array(10000).fill().map(() => ( | |
// Array(10).fill().map(() => sample(Array.from('アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン'))).join('') | |
Array(10).fill().map(() => sample(Array.from('0123456789'))).join('') | |
)); | |
console.time('empty'); | |
for (let i = 0; i < 1e8; i++) ; | |
console.timeEnd('empty'); | |
console.time('case1'); |
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
// npx -p download -p xml2js -p iconv-lite node hongo-meshi.js | grep -v 閉店 | |
const download = require('download'); | |
const xml2js = require('xml2js'); | |
const {promisify} = require('util'); | |
const iconv = require('iconv-lite'); | |
// 中央食堂 | |
const center = { | |
lat: 35.71346867291816, |
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
const fs = require('fs'); | |
const {promisify} = require('util'); | |
const {get} = require('lodash'); | |
(async () => { | |
const json = await promisify(fs.readFile)('dynamo-archive-sandbox-messages-201808280017.json'); | |
const data = json.toString().split('\n').filter((line) => line.length).map((line) => JSON.parse(line)); | |
data.sort((a, b) => a.ts.S.localeCompare(b.ts.S)); | |
const battles = []; |