Skip to content

Instantly share code, notes, and snippets.

View djsnipa1's full-sized avatar
💾
codin’

Chad Boyce djsnipa1

💾
codin’
  • 13:27 (UTC -04:00)
View GitHub Profile
@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 / 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.pug
Created April 16, 2020 08:36 — forked from oauo/index.pug
Medium style lazy loading images with react #codepen #react
div#app
@djsnipa1
djsnipa1 / README.md
Created April 10, 2020 20:48 — forked from dotiful/README.md
Nested collapsible Markdown list

Collapsible markdown with <details>

<details>
 <summary>Details</summary>
 hidden, collapsable content...
</details>

Demo:

@djsnipa1
djsnipa1 / surfingkeys-config.js
Created April 10, 2020 20:45 — forked from dotiful/surfingkeys-config.js
Surfingkeys config. Map your keys for web surfing, expand your browser with javascript and keyboard https://addons.mozilla.org/en-US/firefox/addon/surfingkeys_ff/?src=search
/**
* Surfingkeys config.
*
* An extension that adds Vim-like bindings to your browser in order to extend
* it using JavaScript and a keyboard.
*
* @link https://git.io/surfingkeys
* @author Artem Medvedev <dotiful@gmail.com>
*
* Created at : 2019-01-15
@djsnipa1
djsnipa1 / sampleREADME.md
Last active April 5, 2020 23:07 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

python logo

Python Shit 🐍 💩

Small scripts that helped me learn Python

@djsnipa1
djsnipa1 / oAutoPagerize.Settings.user.js
Created August 3, 2019 10:20 — forked from jolij/oAutoPagerize.Settings.user.js
* [_]() ≡ []() #[] oAutoPagerize with my modifications (instructables.com w/a, advanced debugging and styling etc)
// ==UserScript==
// @name 0AutoPagerize Settings
// @namespace http://ss-o.net/
// @description oAutoPagerize Settings
// @include http*
// ==/UserScript==
(function(){
if (document) {
//If the settings are loaded after the main script, shoudn't be the case.
@djsnipa1
djsnipa1 / print256colours.sh
Created June 9, 2019 22:17 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
@djsnipa1
djsnipa1 / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@djsnipa1
djsnipa1 / x
Created September 14, 2009 19:32 — forked from ftherese/x
makeSearchCommand({
name: "hulu",
synonyms: ["video"],
url: "http://www.hulu.com/videos/search?query={QUERY}",
icon: "http://www.hulu.com/favicon.ico",
description: "Searches <a href=\"http://www.hulu.com\">Hulu</a> for videos matching your words.",
preview: function( pblock, thing ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>Hulu</b>"; return;}
jQuery.get(this.url.replace("{QUERY}", thing.text),
function (doc)