(credit: @tomo_e さん)
- Sho Miyamoto / @webseals
- 新卒 2 年目
- ウェブチーム
Caution,Name,Version,Size (raw),Size (minified),Size (gzipped),"Site","URL",Remarks | |
,Milligram,v1.4.1,11 kb,9.0 kb,2.3 kb,"https://milligram.io/","https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css", | |
,Skelton,v2.0.4,11 kb,5.8 kb,1.6 kb,"http://getskeleton.com/","https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css", | |
,Material Design Lite,v1.3.0,146 kb,62 kb,12 kb,"https://getmdl.io/","https://code.getmdl.io/1.3.0/material.min.js", | |
,Foundation,v6.6.3,168 kb,133 kb,17 kb,"https://get.foundation/","https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css", | |
,Materialize,v1.0.0,179 kb,141 kb,21 kb,"https://materializecss.com/","https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css", | |
,Bootstrap,v4.6.0,199 kb,161 kb,24 kb,"https://getbootstrap.com/docs/4.6/","https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css", | |
,Bootstrap,v5.1.2,206 kb,164 kb,24 kb,"https://getbootstrap.com/","https://cdn.jsdelivr.net/npm/b |
type RequiredPropName<T extends string> = `${T}!` | |
type OptionalPropName<T extends string> = `${T}?` | |
type QualifiedPropName<T extends string> = RequiredPropName<T> | OptionalPropName<T> | |
type RequiredProp<T> = { | |
value: T, | |
required: true | |
} | |
type OptionalProp<T> = { |
race() | |
function race() { | |
let count = 1 | |
function finish(message) { | |
console.log(`${count++}. ${message}`) | |
} | |
setTimeout(() => finish('timeout'), 0) |
const run = () => console.log("loop") || requestIdleCallback(run) | |
run() |
const express = require('express') | |
const sleep = (ms) => new Promise((res, rej) => setTimeout(res, ms)) | |
const sleepSync = (ms) => { | |
const start = new Date() | |
while (new Date() - start < ms) {} | |
} | |
const server = express() |
// https://github.com/v8/v8/blob/master/test/mjsunit/mjsunit.js#L162-L178 | |
const statuses = { | |
IsFunction: 1 << 0, | |
NeverOptimize: 1 << 1, | |
AlwaysOptimize: 1 << 2, | |
MaybeDeopted: 1 << 3, | |
Optimized: 1 << 4, | |
TurboFanned: 1 << 5, | |
Interpreted: 1 << 6, |
import chalk from 'chalk'; | |
export const initChalk = ({ error = chalk.redBright, warn = chalk.yellowBright } = {}) => { | |
// disable coloring e.g. when piped like `2> err.log` | |
if (typeof process !== 'undefined' && !process.stderr.isTTY) { | |
return; | |
} | |
if (error) { | |
const defaultError = console.error.bind(console); |
import { useState, useEffect } from 'preact/hooks' | |
// or | |
import { useState, useEffect } from 'react' | |
import { Store } from 'unistore' | |
// or | |
import { Store } from 'redux' | |
const extract = (state: any, key: any) => { | |
if (!key) return state |
<style> | |
.container { | |
display: flex; | |
flex-direction: row; | |
height: 1000px; | |
} | |
.item { | |
flex: 1; | |
} | |
</style> |