Skip to content

Instantly share code, notes, and snippets.

@-moz-viewport {
width: device-width;
}
@-ms-viewport {
width: device-width;
@media screen and (max-width: 400px) {
width: 320px;
}
@curtisj44
curtisj44 / show-on-scroll.js
Last active December 12, 2015 07:09
Show hidden items as they appear in viewport
var windowBottom = $(window).scrollTop() + $(window).height();
$(window).scroll(function () {
$('.hideme').each(function (i) {
var $this = $(this),
objectBottom = $(this).position().top + $(this).outerHeight();
if (windowBottom > objectBottom) {
$(this).animate({'opacity': '1'}, 500);
}
@curtisj44
curtisj44 / trello.user.js
Last active January 15, 2019 20:46
User Script: Trello
// ==UserScript==
// @description Make Trello more awesome
// @downloadURL https://gist.github.com/curtisj44/9491644
// @grant none
// @include https://trello.com/*
// @name Trello
// @namespace trello
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @version 2.3.0
// ==/UserScript==
@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/*"
@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 / 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-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 / _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 / 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 / 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>