Skip to content

Instantly share code, notes, and snippets.

View DaCuteRaccoon's full-sized avatar
:shipit:
Searching for food in dumpsters...

DaCuteRaccoon

:shipit:
Searching for food in dumpsters...
View GitHub Profile
@DaCuteRaccoon
DaCuteRaccoon / vcard.html
Created April 3, 2023 20:13 — forked from dun4n/vcard.html
#JavaScript vcard generator example
<!doctype html>
<html>
<head>
<script type="text/javascript" src="vcard2.js"></script>
</head>
<body>
<script type="text/javascript">
// With helper methods
var fooBar = vCard.create(vCard.Version.FOUR)
fooBar.addFormattedname("Mr Foo Bar")
@DaCuteRaccoon
DaCuteRaccoon / MARKUPS.txt
Created March 28, 2023 19:54
A list of markup languages supported by GitHub
The files are attatched below.
@DaCuteRaccoon
DaCuteRaccoon / vcard.vcf
Created January 25, 2023 00:15
Visual Card example
BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:First Name Middle Name Last Name
N;CHARSET=UTF-8:Last Name;First Name;Middle Name;Prefix;Suffix
NICKNAME;CHARSET=UTF-8:Nickname
GENDER:M
UID;CHARSET=UTF-8:UID
BDAY:19000101
ANNIVERSARY:20001225
EMAIL;CHARSET=UTF-8;type=HOME,INTERNET:Email
@DaCuteRaccoon
DaCuteRaccoon / fire.js
Created January 18, 2023 03:43
A fire in JS
setInterval(function p(h) {
for(p[I++*I%17+578]=i=89;i++<630;h+=i%30?"`*"[p[i]=p[i]+p[i+1]+p[i+29]+p[i+30]>>2]||8:"\n");
console.clear();
console.log(h)
}, I=30);
// Adapted from https://aem1k.com/fire/
@DaCuteRaccoon
DaCuteRaccoon / catchMe.js
Last active January 18, 2023 02:55
Try to catch me if you can! But with a weird obfuscated twist I made.
void eval((null+'')[0].substring(0)+String.fromCharCode(111)+(!''+'')[0]+"='Try to catch me if you can!'")
try { not (to) } catch (me) {
if (`you`) can: not
}
// Double not.
// Try not to catch me if you can not.
// Try to catch me if you can .
@DaCuteRaccoon
DaCuteRaccoon / vatican.geojson
Created November 29, 2022 04:51
Vatican City (mapbox)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DaCuteRaccoon
DaCuteRaccoon / ukraine.svg
Created November 8, 2022 22:27
Ukraine flag svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <Adafruit_NeoPixel.h>
#define PIN 2 // input pin Neopixel is attached to
#define NUMPIXELS 12 // number of neopixels in strip
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
int delayval = 100; // timing delay in milliseconds
@DaCuteRaccoon
DaCuteRaccoon / edit.js
Created October 25, 2022 21:36
Toggle between editing and viewing a website
if (document.body.contentEditable == 'inherit' && document.designMode == 'off') {
document.body.contentEditable = true;
document.designMode = 'on';
void 0;
} else {
document.body.contentEditable = 'inherit';
document.designMode='off';
void 0;
}