The Essence of Calculus by 3Blue1Brown
blackpenredpen, and his Calculus Channel
-- https://stackoverflow.com/a/11671820 | |
-- e.g: map({1,2,3,4}, (o) -> o * 2) -> {2,4,6,8} | |
export map = (tbl, fn) -> | |
out = {} | |
for k, v in pairs tbl | |
out[k] = fn v | |
return out |
/** | |
* Implementation of Saarna's Bluing Algorithm for generating bluish noise. | |
* | |
* This algorithm creates blue noise with a +3 dB per octave power increase. | |
* Unlike traditional blue noise generation methods that require extensive computation | |
* to massage random values, this algorithm uses an exponentially decaying running | |
* average to prevent clumping of values with minimal computational overhead. | |
* | |
* The algorithm works by: | |
* 1. Generating two random values |
/*! kalreset.css v1.0.0 | MIT License | |
* Based on modern-normalize by sindresorhus, | |
* A (more) Modern CSS Reset by set.studio, | |
* and Adrian Roselli's Blog | |
*/ | |
/* | |
Document | |
======== | |
*/ |
console.log(`%c `.repeat(5),...`5CFFABFFFFAB5CF`.match(/.../g).map(c=>`background:#${c};display:block;padding:2%26%`)) |
5 HOME:HGR2 | |
10 HCOLOR=5:REM Orange OR Red Line | |
20 HPLOT 0,81 TO 0,72 | |
30 HPLOT 0,72 TO 9,63 | |
40 HPLOT 9,63 TO 36,63 | |
50 HPLOT 36,63 TO 63,90 | |
60 HPLOT 63,90 TO 108,90 | |
110 HCOLOR=2:REM Purple OR Yellow Line |
The User is Drunk
Inclusive Components (I recommend getting the book, it's free!)
/* ==UserStyle== | |
@name Fix New GitHub Design Issues | |
@namespace iamrifki | |
@version 1.0.1 | |
@description Fixes several things I dislike about the new GitHub redesign | |
@author Dania Rifki <[email protected]> | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://github.com/"), url-prefix("https://gist.github.com/") { | |
/* Add separators back to the file list. */ |
/** | |
* ecosia-scraper (c) MIT Dania Rifki <[email protected]> | |
* | |
* # Prelude: | |
* Back in 2019, I was introduced to the Ecosia search engine | |
* I never really liked it, it was pretty terrible in my opinion. | |
* Search results are pretty eh, and image results frequently pops up unwanted images. | |
* | |
* In 2020, I decided to use it for an image scraping project, why you ask? | |
* Since nobody uses it anymore, Search results come faster than Bing, |