Skip to content

Instantly share code, notes, and snippets.

View jackiotyu's full-sized avatar
🧑‍💻
Focusing

BingFeng Huang jackiotyu

🧑‍💻
Focusing
View GitHub Profile
@jackiotyu
jackiotyu / docker-registry-mirrors.md
Created July 18, 2025 09:42 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@jackiotyu
jackiotyu / virtualscroll.md
Last active November 3, 2022 01:34
virtualScroll

virtualScroll

    <VirtualScroll
            enable-passive
            class="scroll-view-container"
            itemSelector=".virtual-wrap"
            containerSelector=".scroll-view-container"
            outerStyle="height: calc(100vh - 90rpx - 20rpx);"
 scroll-y
@jackiotyu
jackiotyu / array.js
Last active April 5, 2023 15:10
javascript
// 空数组some返回false
[].some(i => i); // false
// 空数组every返回true
[].every(i => i); // true
@jackiotyu
jackiotyu / shuffle.js
Last active July 19, 2022 08:37
leetcode
const shuffle = (nums = []) => {
const randomNums = nums.slice(0);
let len = randomNums.length;
while (len > 1) {
const rand = Math.floor(Math.random() * len);
len--;
const temp = randomNums[len];
randomNums[len] = randomNums[rand];
randomNums[rand] = temp;