Skip to content

Instantly share code, notes, and snippets.

View rayyee's full-sized avatar
🌴
On vacation

Ray Yee rayyee

🌴
On vacation
View GitHub Profile
@kirileec
kirileec / tujidao01.js
Last active August 28, 2022 14:10
ε›Ύι›†ε²›ηœ‹ε›ΎδΈ‹θ½½
// ==UserScript==
// @name ε›Ύι›†ε²›ηœ‹ε›ΎδΈ‹θ½½
// @namespace http://tampermonkey.net/
// @version 1.2
// @description VIPεΉΆδΈ”ι™„εΈ¦η‚Ήε‡»δΈ‹θ½½οΌˆζ–‡δ»ΆεδΈζ˜―1.jpg这种样子)
// @author linx
// @include /^https?://.*\.tujidao.*
// @connect tjg.gzhuibei.com
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
@moeyua
moeyua / collection.md
Last active November 11, 2025 18:55
η”± Moeyua ζœι›†γ€ζ•΄η†γ€η»΄ζŠ€ηš„γ€δΈͺδΊΊθ‡ͺη”¨ηš„ζ”Άθ—εˆ—θ‘¨γ€‚

Collection

θΏ™ι‡Œζ˜―η”± Moeyua ζœι›†γ€ζ•΄η†γ€η»΄ζŠ€ηš„γ€δΈͺδΊΊθ‡ͺη”¨ηš„ζ”Άθ—εˆ—θ‘¨γ€‚

ε·₯ε…·

δΈ€δΊ›εœ¨ηΊΏηš„ε·₯ε…·οΌŒε―θƒ½ζ˜―ζ—₯εΈΈδΌšη”¨εˆ°ηš„ε·₯ε…·οΌŒδΉŸε―θƒ½ζ˜―εΌ€ε‘η›Έε…³ηš„ε·₯ε…·

  • bookmark.style - 可δ»₯将任意链ζŽ₯θ½¬ζ’η”Ÿζˆε―εˆ†δΊ«ηš„ε›Ύη‰‡γ€‚
  • tldraw - δΈ€δΈͺη”»ε›Ύηš„εœ°ζ–Ήγ€‚
@iest
iest / readme.md
Last active December 4, 2024 05:24
Moving from lodash/fp to ramda

Moving from lodash/fp to ramda

How

Good news is we're only using lodash/fp, which makes it easier to match function signatures.

  1. Find most-used lodash methods, we'll convert these first maybe?
  2. Go through each lodash method, find the ramda equivalent where possible
  3. Write a codemod to rewrite those usages
  4. Who the fuck thought function aliases were a good idea
@steven2358
steven2358 / ffmpeg.md
Last active April 3, 2026 17:38
FFmpeg cheat sheet
@maxim5
maxim5 / pretrained_word2vec_lstm_gen.py
Last active July 2, 2023 10:40
Text generator based on LSTM model with pre-trained Word2Vec embeddings in Keras
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
__author__ = 'maxim'
import numpy as np
import gensim
import string
@oliveratgithub
oliveratgithub / emojis.json
Last active February 28, 2026 08:52
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@hediet
hediet / main.md
Last active March 30, 2026 11:12
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];
@gunderson
gunderson / FlyCamera.cs
Last active March 11, 2026 22:23
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@Brainiarc7
Brainiarc7 / ffmpeg-multi-instances-xargs.md
Last active December 2, 2025 23:52
This gist will show you how to launch multiple ffmpeg instances with xargs, very useful for NVIDIA NVENC based encoding where standard GPUs limit the maximum simultaneous encode sessions to two.

Spawning multiple ffmpeg processes with xargs:

On standard NVIDIA GPUs (Not the Quadros and Tesla lines), NVENC encodes are limited to two simultaneous sessions. The sample below illustrates how to pass a list of AVI files to ffmpeg and encode them to HEVC on two encode sessions:

$ find Videos/ -type f -name \*.avi -print | sed 's/.avi$//' |\
  xargs -n 1 -I@ -P 2 ffmpeg -i "@.avi" -c:a aac -c:v hevc_nvenc "@.mp4"

This will find all files with the ending .avi in the directory Videos/ and transcode them into HEVC/H265+AAC files with the ending .mp4. The noteworthy part here is the -P 2 to xargs, which starts up to two processes in parallel.

@btroncone
btroncone / rxjs_operators_by_example.md
Last active March 9, 2026 12:54
RxJS 5 Operators By Example