Skip to content

Instantly share code, notes, and snippets.

Avatar
🐐
Probably filling databases with Goats

Admiral Potato AdmiralPotato

🐐
Probably filling databases with Goats
View GitHub Profile
@AdmiralPotato
AdmiralPotato / index.html
Last active Jan 2, 2022
Can GitHub VsCode in a Gist?
View index.html
<!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 Jan 9, 2021
Tribute to "Connecting Noise Walk"
View .editorconfig
# 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
Contents for a bookmarklet that adds an ATTACK GOAT to your page! Hover over an element and press `delete`, then the Goat will ATTACK!
View attack_goat.js
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 Feb 25, 2019
Chrome has bad performance rendering SVG circles
View index.html
<!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 Oct 5, 2021
Trying a 3D scene with 2D overlays
View .gitignore
.idea
*.iml
@AdmiralPotato
AdmiralPotato / README.md
Created Oct 1, 2017
An interactive creative coding exercise
View README.md

An interactive creative coding exercise

I don't know what I'm doing yet

@AdmiralPotato
AdmiralPotato / README.md
Last active Jul 9, 2017
SVG Symmetry Thing
View README.md

#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
Sometimes Photoshop is a damn fool and you need an export process that sucks less at color palette selection and dithering.
View gif_process-electric_leaves.js
//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
@AdmiralPotato
AdmiralPotato / README.md
Last active Apr 27, 2017
Tribute to: thedotisblack's "Optical Art with Lines"
View README.md

The original work that inspired me is fantastic. I wanted so see if I could pull it off real quick and easy in SVG. Answer is mostly, but by the time I felt like going to bed, I realized that they used decreasing space between the lines, and mine was constant. Check the original, it's super relaxing to watch - it's quite a bit faster than mine though.

Original work: Generative Pattern Drawing: Optical Art with Lines (Made with code / Processing)