View typeout.html
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; |
View covid.html
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 () => { |
View imgur.sh
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 | |
} |
View snow.js
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; |
View getWeekNumber.js
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'), |
View table_fadeout.html
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; } |
View peakdetect.py
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 = [] |
View bonanza.py
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 argparse | |
import os | |
import re | |
import string | |
import subprocess | |
import sys | |
from shutil import which, copyfileobj | |
from urllib import request | |
from html.parser import HTMLParser |
View tamagotchi.py
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 os | |
import time | |
import sched | |
import threading | |
import inquirer | |
class Tamagotchi: | |
age = 0 | |
bored = 0 |
View np.sh
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/bash | |
json=$(curl -s "http://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&api_key=$LASTFM_APIKEY&user=$LASTFM_USERNAME&format=json") | |
artist=$(echo $json | jq -r '.recenttracks.track[0].artist["#text"]') | |
song=$(echo $json | jq -r '.recenttracks.track[0].name') | |
echo "♫ $artist - $song" |
NewerOlder