Skip to content

Instantly share code, notes, and snippets.

View Jack-Works's full-sized avatar
🎆
魔法をかけて

Jack Works Jack-Works

🎆
魔法をかけて
View GitHub Profile
@Jack-Works
Jack-Works / bad part.jsx
Created November 13, 2023 07:39
prettier 3.1 feedback
//// Case 1
// before
len = len > 32 ? (len > 48 ? 66 : 48) : 32
// after
len =
len > 32 ?
len > 48 ?
66
: 48
@Jack-Works
Jack-Works / .vscode-launch.json
Last active April 30, 2023 17:49
Debug TypeScript
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests (currently opened test)",
"runtimeArgs": ["--nolazy"],
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
@Jack-Works
Jack-Works / 2018.js
Last active March 1, 2024 02:23
cRAzY eSnEXt (*all* proposals mixed in)
#! Aaaaaaaaaaa this is JS!!!
// https://github.com/tc39/proposal-hashbang
// This file is mixing all new syntaxes in the proposal in one file without considering syntax conflict or correct runtime semantics
// Enjoy!!!
// Created at Nov 23, 2018
for await(const x of (new A // https://github.com/tc39/proposal-pipeline-operator
|> do { // https://github.com/tc39/proposal-do-expressions
case(?) { // https://github.com/tc39/proposal-pattern-matching
when {val}: class {