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 / CORS.md
Last active March 10, 2022 06:29
cors

CORS

@randName
randName / version-checker.md
Last active September 2, 2023 14:08
package versions

Latest versions

name version
rollup npm
rollup-plugin-terser npm
@rollup/plugin-commonjs npm
@rollup/plugin-node-resolve 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 / antenna.json
Last active April 14, 2020 02:30
comopack
[
{"extra":null,"path":[[-12.27,-64.31],[-12.31,77.35],[-8.06,81.63],[-2.85,81.66],[-2.29,72.81],[-0.3,70.99],[2.03,72.59],[3.83,78.42],[2.45,81.23],[7.78,81.97],[12.75,76.17],[12.48,-63.61],[11.33,-66.37],[7.49,-68.33],[6.78,-79.06],[8.2,-81.77],[-8.19,-81.87],[-8.89,-67.89],[-12.27,-64.31]]},
{"extra":null,"path":[[-12.43,63.87],[-8.91,68.01],[-8.32,81.85],[8.72,81.3],[8.87,68.01],[12.46,63.52],[12.47,-76.06],[11.65,-79.11],[6.62,-82.5],[2.44,-81.15],[3.83,-78.42],[0.67,-71.24],[-2.55,-73.23],[-3.14,-81.77],[-8.18,-81.61],[-12.31,-77.43],[-12.43,63.87]]},
{"extra":[[-12.48,-1.24],[-10.98,7.3],[3.29,8.64],[12.2,6.52],[12.45,-7.08],[11.27,-8.67],[-11.57,-8.65],[-12.48,-1.24]],"path":[[-12.22,2.49],[-10.14,5.07],[3.6,5.27],[6.88,3.89],[10.14,5.01],[12.46,2.06],[12.19,-8.35],[-12,-8.48],[-12.22,2.49]]},
{"extra":[[-12.47,6.98],[-10.54,8.65],[11.79,8.41],[11.89,-4.14],[9.84,-5.3],[-10.92,-5.01],[-12.46,-2.08],[-12.47,6.98]],"path":[[-12.38,6.21],[-11.43,8.63],[11.64,8.56],[11.98,-6.46],[-0.84,-8.65],[-11
@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

The most important part of the style guide

Component/instance options order

  1. Side Effects (triggers effects outside the component)
  • el
  1. Global Awareness (requires knowledge beyond the component)

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.