Skip to content

Instantly share code, notes, and snippets.

View enpitsuLin's full-sized avatar
🐣
keep young, keep naive

enpitsulin enpitsuLin

🐣
keep young, keep naive
View GitHub Profile
/**
* expend version of van-js v0.11.10
* just for study
* @copyright Tao xin
* @link https://github.com/jorgebucaran/hyperapp
*/
import { BindFunc, ChildDom, DerivedProp, Primitive, Props, State, StateView, TagFunc, default as Van } from "./van"
// This file consistently uses `let` keyword instead of `const` for reducing the bundle size.
@fabiospampinato
fabiospampinato / use_boxer.ts
Created May 1, 2023 17:34
A little Voby hook for rendering hit boxes around each element on the page
/* IMPORT */
import {$$} from 'voby';
import {useEffect} from '~/hooks';
/* MAIN */
const useResizeObserver = ( ref: $<Element | undefined>, fn: ResizeObserverCallback, options: ResizeObserverOptions = {} ): void => {
@enpitsuLin
enpitsuLin / xLog.css
Last active February 27, 2024 03:41
My xLog theme
html {
--theme-color: #4f46e5;
}
html.dark {
--theme-color: #818cf8;
}
:root {
--sidebar-width: 20rem;
# enable run remote script
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Scoop configruation
$env:SCOOP = 'E:\scoop' # custom scoop install dir
$env:SCOOP_GLOBAL = 'E:\scoop\apps' # custom scoop app install dir
[environment]::setEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
[environment]::setEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
Invoke-WebRequest -useb get.scoop.sh | Invoke-Expression
import { Browser, chromium, firefox, webkit } from "playwright";
import { afterAll, beforeAll, describe, it } from "vitest";
const browserTypes = process.env.ALL_BROWSERS
? [chromium, firefox, webkit]
: [chromium];
for (const browserType of browserTypes) {
describe(`browser:${browserType.name()}`, () => {
let browser: Browser;
@itumeles1
itumeles1 / anime-js-scrollmagic-scroll-based-animations.markdown
Created July 16, 2021 00:33
Anime.js + ScrollMagic Scroll Based Animations

Anime.js + ScrollMagic Scroll Based Animations

A example of using ScrollMagic to trigger Anime.js animations. Some of the animations are set to play when triggered and some are set to progress as the user scrolls the page.

A Pen by itumeles1 on CodePen.

License.

@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active June 27, 2024 19:12
Building a react native app in WSL2
@rxaviers
rxaviers / gist:7360908
Last active June 30, 2024 10:49
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: