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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Simple Audio Player by p5.js</title> | |
<style> | |
body { margin: 0; } | |
body > .tp-dfwv { width: 290px; } | |
body > .tp-rotv.tp-rotv-expanded .tp-rotv_c { overflow: auto; } | |
</style> | |
</head> |
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
// MIT License | |
//------------------------------------------------------------------------------ | |
// Readers | |
//------------------------------------------------------------------------------ | |
export interface Cursor { | |
line: number; | |
column: number; | |
} |
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
javascript:{ const sha = document.querySelector(".commit-tease-sha"); if (sha) { location.href = location.href.replace(/blob\/[^/]+/, `blob/${sha.textContent.trim()}`); } } |
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 | |
set -eu | |
: ${ITUNES_MEDIA_DIR:="${HOME}/Music/iTunes/iTunes Media"} | |
: ${DST_MUSIC_DIR:=/storage/0000-0000/Music} | |
usage() { | |
cat <<EOT | |
Usage: $0 [-x] |
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 | |
set -eu | |
: ${ITUNES_MEDIA_DIR:="${HOME}/Music/iTunes/iTunes Media"} | |
usage() { | |
cat <<EOT | |
Usage: $0 [options] [<re>] | |
Options: |
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 sha = document.querySelector(".commit-tease-sha"); | |
if (sha) { | |
location.href = location.href.replace(/blob\/[^/]+/, `blob/${sha.textContent.trim()}`); | |
} | |
} |
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 | |
set -eu | |
: ${IO_RUNNING_FILE:=.io_running} | |
: ${IO_STDIN_FILE:=.io_stdin} | |
: ${IO_STDOUT_FILE:=.io_stdout} | |
io.help() { | |
cat <<EOT | |
Usage: io <command> [<args>] |
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
(function() { | |
const THRESHOLD = 400; | |
function isEndOfList() { | |
return document.querySelector("#endOfListMarker") !== null; | |
} | |
function scroll(top) { | |
document.scrollingElement.scrollTop = top; |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"compress/gzip" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"log" |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"log" | |
"net" |
NewerOlder