Skip to content

Instantly share code, notes, and snippets.

@Gi972
Gi972 / index.pug
Created March 23, 2024 16:18
Simple Page Transition
#app
transition(name="page", :duration="1300")
.page(:is="page" @change-page="onChangePage")
script#start(type="text/x-template")
.start
.inner
h1.title.enter-1 Page Transition Demo
.button-wrapper.enter-2
button.button.button-start(
@Gi972
Gi972 / JSGameFramework2020.html
Created September 24, 2023 16:20 — forked from xem/JSGameFramework2020.html
JS game framework 2020
<body style=margin:0>
<canvas id=a>
<script>
// initialize 2D canvas (c)
// initialize game state (s)
// initialize keys states (u,r,d,l for directions, k for all the keyboard)
c=a.getContext`2d`,k=[u=r=d=l=s=0]
// (initialize your global variables here)
@Gi972
Gi972 / token
Last active December 29, 2022 17:40
links
https://stackblitz.com/edit/react-ts-6a5t7m?file=Datepikcer%2Findex.tsx,Calendar%2Findex.ts,Calendar%2FCalendar.tsx
https://stackblitz.com/edit/vitejs-vite-m9y6lj?file=src%2FApp.tsx&terminal=dev
https://www.esveo.com/en/blog/nY
https://dummyjson.com/
https://dnlytras.com/blog/rxjs-react/
https://codechips.me/rxjs-beginner-learning-resources/
@Gi972
Gi972 / machine.js
Last active May 13, 2020 05:41
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Gi972
Gi972 / machine.js
Last active May 11, 2020 05:29
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Gi972
Gi972 / regexCheatsheet.js
Created February 20, 2020 22:53 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@Gi972
Gi972 / README.md
Last active February 16, 2020 01:11
SCRIPT-8
@Gi972
Gi972 / README.md
Created February 15, 2020 00:11
SCRIPT-8
@Gi972
Gi972 / README.md
Created February 14, 2020 18:43
SCRIPT-8
@Gi972
Gi972 / README.md
Last active February 10, 2020 01:32
SCRIPT-8