Skip to content

Instantly share code, notes, and snippets.

View jpegzilla's full-sized avatar
電光石火も振り切って

eris brown jpegzilla

電光石火も振り切って
View GitHub Profile
@jpegzilla
jpegzilla / traditionalJapaneseColors.js
Created June 20, 2022 03:29
list of traditional japanese colors and their associated hex and rgb values (sourced from wikipedia, collected in array format).
// https://en.wikipedia.org/wiki/Traditional_colors_of_Japan
export default [
{
name: '一斤染',
hex: '#f08f90',
english: 'one kin (0.6 kg (1.3 lb)) dye',
rgb: '240,143,144',
romanized: 'ikkonzome',
},
{
@jpegzilla
jpegzilla / tableToSSV.js
Last active June 20, 2022 03:27
turns wikipedia html tables into an array of table rows. open chrome devtools, select a table element, and run this script. I assume it also works for any html table!
[...$0.querySelectorAll("tr")]
.map((e) => e.textContent)
.map((e) =>
e
.replaceAll("\n", ";")
.replaceAll(";;", ";")
.trim()
.replace(";", "")
.replace(/;$/, "")
)
@jpegzilla
jpegzilla / index.html
Created May 25, 2020 21:57 — forked from shiawuen/index.html
Sample to upload file by chunk
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>test upload by chunk</title>
</head>
<body>
<input type="file" id="f" />
<script src="script.js"></script>
const parseDayZProfile = async e => {
// asynchronous event listener for input change.
// get the uploaded file and...
const f = e.target.files[0];
//...parse it to some text
let t = await f.text();
// set divider and make sure reserved words are used correctly
const divider = "Survivor";
creative developer / digital designer based in atlanta, ga.

Keybase proof

I hereby claim:

  • I am jpegzilla on github.
  • I am jpegzilla (https://keybase.io/jpegzilla) on keybase.
  • I have a public key ASAO5n0Ya11USbGhp22edi6oL31uYJTgk0Z02XlSbgZr6Qo

To claim this, I am signing this object:

@jpegzilla
jpegzilla / ruby-build.20190603180013.8084.log
Created June 3, 2019 22:19
ruby-build.20190603180013.8084
/e/temp-def/ruby-build.20190603180013.8084 ~
/e/temp-def/ruby-build.20190603180013.8084/ruby-2.6.3 /e/temp-def/ruby-build.20190603180013.8084 ~
checking for ruby... /e/Ruby25-x64/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking target system type... x86_64-pc-msys
checking for gcc... gcc
checking whether the C compiler works... yes