Skip to content

Instantly share code, notes, and snippets.

View djsnipa1's full-sized avatar
💾
codin’

Chad Boyce djsnipa1

💾
codin’
  • 18:32 (UTC -04:00)
View GitHub Profile
@djsnipa1
djsnipa1 / css-doodle-art.markdown
Created February 9, 2024 01:33
css doodle art
@djsnipa1
djsnipa1 / index.html
Created January 6, 2024 22:12
Matrix digital rain (animated version)
<main></main>
@djsnipa1
djsnipa1 / bookmarklets.markdown
Created December 28, 2019 14:27
Bookmarklets
@djsnipa1
djsnipa1 / config
Last active May 5, 2023 18:38 — forked from miguelmota/config
Arch linux VNC server setup
session=lxqt
geometry=1920x1080
localhost # comment this out to allow connections from anywhere
alwaysshared
@djsnipa1
djsnipa1 / bookmarklet.js
Last active April 26, 2023 17:44 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
// Converted using Bookmarklet Creator with Script Includer - https://mrcoles.com/bookmarklet/
javascript:(function()%7Bjavascript%3A(function()%20%7Bfunction%20copyToClipboard(text)%20%7Bif%20(window.clipboardData%20%26%26%20window.clipboardData.setData)%20%7B%2F*IE%20specific%20code%20path%20to%20prevent%20textarea%20being%20shown%20while%20dialog%20is%20visible.*%2Freturn%20clipboardData.setData(%22Text%22%2C%20text)%3B%7D%20else%20if%20(document.queryCommandSupported%20%26%26%20document.queryCommandSupported(%22copy%22))%20%7Bvar%20textarea%20%3D%20document.createElement(%22textarea%22)%3Btextarea.textContent%20%3D%20text%3Btextarea.style.position%20%3D%20%22fixed%22%3B%20%20%2F*%20Prevent%20scrolling%20to%20bottom%20of%20page%20in%20MS%20Edge.*%2Fdocument.body.appendChild(textarea)%3Btextarea.select()%3Btry%20%7Breturn%20document.execCommand(%22copy%22)%3B%20%20%2F*%20Security%20exception%20may%20be%20thrown%20by%20some%20browsers.*%2F%7D%20catch%20(ex)%20%7Bconsole.warn(%22Copy%20to%20clipboard%20faile
@djsnipa1
djsnipa1 / index.html
Created March 12, 2019 08:01
SVG sphere animation with anime.js
<div class="animation-wrapper">
<div class="sphere-animation">
<svg class="sphere" viewBox="0 0 440 440" stroke="rgba(80,80,80,.35)">
<defs>
<linearGradient id="sphereGradient" x1="5%" x2="5%" y1="0%" y2="15%">
<stop stop-color="#373734" offset="0%"/>
<stop stop-color="#242423" offset="50%"/>
<stop stop-color="#0D0D0C" offset="100%"/>
</linearGradient>
</defs>
@djsnipa1
djsnipa1 / surfingkeys.js
Last active March 3, 2023 04:24
surfingkeys.js
const {
aceVimMap,
mapkey,
imap,
imapkey,
getClickableElements,
vmapkey,
map,
unmap,
cmap,
@djsnipa1
djsnipa1 / apphookup.js
Created February 15, 2023 03:35
Scriptable AppHookup
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: magic;
function cleanTitle(title) {
return title
.replace(/\[ios(\s*universal)?\]\s*/i, "")
.replace(/\[macos\]\s*/i, "")
.replace(/^\s*/, "")
.replace(/\[Windows\]\s*/i, "🎮")
.trim()
@djsnipa1
djsnipa1 / libreddit.js
Last active December 19, 2022 20:07
Test hyperweb script
//==UserScript==
// @name Redirect Google
// @description Redirect Google to Yahoo!
// @include http://*.reddit.com/*
// @run-at document-start
//==/UserScript==
window.location.replace(/www.reddit.com/, /reddit.chadf.ml/)
/*
@djsnipa1
djsnipa1 / index.html
Last active May 20, 2022 11:17
innerHTML
<!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">
<title>HTML</title>
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
</head>