Skip to content

Instantly share code, notes, and snippets.

View RexSkz's full-sized avatar
🥰

Rex Zeng RexSkz

🥰
View GitHub Profile
@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 {
@mutoo
mutoo / roses-are-red.js
Last active September 10, 2019 00:05
Roses are red, violets are blue. Unexpected token { at line 32.
// inspired by https://twitter.com/nixcraft/status/1162020669242003456
console.log('Roses are red, violets are blue.');
// ooooooooo.
// `888 `Y88.
// 888 .d88' .ooooo. .oooo.o .ooooo. .oooo.o .oooo. oooo d8b .ooooo.
// 888ooo88P' d88' `88b d88( "8 d88' `88b d88( "8 `P )88b `888""8P d88' `88b
// 888`88b. 888 888 `"Y88b. 888ooo888 `"Y88b. .oP"888 888 888ooo888
// 888 `88b. 888 888 o. )88b 888 .o o. )88b d8( 888 888 888 .o