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
float map(float value, float min1, float max1, float min2, float max2) { | |
return min2 + (value - min1) * (max2 - min2) / (max1 - min1); | |
} |
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
ln -s /path/to/original /path/to/link |
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
# middle in .5 of progress | |
1 - abs(1 - 2 * progress) | |
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
=INDEX( FILTER( A:A ; NOT( ISBLANK( A:A ) ) ) ; ROWS( FILTER( A:A ; NOT( ISBLANK( A:A ) ) ) ) ) |
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
//Self-Signed Certificate for using with VS Code Live Server | |
//Save both files in a location you will remember | |
1. create a private key | |
openssl genrsa -aes256 -out localhost.key 2048 | |
// you will be prompted to provide a password | |
//this will create localhost.key (call it whatever you like) | |
2. create the certificate |
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
(* | |
-- Send the selected files in Finder to Keka (for compression) | |
-- | |
-- @author Scott Buchanan <[email protected]> | |
-- @link http://wafflesnatcha.github.com | |
*) | |
tell application "Finder" | |
set _files to selection as alias list | |
if _files is {} then return display alert "No files selected!" as warning giving up after 5 |
NewerOlder