Skip to content

Instantly share code, notes, and snippets.

View randName's full-sized avatar
🔞
nsfw (the OSHA kind)

Shun Git randName

🔞
nsfw (the OSHA kind)
View GitHub Profile
@randName
randName / README.md
Created January 20, 2026 02:59
sorting of strings containing numbers
@randName
randName / README.md
Last active February 6, 2025 14:22
node WebSocket server

WebSocket server in node

@randName
randName / CORS.md
Last active March 10, 2022 06:29
cors

CORS

@randName
randName / version-checker.md
Last active January 20, 2026 03:01
package versions

Latest versions

name version
vue npm
vite npm
@randName
randName / README.md
Last active February 4, 2021 04:19
yet another rate limiting wrapper

Yet Another Rate-limiting Wrapper

rateLimit(fn[, options])

  • fn <Function> Function that will be rate-limited
  • options <Object> Configurable options
    • max <number> Maximum number of active instances. Default: 10
    • delay <number> Minimum delay between calls in milliseconds. Default: 10
  • Returns: <Function> with the same signature as fn

Example

@randName
randName / demo.js
Created March 18, 2020 09:55
GLSL-style swizzling in Javascript
const a = vec(1, 2, 3, 4)
console.log(a.length, a)
// standard property access
console.log(a[0], a.y, a.b, a.t)
// swizzling
console.log(a.xy, a.zyx, a.xxyy)
@randName
randName / README.md
Created March 17, 2020 06:57
test-embed-bug

test-embed-bug

Testing embedded content

embed

embed

source

source

from tkinter import *
from PIL import ImageTk,Image
import time
import os
targetImageWidth = 850
targetImageHeight = 400
inputImageWidth = 0
inputImageHeight = 0

Keybase proof

I hereby claim:

  • I am randname on github.
  • I am randname (https://keybase.io/randname) on keybase.
  • I have a public key ASBs6BK85bg5G6713qw7sykPHpGYUxDKRCa74R9mcpxR4Qo

To claim this, I am signing this object:

@randName
randName / template.ipynb
Created April 4, 2019 02:03
Colaboratory Template
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.