(credit: @tomo_e さん)
- Sho Miyamoto / @webseals
- 新卒 2 年目
- ウェブチーム
| import readline from 'node:readline/promises'; | |
| import { createConnection } from 'mysql2/promise'; | |
| let stdin = ''; | |
| await new Promise((resolve) => { | |
| readline | |
| .createInterface({ input: process.stdin }) | |
| .on('line', (line) => { | |
| stdin += line + '\n'; |
| # https://github.com/messense/homebrew-macos-cross-toolchains | |
| brew tap messense/macos-cross-toolchains | |
| brew install x86_64-unknown-linux-gnu | |
| export CC_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-gcc | |
| export CXX_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-g++ | |
| export AR_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-ar | |
| export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc |
| 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/foundation-sites@6.6.3/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/bootstrap@4.6.0/dist/css/bootstrap.min.css", | |
| ,Bootstrap,v5.1.2,206 kb,164 kb,24 kb,"https://getbootstrap.com/","https://cdn.jsdelivr.net/npm/b |
| struct Context { | |
| _inner: *mut std::ffi::c_void, | |
| } | |
| impl Drop for Context { | |
| fn drop(&mut self) { | |
| println!("drop: Context") | |
| } | |
| } |
| #![allow(dead_code, unused_variables, clippy::from_over_into)] | |
| struct Inner { | |
| raw: *mut [u8; 0], | |
| } | |
| struct Object { | |
| inner: Inner, | |
| } |
| /** | |
| * https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/devtools/+/eb375f3b31a67df908c93a827dd9e78d3212be60/front_end/product_registry_impl/sha1/sha1.js | |
| */ | |
| /* | |
| * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined | |
| * in FIPS 180-1 | |
| * Version 2.2 Copyright Paul Johnston 2000 - 2009. | |
| * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |
| * Distributed under the BSD License |
| import { useState, useEffect } from "preact/hooks" | |
| type Listener<T> = (state: T) => void | |
| type Updater<T> = (state: T) => T | |
| type Context<T> = { | |
| setState(update: T | Updater<T>): void | |
| subscribe(listener: Listener<T>): void | |
| unsubscribe(listener: Listener<T>): void | |
| getState(): T | |
| } |
| class Flavoring<FlavorT> { | |
| private _flavor?: FlavorT; | |
| } | |
| type Flavor<Base, Flavor> = Base & Flavoring<Flavor>; | |
| type i32 = Flavor<number, 'i32'> | |
| type i64 = Flavor<number, 'i64'>; | |
| const a: i32 = 1 |
| version: '3.8' | |
| services: | |
| varnish: | |
| image: varnish:stable | |
| volumes: | |
| - type: bind | |
| source: ./varnish | |
| target: /etc/varnish | |
| read_only: true | |
| tmpfs: /var/lib/varnish:exec |