Skip to content

Instantly share code, notes, and snippets.

View AdmiralPotato's full-sized avatar
🐐
Probably filling databases with Goats

Admiral Potato AdmiralPotato

🐐
Probably filling databases with Goats
View GitHub Profile
@AdmiralPotato
AdmiralPotato / .gitignore
Last active April 3, 2022 05:00
Just a little sqlite in node
.idea
*.iml
.data
node_modules
@AdmiralPotato
AdmiralPotato / index.html
Last active January 2, 2022 01:46
Can GitHub VsCode in a Gist?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Can VSCode Online edit GitHub Gists?</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
@AdmiralPotato
AdmiralPotato / .editorconfig
Last active January 9, 2021 02:54
Tribute to "Connecting Noise Walk"
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@AdmiralPotato
AdmiralPotato / attack_goat.js
Last active May 19, 2020 03:58
Contents for a bookmarklet that adds an ATTACK GOAT to your page! Hover over an element and press `delete`, then the Goat will ATTACK!
var goatSource = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAB6VBMVEX////8whv8whv8whv8whv8whv8whv8whv8whv8whv8whv8whv8whv8whv8whv8whvkvDZ4o614o614o614o63bukC9s2CPqJR4o614o614o614o614o614o614o614o62QrqiLsLmfvsWyytCqxcuRsbF4o614o63M2tqWt797pa/K29+GrLWNsbq/1Ni3ztOAqLKsx82Ps7ukwciiwMZ4o62ausKBqbKHrbbC1dqBqbN5pK2RtLx7pa+IrreRtLx7pa94o618pq94o63B1dmwyc/T4eSdvMS0zNKEq7T8whvbukC6smShrYCQqZJ4o62ApaSZq4mxsG3CtFvjvDaIp5upr3eZsqWZs6m7ybrV4uXu8/X////d6OrM2tiyxbiIqqeyxr67y8GRr6rE08v3+frm7vDM3OCiwMaIrreRtLzH2d22zdPY2NiXl5fl5eWKioovLy/y8vKkpKRvb2+busLLy8t8fHxiYmJVVVWXuMDM3eDZ5ejX4+fa5ui+vr6xsbGrxszf6evv9PWAqbLu9PW80dbN3eB7pa+IrrZHR0dISEiGrbV6pa+zy9E7Ozu/1Nimwsm70daZusGMsbmAqLLE19uyy9B/qLH1+PmJr7fS4OSqxcyYuMCoxMrI2t670NWLsLifvsVPs21lAAAASnRSTlMAEJDAsIAwIGCg8OBQQNBwrEBggHC/qHQQUKDwsCCQwP7g4uDk6zDQ/eL29ujk7vDu6+jt6ODr8Ov3+/719e3r+ej3fvn59dzo5WAeJyQAAAABYktHRACIBR1IAAAAB3RJTUUH4QYCEwsWPcUuHwAAB+dJREFUeNrVW/d/20QUV+qmbpq2IMuA
@AdmiralPotato
AdmiralPotato / index.html
Last active February 25, 2019 15:24
Chrome has bad performance rendering SVG circles
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chrome has bad performance rendering SVG circles</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, maximum-scale=1, user-scalable=no">
<style>
html, body {
height: 100%;
}
@AdmiralPotato
AdmiralPotato / .gitignore
Last active March 8, 2019 23:03
Wiggly Things
.idea
*.iml
@AdmiralPotato
AdmiralPotato / .gitignore
Last active June 7, 2023 00:51
Trying a 3D scene with 2D overlays
.idea
*.iml
@AdmiralPotato
AdmiralPotato / README.md
Created October 1, 2017 00:15
An interactive creative coding exercise

An interactive creative coding exercise

I don't know what I'm doing yet

@AdmiralPotato
AdmiralPotato / README.md
Last active July 9, 2017 05:30
SVG Symmetry Thing

#SVG Symmetry Thing I'm going to try to make something inspired by the works of Atticus Bones.

@AdmiralPotato
AdmiralPotato / gif_process-electric_leaves.js
Last active May 28, 2017 11:03
Sometimes Photoshop is a damn fool and you need an export process that sucks less at color palette selection and dithering.
//REQUIREMENTS: The following programs must be installed and accessible in your PATH
// node > 6
// imagemagick's command line tool "convert"
// giflossy - which can be installed with `npm install -g giflossy`, but only on mac and linux??
//USAGE: Change params at the top to your liking. `node gif_process.js` starts it up.
// EXECUTES ALL TASKS IN PARALEL.
// If you run it like this, it will CONSUME YOUR WHOLE COMPUTER (100% cpu, 100% memory) for a few minutes while it works.
//DISCLOSURE: I was running terribly low on sleep when I wrote this. It's a tool. It gets a job done like ten times ever. Don't judge me on this. The code I write for my day job is like way better and I care a lot more about it because I have to maintain it all the time.
//LICENSE: MIT