Skip to content

Instantly share code, notes, and snippets.

@ref http://blog.daanraman.com/coding/automatically-reload-chrome-when-editing-files-on-osx/
tell application "Google Chrome"
reload active tab of window 1
end tell
fswatch /Users/you/Sites/project "osascript reloadActiveChromeTab.applescript"
@djcommandline
djcommandline / SUBLIME :: KEYMAP
Created August 28, 2013 18:54
SUBLIME :: KEYMAP
[
// Move OPen File to Window Group
{
"keys": ["super+alt+up"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
@djcommandline
djcommandline / FETCH :: SUBLIME :: USERKEYS
Created July 17, 2013 21:52
FETCH :: SUBLIME :: USERKEYS
[
// Move OPen File to Window Group
{
"keys": ["super+alt+up"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
@djcommandline
djcommandline / LIST :: TOOLS
Created July 10, 2013 18:16
LIST :: TOOLS
toolbox sites
http://thetoolbox.cc/
http://www.agiledesigners.com/
record terminal window and share
http://ascii.io
chart of screen sizes
http://screensiz.es/phone
@djcommandline
djcommandline / SASS :: CHEATSHEET
Created July 7, 2013 06:15
SASS :: CHEATSHEET
/* Variable: */
$red: #ff0000;
.myClass {
color: $red;
}
/* !default: If a variable isn't given a value, it uses the one set for default */
$color: #000000;
$color: #ff0000 !default;
@djcommandline
djcommandline / FETCH :: CONFIG :: SUBLIME
Created July 6, 2013 19:50
FETCH :: SUBLIME :: CONFIG
{
"files":
{
"fontcustomvectors": "https://github.com/mantone/fontcustomvectors/fontcustom.yml",
"jquery": "http://code.jquery.com/jquery-latest.min.js",
"jquery_plugin": "https://raw.github.com/mantone/jquery_plugin_startkit/master/js/plugin.js",
"media_query_mixins": "https://raw.github.com/paranoida/sass-mediaqueries/master/_media-queries.scss",
"modernizr": "http://modernizr.com/downloads/modernizr-latest.js",
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"backbone": "https://raw.github.com/jashkenas/backbone/master/backbone.js",
@djcommandline
djcommandline / gist:5550156
Created May 9, 2013 20:03
Facebook and Quick Share Link Messages...
Twitter...
<a target="_blank" href="http://twitter.com/home?status=Your%20message%20here:%20http://yourshorturl.com">Share on twitter</a>
Facebook...
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http://yourshorturl.com&t=Your%20message%20here.">Share on Facebook</a>
@djcommandline
djcommandline / EMMET :: CSS :: .media.attribution>(a.img>img)+.bd
Created May 7, 2013 00:27
EMMET :: CSS :: .media.attribution>(a.img>img)+.bd
.media {
margin:10px;
}
.media, .bd {
overflow:hidden;
_overflow:visible;
zoom:1;
}
.media .img {
float:left;
@djcommandline
djcommandline / HTML5BP :: H+C(M+A)+F :: MARKUP
Last active December 17, 2015 01:29
HTML5BP :: H+C(M+A)+F :: MARKUP
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
/*! normalize.css v1.1.1 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/