Skip to content

Instantly share code, notes, and snippets.

View vikiboss's full-sized avatar
🐈
loading...

Viki vikiboss

🐈
loading...
View GitHub Profile
@vikiboss
vikiboss / 【AI 画图】sd-1.0.0.ts
Last active October 22, 2024 15:02
Plugins for KiviBot v1
import { definePlugin, http } from 'kivibot'
export default definePlugin({
name: 'sd',
version: '1.0.0',
setup(ctx) {
ctx.handle('message', async (e) => {
if (e.raw_message.startsWith('#sd ')) {
const hasRight = ctx.isOwner(e) || ctx.isAdmin(e)
@guest271314
guest271314 / harmony.md
Last active November 19, 2024 19:40
Why I use node, deno, bun, qjs, tjs at the same time

Why I use node, deno, bun, qjs, tjs at the same time.

Winds up being a (not the) rather comprehensive JavaScript toolbox. The idea being for the modern JavaScript programmer can use all of the tools available for a given requirement, task or job, without preference for any. No external bundlers or compilers are needed. No frameworks are needed. I can use qjs or tjs for systems with minimal RAM and disk space; and when I want to use Web API's deno makes an effort to provide those interfaces. In some cases I can run the exact same code in bun, deno, and node, which provides a means to perform 1:1 testing as to performance.

There's probably a few things I am unintentionally omitting below. These are just a brief synposis. I'll update accordingly.

@kfox
kfox / README.md
Last active December 4, 2023 11:08
TCP echo server for Node.js

TCP echo server for Node.js

Usage

  1. Make sure you have a modern-ish version of Node.js installed.
  2. Type npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
  3. Connect to it from a client, e.g. netcat or similar: nc localhost 9000
@santaklouse
santaklouse / CrossOver.sh
Last active November 18, 2024 21:41
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@moeyua
moeyua / collection.md
Last active June 3, 2024 05:52
由 Moeyua 搜集、整理、维护的、个人自用的收藏列表。

Collection

这里是由 Moeyua 搜集、整理、维护的、个人自用的收藏列表。

工具

一些在线的工具,可能是日常会用到的工具,也可能是开发相关的工具

  • bookmark.style - 可以将任意链接转换生成可分享的图片。
  • tldraw - 一个画图的地方。
@sxzz
sxzz / hi.md
Last active October 22, 2024 10:07
自我介绍

自我介绍

👋 Hi,我是三咲智子,00 后,目前大二在读(写于 2022 年),开源爱好者,Vue、VueUse、Element Plus 开源社区团队成员。这篇文章受 Anthony Fu 的播客视频的启发,主要介绍我的编程经历。以时间线为顺序,也是自我回忆和整理下我这些年都干了些什么。部分回忆可能存在时间错误,但事情都是实际发生过的。

我的经历

我从小学就开始接触编程和其他技术相关的东西了。

2011 年 9 岁四年级

@MadeBaruna
MadeBaruna / README.md
Last active November 16, 2024 19:39
Get Genshin Impact wish history link
@sindresorhus
sindresorhus / esm-package.md
Last active November 17, 2024 22:07
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@ppoffice
ppoffice / README.md
Last active November 5, 2024 04:13
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active November 19, 2024 13:30
Building a react native app in WSL2