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
const readline = require('node:readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); | |
const HIDDEN_CHAR = "_"; | |
const words = [ |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<link rel="stylesheet" href="styles.css" /> | |
</head> | |
<body> | |
<div class="container"> |
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
const canvas = document.querySelector('#canvas'); | |
const ctx = canvas.getContext('2d'); | |
let windowWidth = window.innerWidth; | |
let windowHeight = window.innerHeight; | |
const onResize = () => { | |
canvas.width = windowWidth = window.innerWidth; | |
canvas.height = windowHeight = window.innerHeight; | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Typeout</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0px; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script> | |
const endpoint = "https://api.covid19api.com/world/total"; | |
const fetchData = async () => { |
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
imgur() { | |
res=$(curl -sSF image=@$1 https://api.imgur.com/3/upload |jq -r '.data.link') | |
echo $res |pbcopy | |
echo $res | |
} |
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
// Canvas things | |
const canvas = document.querySelector("#snow"); | |
const ctx = canvas.getContext("2d"); | |
let ctxLayers = []; | |
let ctxHeight = 0; | |
let ctxWidth = 0; | |
// FPS things | |
const FPS = 60; | |
const FPS_TIME = (1000 / 60) * (60 / FPS) - (1000 / 60) * 0.5; |
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
const getWeekNumber = (date) => { | |
const pd = new Date(date); | |
const sj = new Date(pd.getFullYear(), 0, 1); | |
const wk = Math.ceil((((pd - sj) / 86400000) + sj.getDay() + 1) / 7); | |
return wk; | |
} | |
console.log( | |
getWeekNumber('2020-01-01'), | |
getWeekNumber('2020-01-14'), |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>hader georgehale</title> | |
<style> | |
tr:nth-last-child(9) { opacity: 0.9; } | |
tr:nth-last-child(8) { opacity: 0.8; } | |
tr:nth-last-child(7) { opacity: 0.7; } | |
tr:nth-last-child(6) { opacity: 0.6; } |
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 math | |
import struct | |
import wave | |
import sys | |
w = wave.open(sys.argv[1], 'rb') | |
sum = 0 | |
value = 0; | |
delta = 0; | |
amps = [] |
NewerOlder