Skip to content

Instantly share code, notes, and snippets.

@markjaquith
markjaquith / gist:4500280
Last active April 17, 2024 21:06
Bash command to fix a quirk with Sublime Text 2's "subl" command. Sometimes, when using it, under hard-to-pinpoint circumstances, it will open up Sublime Text 2 completely blank (i.e. the file you asked it to open will not be open). This snippet fixes that by essentially kicking subl under the table to wake it up and then passing on the command …
function subl() {
if [[ ! -p /dev/stdin ]]; then
command subl > /dev/null 2>&1
fi
command subl "$@"
}
@alexisg
alexisg / responsive.html
Created April 12, 2012 19:03 — forked from gmodarelli/responsive.html
Simple responsive design test page. More info here: http://bricss.net/post/16538278376/simple-responsive-design-test-page. Forked by alexisg to add 15 pixels of width to frame sizes (for scrollbars) and added mobile landscape/large desktop sizes. Simply a
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style type="text/css">
body {
background: url(http://subtlepatterns.com/patterns/whitey.png);
font-family: sans-serif;
margin: 20px;

Title: MultiMarkdown Document Subtitle: Adventures in MultiMarkdown Author: ${TM_FULLNAME}
Affiliation: ${TM_ORGANIZATION_NAME}
Email: ${TM_EMAIL} Web: ${TM_URL} Date: ${TM_DATE} Copyright: ${TM_YEAR} ${TM_ORGANIZATION_NAME} This work is licensed under a Creative Commons License.
http://creativecommons.org/licenses/by-nc-sa/3.0/