Skip to content

Instantly share code, notes, and snippets.

View SergioCrisostomo's full-sized avatar

Sergio Crisostomo SergioCrisostomo

View GitHub Profile
@SergioCrisostomo
SergioCrisostomo / writeInGithub.js
Last active May 28, 2020 07:19 — forked from WebReflection/writeInGithub.js
a silly script to write in your github timeline
function write(text, colors, start) {
const AGFont = {
"0": "40123478bcfgjknopqr",
"32": "4",
"33": "1012346",
"34": "3023568",
"35": "568abcdegiklmnoqs",
"36": "5123579acghimoprtvwx",
"37": "514579bdhlnprtux",
"38": "5157bfhjknopsvwy",
// only tested with 1 channel wav file
const { OpusEncoder } = require('@discordjs/opus');
let fs = require('fs');
wav_file = fs.readFileSync('somefile.wav');
const WaveFile = require('wavefile').WaveFile;
let wav = new WaveFile(wav_file);