Skip to content

Instantly share code, notes, and snippets.

View djsnipa1's full-sized avatar
💾
codin’

Chad Boyce djsnipa1

💾
codin’
  • 20:42 (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 / 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 / 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
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>
@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 / 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 / index.haml
Created March 17, 2021 10:10
Parallax Star background in CSS
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
#stars
#stars2
#stars3
#title
%span
PURE CSS
%br
%span
PARALLAX PIXEL STARS
@djsnipa1
djsnipa1 / dabblet.css
Last active March 1, 2021 04:24
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.grad2 {
background: linear-gradient(123deg, #FFFCAC 0%, #FFFFFF 67%), linear-gradient(180deg, #D8D8D8 0%, #6B0000 100%), linear-gradient(142deg, #F9F5F0 0%, #F9F5F0 33%, #F2EAD3 calc(33% + 1px), #F2EAD3 56%, #F4991A calc(56% + 1px), #F4991A 62%, #321313 calc(62% + 1px), #321313 100%);
background-blend-mode: multiply, overlay, normal;t(142deg, #F9F5F0 0%, #F9F5F0 33%, #F2EAD3 calc(33% + 1px), #F2EAD3 56%, #F4991A calc(56% + 1px), #F4991A 62%, #321313 calc(62% + 1px), #321313 100%);
background-blend-mode: multiply, overlay, normal;
border: solid 1px black;
height: 50px;
}