A literal clone of the mixcolor
function provided in libsass in TypeScript.
Calling the mix
function will do the mixing as well as color hex value sanity checking among other things.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Accessor, | |
createEffect, | |
createSignal, | |
onCleanup, | |
untrack, | |
} from 'solid-js' | |
export const useThrottle = <T>( | |
source: Accessor<T>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package diff | |
import ( | |
"fmt" | |
"strings" | |
) | |
func max(i, j int) int { | |
if j > i { | |
return j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
brew install \ | |
go goreleaser \ | |
coreutils gnu-sed \ | |
git tig \ | |
the_silver_searcher \ | |
tmux htop wget \ | |
pv jq yq tag \ | |
autoconf automake \ | |
n python@3.8 \ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Project Gutenberg EBook of Moby Dick; or The Whale, by Herman | |
Melville | |
This eBook is for the use of anyone anywhere at no cost and with almost | |
no restrictions whatsoever. You may copy it, give it away or re-use | |
it under the terms of the Project Gutenberg License included with this | |
eBook or online at www.gutenberg.org | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
function tp() { | |
help() { | |
echo "usage: tp [-h | --help] [<alias>] [<directory>]" | |
} | |
TP_CONFIG_PATH="${XDG_CONFIG_HOME:-$HOME/.config}/tp" | |
TP_CONFIG_FILE="${TP_CONFIG_PATH}/config.tsv" | |
if [ ! -d $TP_CONFIG_PATH ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __KTNYT_THREAD_POOL_HPP__ | |
#define __KTNYT_THREAD_POOL_HPP__ | |
#include <thread> | |
#include <functional> | |
#include <mutex> | |
#include <condition_variable> | |
#include <queue> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __KTNYT_SORTED_MAP_HPP__ | |
#define __KTNYT_SORTED_MAP_HPP__ | |
#include <utility> | |
#include <vector> | |
namespace ktnyt { | |
namespace detail { | |
template <class C, bool> struct sorted_map_brace_impl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define-command -params 1 -shell-script-candidates %{ | |
if [ -d .git ]; then | |
alias list='git ls-files --exclude-standard -co' | |
{ list | xargs -n1 dirname | sort | uniq | perl -ple '$_.="/"'; list | sort; } | fzy -e "$1" | |
else | |
find . -type f -or -type d | fzy -e "$1" | |
fi | |
} fzy-edit %{ | |
edit %arg{1} | |
} |
NewerOlder