https://dotinstall.com/lessons/basic_postgresql
- cmd上で
psql -d postgres -U postgres
create database ;
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(); |
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]; |
https://dotinstall.com/lessons/basic_postgresql
psql -d postgres -U postgres
create database ;
/** | |
* 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 | |
); | |
}; |
declare module "*.json" { | |
const v: any; | |
export default v; | |
} |
<!-- | |
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 |
// 縛り内容: | |
// - eval 禁止 | |
// - toString 禁止 | |
// - "ひだまりスケッチ×" 直接入力禁止 | |
// - "X / _ / X < 来週も見てくださいね!" の形を崩さない | |
((x,[y,z]=x.split(" < "),d="c0qc20c2fc3ac2qc4hc4kc513v".match(/.{2,3}/g).map(v=>parseInt(v,32)) | |
)=>[...y].map((v,i)=>String.fromCharCode(v.charCodeAt()+d[i])).join("")+(d[2]-12002)+" "+z | |
)( |
window.RAA = {}; | |
window.RAA.responseTime = { | |
normal: 1000, | |
modal: 500, | |
}; | |
window.RAA.isEnable = !window.RPGAtsumaru; // APIを上書きするかどうか | |
window.RAA.isServerError = false; // 意図的にサーバーダウンを再現するか |
(src=>{src.map(v=>{var s=document.createElement('script');s.src=v;document.body.appendChild(s)})}) | |
(["https://code.jquery.com/jquery-3.3.1.min.js","https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"]) | |
// https://gistcdn.githack.com/katai5plate/7f97376fdbdd70a3bfa2a1ce0153a1f0/raw/e8d1eebc2eb9abc85b360fb249ba2281aa0d240f/include.js |