I hereby claim:
- I am nate-wilkins on github.
- I am natewilkins (https://keybase.io/natewilkins) on keybase.
- I have a public key whose fingerprint is F0EC 3EA2 7822 3282 B26C A4C1 AAA3 4B2F C4B6 60C6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
gcw() { | |
# Filter specific workflows. | |
local ADD_STATUS=$(git diff --staged --diff-filter=A --name-only) | |
local DELETE_STATUS=$(git diff --staged --diff-filter=D --name-only) | |
local RENAME_STATUS=$(git diff --staged --diff-filter=R --name-only) | |
# Update status includes everything else. | |
local UPDATE_STATUS=$(git diff --staged --diff-filter=MCTUXB --name-only) | |
# Make sure we're using one workflow by counting up workflow changes. | |
local STATUS_CHANGE_COUNT=0 |
fn main() { | |
println!("{}", fibonacci(0)); | |
println!("{}", fibonacci(1)); | |
println!("{}", fibonacci(2)); | |
println!("{}", fibonacci(30)); | |
} | |
fn fibonacci(n: u64) -> u64 { | |
match n { | |
0 => 1, |
CapsLock::Return | |
Capslock & h::Send {Left} | |
Capslock & j::Send {Down} | |
Capslock & k::Send {Up} | |
Capslock & l::Send {Right} |
// ==UserScript== | |
// @name CodeNull - Spotify Ad Muter | |
// @author [email protected] | |
// @version 4.0 | |
// @namespace http://tampermonkey.net/ | |
// @description Detects and blocks ads on Spotify. Automatically mute Spotify ads. Turn sound on again after the ad. | |
// @match https://*.spotify.com/* | |
// @grant none | |
// @run-at document-start | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=spotify.com |
// ==UserScript== | |
// @name CodeNull - YouTube Videos Ad Muter | |
// @author [email protected] | |
// @version 4.0 | |
// @namespace http://tampermonkey.net/ | |
// @description Detects and blocks ads on YouTube Videos. Automatically mute ads. Turn sound on again after the ad. | |
// @match https://www.youtube.com/* | |
// @grant none | |
// @run-at document-start | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com |
/* | |
* Create an animation frame with a specified callback with | |
* a target frame rate. | |
*/ | |
const createAnimationFrame = ( | |
callback, | |
targetFrameRate, | |
timePrevious, | |
timeCurrent, | |
) => { |
/* | |
* Create an animation frame with a specified callback with | |
* a target frame rate. | |
*/ | |
const createAnimationFrame = ( | |
callback: (timeDelta: number) => boolean, | |
targetFrameRate?: number, | |
timePrevious?: number, | |
timeCurrent?: number, | |
): null | number => { |
// ==UserScript== | |
// @name CodeNull - Amazone Prime Video Ad Muter | |
// @author [email protected] | |
// @version 4.0 | |
// @namespace http://tampermonkey.net/ | |
// @description Detects and blocks ads on Amazon Prime Video. Automatically mute ads. Turn sound on again after the ad. | |
// @match https://www.amazon.com/gp/video/* | |
// @grant none | |
// @run-at document-start | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com |
type A = { | |
a: number | |
}; | |
const myA: A = { a: 1 }; | |
const ac = [undefined, myA]; | |
const ba: $ReadOnlyArray<A> = ac.filter(Boolean); |