Skip to content

Instantly share code, notes, and snippets.

Country Type 2022 2023 2024 2025 2026 2027 2028 2029 2030
Burundi Country/Area 7975105 8045311 8118836 8191988 8264365 8335978 8406829 8476889 8546141
Comoros Country/Area ... ... ... ... ... ... ... ... ...
Djibouti Country/Area 1166766 1196276 1226534 1257334 1288537 1320157 1352180 1384591 1417346
Eritrea Country/Area 553690 562240 570814 579344 587776 596127 604406 612623 620782
Ethiopia Country/Area 2084590 2105744 2128585 2151145 2173361 2195226 2216754 2237900 2258687
Kenya Country/Area 2344325 2349302 2354122 2358457 2362286 2365617 2368452 2370798 2372658
Madagascar Country/Area 660269 664997 669973 674862 679659 684342 688891 693307 697585
Malawi Country/Area 13676 13909 14140 14371 14601 14831 15059 15287 15514
Mauritius Country/Area 31363 31667 31969 32269 32564 32856 33143 33424 33698

CSS Colors from MDN

@imhalid
imhalid / worldwide_speed_league_data.csv
Last active February 20, 2024 21:29
worldwide_speed_league_data.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 8 columns, instead of 9. in line 1.
Position,country,CountryCode,Region,Mean download speed (Mbps),Unique IPs tested,Total tests,How long it takes to download a 5GB movie (HH:MM:SS)
1,Jersey,JE,WESTERN EUROPE,264,52,1336,45280,00:02:35
2,Liechtenstein,LI,WESTERN EUROPE,246,76,1060,4146,00:02:46
3,Macau,MO,ASIA (EX. NEAR EAST),231,40,1867,9505,00:02:57
4,Iceland,IS,WESTERN EUROPE,229,35,3472,70572,00:02:59
5,Gibraltar,GI,WESTERN EUROPE,206,27,628,6620,00:03:19
6,Andorra,AD,WESTERN EUROPE,190,40,1303,12038,00:03:35
7,Luxembourg,LU,WESTERN EUROPE,162,21,9147,107359,00:04:13
8,Taiwan,TW,ASIA (EX. NEAR EAST),153,51,72542,266095,00:04:27
9,France,FR,WESTERN EUROPE,152,45,7194414,17343867,00:04:29
@imhalid
imhalid / planeCurve.js
Last active December 11, 2023 19:55
Plane Curve Function
// g: Geometry
// z: Depth
// source: https://jsfiddle.net/gkmqzp1w/9/
function planeCurve(g, z){
let p = g.parameters;
let hw = p.width * 0.5;
let a = new THREE.Vector2(-hw, 0);
let b = new THREE.Vector2(0, z);
@imhalid
imhalid / GLSL-Noise.md
Created December 10, 2023 09:07 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
import { useEffect, useState } from 'react'
const useKeyPress = targetKey => {
const [keyPressed, setKeyPressed] = useState(false)
useEffect(() => {
const downHandler = ({ key }) => {
if (key === targetKey) {
setKeyPressed(true)
}
@imhalid
imhalid / content.js
Created February 25, 2023 14:14
Remove news from Bing
const scrollCont = document.querySelector("#scroll_cont");
scrollCont.style.display = "none";
const inputform = document.querySelector("#sb_form");
inputform.style.marginTop = "30vh";
@imhalid
imhalid / consoleLogToDiv.js
Created January 18, 2023 21:48
Sending console output into an HTML element
import { useEffect } from 'react'
const ConsoleLog = () => {
useEffect(() => {
if (typeof console !== 'undefined') {
if (typeof console.log !== 'undefined') {
console.olog = console.log
} else {
console.olog = function () {}
}
@imhalid
imhalid / .prettierrc
Created January 2, 2023 21:19
Prettier Config
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "lf",
"bracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": false,
🌞 Morning 45 commits ███▌░░░░░░░░░░░░░░░░░ 17.2%
🌆 Daytime 50 commits ████░░░░░░░░░░░░░░░░░ 19.2%
🌃 Evening 89 commits ███████▏░░░░░░░░░░░░░ 34.1%
🌙 Night 77 commits ██████▏░░░░░░░░░░░░░░ 29.5%