Skip to content

Instantly share code, notes, and snippets.

@curtisj44
curtisj44 / bookmarking-bookmarklet.js
Last active May 11, 2023 17:58
Bookmarking Bookmarklet for Eleventy
// TODO: update this path to your repo on GitHub
const repo = "https://github.com/your-path/goes-here/new/master/posts";
const getToday = () => {
const today = new Date();
let dd = today.getDate();
let mm = today.getMonth() + 1;
const yyyy = today.getFullYear();
if (dd < 10) dd = `0${dd}`;
@curtisj44
curtisj44 / themer-dark-color-theme.json
Last active October 4, 2022 16:51
Custom color theme for Visual Studio Code
{
"_version": "1.27.2",
"_source": "https://gist.github.com/curtisj44/e72d8e1dfd950b69fc30eb5b31501795/edit",
"_colors": {
"black-background": "#2b2b2b",
"blue-light": "#87CEEB",
"blue-dark": "#2B91AF",
"gray-light (default text)": "#C0C0C0",
"grey-medium": "#808080",
@curtisj44
curtisj44 / match-iframe-height.js
Last active April 21, 2022 21:34
Responsive Test - Match iframe height to height of page contents
const setFrameHeight = (frameElement, index) => {
frameElement.style.height = 'unset';
const iframeElement = document.querySelectorAll('iframe')[index];
const targetHeight = `${ iframeElement.contentWindow.document.body.scrollHeight }px`;
iframeElement.style.height = targetHeight;
}
document.querySelectorAll('.frame').forEach((frameElement, index) => setFrameHeight(frameElement, index));
@curtisj44
curtisj44 / pesticide-css-bookmarklet.js
Last active March 15, 2022 09:04
Pesticide CSS bookmarklet
var link,
id = 'Pesticide';
pesticide = document.getElementById(id);
if (pesticide === null) {
console.log(id + ' added');
link = document.createElement('link');
link.id = id;
link.rel = 'stylesheet';
@curtisj44
curtisj44 / trello-power-up.user.js
Last active November 9, 2021 06:55
User Script: Trello Power-up
// ==UserScript==
// @description Trello + sound
// @downloadURL https://gist.github.com/curtisj44/a519b52846dd9760ed59
// @grant none
// @include https://trello.com/*
// @name Trello Power-up
// @namespace trello
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @version 0.3.0
// ==/UserScript==
@curtisj44
curtisj44 / baseline.html
Last active November 8, 2021 05:01
HTML Baseline
<!doctype html>
<!--
inspired by:
https://gist.github.com/nfreear/4714368
https://github.com/jbmoelker/a11y-boilerplate
-->
<html class="no-js" lang="en-US">
<head>
info:
title: test
version: 1.0.0
consumes:
- application/json
produces:
- application/json
swagger: '2.0'
securityDefinitions:
keystone:
@curtisj44
curtisj44 / CHANGELOG.md
Created July 27, 2021 16:32
Changelog Template
@curtisj44
curtisj44 / markdown.md
Last active March 5, 2021 20:00
Markdown Examples
@curtisj44
curtisj44 / DesertExRemix.tmTheme
Last active May 12, 2020 17:14
Custom color scheme for Sublime Text (originally based on https://github.com/dwsarber/sublime-colors-desertex)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>DesertEx Remix</string>
<key>author</key>
<string>Curtis Jurgensen (originally based Ming Bai on Vim, then remixed by Dylan Sarber)</string>