Skip to content

Instantly share code, notes, and snippets.

View rsgranne's full-sized avatar

Scott Granneman rsgranne

View GitHub Profile
@rsgranne
rsgranne / Sublime Linter > Settings - User
Created July 2, 2012 20:54
CSSLint settings for Sublime Linter > Settings - User
{
// CSSLint options:
// Each rule can have three values: error|warning|true|false
// false => rule is disabled.
// true => alias to 'error'
// All rules are enabled by default.
// Currently the only difference between warnings and errors is in the prefix of the message in the Sublime status bar.
"csslint_options":
{
"adjoining-classes": false,
@rsgranne
rsgranne / gist:aa07d7864ea0bd47ae01
Created August 11, 2014 18:52
Convert contents of current folder to M4V using HandBrakeCLI
#!/bin/bash
#===============================================================================
# FILE: handconv.sh
#
# USAGE: Run manually
#
# DESCRIPTION: Converts the contents of the current folder to M4V using HandBrakeCLI
#
# AUTHOR: Scott Granneman (RSG), scott@websanity.com
@rsgranne
rsgranne / gist:5a963535890bd6bd55a6
Created November 8, 2015 20:24
Code listing result for ls -F ~/bin
adblock_filters.txt fixm3u* pix2tn.pl*
addext* flash.xml* pop_login*
address_book.csv getip* procmail/
address_book.sxc homesize* programs_usual*
address_book.xls html2text.py* quickrename*
backup_to_chaucer* list-urls.py*
@rsgranne
rsgranne / modernizr-link.txt
Created December 10, 2015 08:32
Link to Modernizr
@rsgranne
rsgranne / nav-click.htm
Last active May 1, 2018 01:31
Nav that must be clicked to activate
<nav class="container navbar navbar-default">
<!-- Non-collapsing part of nav -->
<div class="navbar-header">
<!-- Button that toggles collapsing part of nav bar -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#site-nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
"language": {
"javascript": {
"linting.prefer": "JSHint",
"linting.usePreferredOnly": true
}
},
@rsgranne
rsgranne / private.xml
Created March 18, 2016 06:29
private.xml for Karabiner to remap Caps Lock to Hyper
<?xml version="1.0"?>
<root>
<item>
<name>Remap Caps Lock to F19/Hyper</name>
<appendix>Caps Lock to Hyper (Ctrl + Shift + Command + Option)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyToKey--
KeyCode::F19,
KeyCode::COMMAND_L,
@rsgranne
rsgranne / gist:907e804e727a5fed51e388b2916a9939
Created April 16, 2016 16:12
Holy Grail layout main content
<p>
Characteristics of the Holy Grail layout:
</p>
<ul>
<li>Fluid center with fixed-width sidebars</li>
<li>Center column containing main content appears first in the HTML</li>
<li>All columns should be the same height, no matter which column is actually tallest</li>
<li>Minimal markup &amp; no hacks</li>
<li>Footer should stick to the bottom of the page even if the content is short</li>
</ul>
<a data-viewport="640×960" data-icon="mobile">xs (640)</a><a data-viewport="800×1280" data-icon="tablet">sm (800)</a><a data-viewport="1024x768" data-icon="notebook">md (1024)</a><a data-viewport="1280x800" data-icon="tv">lg (1280)</a>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Learning Git Home</title>
</head>
<body>
<h1>Learning Git</h1>