Skip to content

Instantly share code, notes, and snippets.

View crates's full-sized avatar
❤️‍🔥
Crates is CEO of llnnll.com, Athames.com, Crates.Media / Cr8s.Net : 844-CR8S-NET

Crates McDade crates

❤️‍🔥
Crates is CEO of llnnll.com, Athames.com, Crates.Media / Cr8s.Net : 844-CR8S-NET
View GitHub Profile
@crates
crates / wordle.txt
Created May 17, 2022 15:53 — forked from dangeredwolf/wordle.txt
Every Wordle game that will ever exist (SPOILERS) https://twitter.com/dangeredwolf/status/1480661843064598530
2021-06-19 0 cigar
2021-06-20 1 rebut
2021-06-21 2 sissy
2021-06-22 3 humph
2021-06-23 4 awake
2021-06-24 5 blush
2021-06-25 6 focal
2021-06-26 7 evade
2021-06-27 8 naval
2021-06-28 9 serve
@crates
crates / lewdle.txt
Created May 17, 2022 15:53 — forked from dangeredwolf/lewdle.txt
Every Lewdle game that will ever exist (SPOILERS) https://twitter.com/dangeredwolf/status/1485897751879634954
2022-01-19 1 BONER
2022-01-20 2 FELCH
2022-01-21 3 PUSSY
2022-01-22 4 TAINT
2022-01-23 5 SEMEN
2022-01-24 6 DILDO
2022-01-25 7 FARTS
2022-01-26 8 CHODE
2022-01-27 9 FUCKS
2022-01-28 10 TWATS
@crates
crates / wordle_variants.md
Created May 17, 2022 15:25 — forked from maxspero/wordle_variants.md
Comprehensive list of Wordle variants

Original

  • Wordle - Guess a five-letter word in six guesses. Each guess must be real words.

Clones

Multiplayer

// This will safely check a value to make sure it has been declared and assigned a value other than null or undefined:
console.log(typeof undeclaredVariable !== "undefined" &&
(typeof undeclaredVariable !== "object" || !undeclaredVariable)) // false
// Compare to checking for null using ==, which will only work for declared variables:
try { undeclaredVariable == null } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined
try { undeclaredVariable === null } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined
try { undeclaredVariable === undefined } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined
let declaredButUndefinedVariable
@crates
crates / sdf-svg-heatmap.ts
Created June 23, 2020 16:43 — forked from postspectacular/sdf-svg-heatmap.ts
Shroomania: SDF SVG heatmap
import { DisjointSet } from "@thi.ng/adjacency";
import { cosineColor, GRADIENTS } from "@thi.ng/color";
import { identity, partial } from "@thi.ng/compose";
import { serialize } from "@thi.ng/hiccup";
import { rect, svg, text } from "@thi.ng/hiccup-svg";
import { fitClamped, wrap } from "@thi.ng/math";
import { IRandom, Smush32 } from "@thi.ng/random";
import {
buildKernel2d,
comp,
@crates
crates / mersenne-twister.js
Created April 13, 2020 13:50 — forked from banksean/mersenne-twister.js
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
@crates
crates / easing.js
Created February 11, 2020 17:47 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity
@crates
crates / find-unused-sass-variables.sh
Created February 11, 2020 17:47 — forked from badsyntax/find-unused-sass-variables.sh
Find unused SCSS variables. Usage: `./find-unused-sass-variables.sh sassDir/`
#!/usr/bin/env bash
#
# Approach:
# 1. Find variable declaration in the form of "$my-var: anyvalue"
# 2. Loop through found variables and find occurrences of each variable in all sass files
# 3. Filter out vars that occurred only once
if [ -z "$1" ]; then
echo "Please specify a directory as the first argument."
exit 1
@crates
crates / JS-error-tracking-with-GA.js
Created February 11, 2020 17:46
Track JavaScript errors using Universal Analytics from Google.
/**
* Track JS error details in Universal Analytics
*/
function trackJavaScriptError(e) {
var errMsg = e.message;
var errSrc = e.filename + ': ' + e.lineno;
ga('send', 'event', 'JavaScript Error', errMsg, errSrc, { 'nonInteraction': 1 });
}
@crates
crates / how-to-view-source-of-chrome-extension.md
Created February 11, 2020 17:42 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.