https://dotinstall.com/lessons/basic_postgresql
- cmd上で
psql -d postgres -U postgres
create database ;
<!-- | |
0. Open RAW in this gist | |
1. Open DevTools | |
2. Open Console tab | |
3. Paste this: | |
document.body.innerHTML = document.body.innerText | |
4. Return to RUN |
declare module "*.json" { | |
const v: any; | |
export default v; | |
} |
/** | |
* FizzBuzzプログラム | |
*/ | |
const fizzbuzz = n => { | |
if (!Number.isInteger(n) || n < 0) throw new Error("0以上の数値じゃないすよ"); | |
const print = (value, div, text) => (value % div === 0 ? text : ""); | |
return [...new Array(n).keys()].map( | |
num => `${print(num, 3, "Fizz")}${print(num, 5, "Buzz")}` || num | |
); | |
}; |
https://dotinstall.com/lessons/basic_postgresql
psql -d postgres -U postgres
create database ;
const getInitials = (src, length) => { | |
if (length === void 0) { length = 1; } | |
return Array.from(new Set(src.map(v => v.substring(0, length)))); | |
}; | |
export default src => getInitials(src).map(initial => { | |
const list = src.filter(v => v.match(`^${initial}`)); | |
const rec = (prev, length) => { | |
if (length === void 0) { length = 2; } | |
const _a = getInitials(list, length); | |
const word = _a[0]; |
type AnyObj = { [key: string]: any }; | |
const M = ( | |
globalWindow: AnyObj, | |
headerParams: { [key: string]: string }, | |
transferList: { url: string, response: AnyObj }[] | |
) => { | |
const cacheFetch = globalWindow.fetch; | |
delete globalWindow.fetch; | |
const headers = new Headers(); |
https://tabelog.com/XXXXX/XXXXX/XXXXX/XXXXX/dtlrvwlst/?lc=2
makeJSON.js
のコードを一文字残らず全部コピペしてEnterDownload the entire CSV
をクリックして100件の集計CSVをダウンロードする1.
の手順を行う。yarn add -D npm-run-all rimraf browser-sync typescript webpack webpack-cli ts-loader html-webpack-plugin style-loader css-loader file-loader
tsconfig.json
{
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"moduleResolution": "node",
"lib": ["es2019", "dom"],