Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
┻━┻ ︵└(՞▽՞ └)

Kyriakos Z. koox00

🔥
┻━┻ ︵└(՞▽՞ └)
View GitHub Profile
View advent-code-day-4.js
var ar = document.getElementsByTagName('pre')[0].textContent.split('\n\n').filter(Boolean)
function transform(str) {
const a = str.replace(/\s/g, ' ').split(' ')
return a.reduce((t, n) => {
const [key, val] = n.split(':');
t[key] = val;
return t;
}, {})
View advent-code-day-3.js
var ar = document.getElementsByTagName('pre')[0].textContent.split('\n').filter(Boolean)
function makeWalk(steps) {
return function walk(l, pos) {
const lastPos = l.length - 1;
if ((pos.x + steps) > lastPos) {
return makeWalk(pos.x + steps - lastPos - 1)(l, {x: 0, y: pos.y })
}
@koox00
koox00 / dl.sh
Last active Aug 21, 2020
Download yt playlists with youtube-dl
View dl.sh
youtube-dl --ignore-errors --format bestaudio --add-metadata --extract-audio \
--audio-format mp3 --audio-quality 320K \
-o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' --yes-playlist \
<playlist id>
View keybase.md

Keybase proof

I hereby claim:

  • I am koox00 on github.
  • I am koox00 (https://keybase.io/koox00) on keybase.
  • I have a public key whose fingerprint is B23B C906 CA62 A1FE 00FA 65A7 3827 A33C 504D 4A27

To claim this, I am signing this object: