I'll be collecting the more obscure or less often used but useful git commands and GitHub workflows here.
Notice: Might just be obsolete what with this site: http://ricardofilipe.com/projects/firstaidgit/#/
I'll be collecting the more obscure or less often used but useful git commands and GitHub workflows here.
Notice: Might just be obsolete what with this site: http://ricardofilipe.com/projects/firstaidgit/#/
I'll be collecting anything worthwhile or noteworthy I've encountered while learning to use and write Node.js packages here.
I'll be collecting any convenient snippets of shell commands I find and use in here.
This quick Gist shows how to use the fast non-cryptographic hash function MurmurHash to generate a single purely deterministic random numbers based off a of specific seed. I'm borrowing the perezd/node-murmurhash
NPM port.
The idea is to deterministically recreate the same set of numbers from a small number of seeds with algorithms that internally use these seeds (in any order, note) by modifying them with constant but unique salts of their own. MurmurHash is fast enough for use in games (for me).
The other half of this Gist contains a standard form (because the custom bound and mode is pointless with a simple general-purpose map function, and the curvature cannot be varied anyway) of the "Gaussianesque" Raised Cosine Distribution, which is conveniently finite and enough for my example use. It maps uniform random numbers generated by the MurmurHash prng to the
Some convenient Krita tips tricks and workflows. May also contain non-Krita specific stuff, but as Krita is my main raster graphics software now, that is to be expected.
#!/usr/bin/env bash | |
THEME_PROMPT_SEPARATOR="" | |
THEME_PROMPT_TERMINAL=" » " | |
SHELL_SSH_CHAR=" " | |
SHELL_THEME_PROMPT_COLOR=30 | |
SHELL_THEME_PROMPT_COLOR_SUDO=202 | |
VIRTUALENV_CHAR="ⓔ " |
#!/usr/bin/env bash | |
THEME_PROMPT_SEPARATOR="" | |
THEME_PROMPT_SEPARATOR="›" # tty-safe | |
THEME_PROMPT_TERMINAL=" » " | |
SHELL_SSH_CHAR=" " | |
SHELL_SSH_CHAR="[ssh] " # tty-safe | |
SHELL_THEME_PROMPT_COLOR=32 | |
SHELL_SSH_THEME_PROMPT_COLOR=208 |
Userstyles to the monospace fonts on certain sites and the Firefox Devtools, etc., to Fira Code. | |
I don't write userstyles very often, so these may not be particularly effecient or sensible. But at least they work. Corrections welcome! | |
Stylish of Firefox (at least) allows importing userstyles from arbitrary urls. It doesn't auto-update though, but mays till be easier than pasting by hand? :shrug: |
This document contains my notes about learning higher-order functional programming with Ramda.js and sometimes Sanctuary and any worthwhile implementations I've written in the process.
Use the Ramtuary REPL for tests.
Warning: Journeyman errors ahead!
I hereby claim: