Skip to content

Instantly share code, notes, and snippets.

View BytewaveMLP's full-sized avatar
🇨🇦

Eliot Partridge BytewaveMLP

🇨🇦
View GitHub Profile
@BytewaveMLP
BytewaveMLP / index.js
Last active May 21, 2024 21:10 — forked from Potato22/index.js
pottob2worker
// src/backblaze.ts
var B2Error = class extends Error {
details;
constructor(message, response) {
super(message);
this.details = response.message;
}
toString() {
return `${this.message}: ${this.details}`;
}
@BytewaveMLP
BytewaveMLP / derpi-share.user.js
Last active February 28, 2022 04:15
Derpibooru "Share" button userscript
// ==UserScript==
// @name Derpibooru "Share" button
// @namespace https://code.horse
// @version 0.1
// @description Add a "share" button to Derpibooru to copy the current link to clipboard
// @author Bytewave
// @match https://derpibooru.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=derpibooru.org
// @grant GM_setClipboard
// ==/UserScript==
.data
notes: .byte 61 61 65 61 66 66 70 68 255 68 68 68 65 68 63 65 61 61 61 65 61 66 66 70 68 255 68 68 68 65 68 68 255 68 68 68 65 68 60 0
.align 2
times: .word 388 259 259 259 388 259 259 259 259 259 130 130 259 259 259 259 259 388 259 259 259 388 259 259 259 259 130 130 259 259 259 259 259 130 130 259 259 259 518 0
.text
main:
li $v0, 33
la $t0, notes
la $t1, times
@BytewaveMLP
BytewaveMLP / pt-death-timer.html
Created December 24, 2018 21:22
Pony Town Death Timer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Time since Pony Town died</title>
<meta name="robots" content="index, follow">
@BytewaveMLP
BytewaveMLP / Vector.ts
Created June 1, 2018 02:43
Vector implementations, Typescript and Go
export class Vector {
public x: number;
public y: number;
/**
* Creates a new Vector instance using cartesian coordinates
*
* For constructing vectors with polar coordinates, see Vector.fromPolar()
*
* @param {number} x The x component of the vector
const readline = require("readline");
const TINYFACE = "• c •";
const BOOP = "/)";
const LINE = "~";
const HEART = "❤";
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms)).catch(() => {});
}
#/bin/bash
op="$1"
site="$2"
script="$0"
error_exit() {
echo "$(basename "$script"): $1" >&2
exit $2
}
using System;
namespace GuessTheNumber {
class Program {
const int MAX_VALUE = 100;
static void Main(string[] args) {
Console.WriteLine("Guess the Number!");
Console.Write("Would you like to play? [y/n]: ");
@BytewaveMLP
BytewaveMLP / eeti-upload
Last active August 5, 2016 23:40
Uploads a file to eeti.me (when file is -, uploads stdin)
#!/bin/bash
# ==================================================================
# eeti-upload - Uploads a file to eeti.me
# Made with love by Bytewave (http://steamcommunity.com/id/Bytewave)
# Licensed under the WTFPL (http://www.wtfpl.net)
# ==================================================================
EETI_USER="" # your eeti2 username
EETI_PASS="" # your eeti2 password

Keybase proof

I hereby claim:

  • I am bytewavemlp on github.
  • I am bytewave (https://keybase.io/bytewave) on keybase.
  • I have a public key ASCRol84KLoO5n9jGo6hkbRmc6WiBQSh01Z3nbs4KfUxjQo

To claim this, I am signing this object: