Skip to content

Instantly share code, notes, and snippets.

// Full Height
javascript:document.write('<!DOCTYPE%20html><html><head><meta%20charset="utf-8"><title>Responsive%20Design%20Testing</title><style>html{background:#333}body{margin:0%2020px;font-family:Consolas,monospace;overflow-x:scroll;}.wrapper{width:5617px;}.frame{float:left;height:10000px;}h2{margin:20px;color:rgba(255,255,255,.5);font-weight:normal;font-size:1em;}iframe{margin:0%2020px%2020px;border:0;height:100%;background:#fff;}</style></head><body><div%20class="wrapper"><div%20class="frame"><h2>240</h2><iframe%20src="'%20+%20window.location%20+%20'"%20seamless%20width="240"></iframe></div><div%20class="frame"><h2>320</h2><iframe%20src="'%20+%20window.location%20+%20'"%20seamless%20width="320"></iframe></div><div%20class="frame"><h2>375</h2><iframe%20src="'%20+%20window.location%20+%20'"%20seamless%20width="375"></iframe></div><div%20class="frame"><h2>480</h2><iframe%20src="'%20+%20window.location%20+%20'"%20seamless%20width="480"></iframe></div><div%20class="frame"><h2>640</h2><iframe%20src="'%20+%20w
@curtisj44
curtisj44 / trello-simple-supersize-bookmarklet.js
Last active January 6, 2016 20:34
Trello Simple Supersize
var
styleId = 'simple-supersize',
style = '<style id="' + styleId + '">' +
// wider cards
'.list-wrapper { ' +
' width: 700px; ' +
'} ' +
'.list-card { ' +
' margin: 0; ' +
@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>
@curtisj44
curtisj44 / clean-up.txt
Last active August 29, 2015 14:13
Clean Up List
#A list of strings I don't want to see in CSS and HTML
*margin
*padding
'Arial'
Arial;
Arial, Helvetica
Georgia;
Lucida Grande,
@curtisj44
curtisj44 / _font-smoothing.scss
Last active January 26, 2018 19:28
font-smoothing Sass mixin
=font-smoothing($apply: true) {
@if ($apply == true) {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
} @else {
-moz-osx-font-smoothing: auto;
-webkit-font-smoothing: subpixel-antialiased;
}
}
@curtisj44
curtisj44 / trello-mood-board-bookmarklet.js
Last active June 1, 2018 02:39
Trello Mood Board bookmarklet
if ($('.mood-board').length > 0) {
// off
$('.mood-board').remove();
} else {
// on
var
$attachment = $('.attachment-thumbnail'),
$this,
board = '<style class="mood-board">' +
'.body-board-view {' +
@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 / 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>
@curtisj44
curtisj44 / Preferences.sublime-settings
Last active September 27, 2019 20:08
My Sublime Text user preferences / settings
{
// v3.0.4
"always_show_minimap_viewport": true,
"auto_close_tags": false,
"auto_indent": false,
"auto_match_enabled": false,
"binary_file_patterns": [
"*.sassc",
"*/tmp/*"