Skip to content

Instantly share code, notes, and snippets.

@alexshive
alexshive / media-queries.scss
Last active December 21, 2015 04:49 — forked from miguelmota/media-queries.scss
1140px desktop dimension
// Sass Media Query Breakpoints
//
// Variables
//
$mobile-small-max-size: 320px !default;
$mobile-max-size: 640px !default;
$tablet-min-size: 768px !default;
$tablet-max-size: 979px !default;
$desktop-min-size: 979px !default;
@alexshive
alexshive / gist:6197824
Created August 9, 2013 22:26
Sublime Text: Goto Line (Command+L)
## Credit: http://sublimetext.userecho.com/topic/59156-command-for-goto-line/
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }
@alexshive
alexshive / gist:6161797
Created August 6, 2013 03:33
Installation of Package Control for Sublime Text 3
## CREDIT ##
# Many thanks to http://wbond.net/sublime_packages/package_control/installation for the following instructions
#
# Please note, the Packages/ folder listed below refers to the folder that opens when you use the Preferences > Browse Packages... menu.
#
$ cd Packages/
$ git clone https://github.com/wbond/sublime_package_control.git "Package Control"
$ cd "Package Control"
$ git checkout python3
@alexshive
alexshive / hipsum.sublime-snippet
Last active December 20, 2015 13:49
Hipster Ipsum (Hipsum) placeholder content for Sublime Text
<snippet>
<content><![CDATA[
Whatever farm-to-table irony, Cosby sweater freegan tumblr banh mi keffiyeh mixtape selvage Banksy Carles. Letterpress hashtag Pinterest, organic jean shorts keffiyeh squid Godard. Jean shorts freegan selfies street art bicycle rights, vegan ethnic. 3 wolf moon messenger bag chillwave dreamcatcher mixtape, Portland flexitarian Carles cardigan Terry Richardson 8-bit PBR Cosby sweater vinyl fixie. Vinyl mumblecore cardigan wolf. Scenester plaid literally helvetica. Artisan kale chips blog cliche, beard sustainable banh mi shoreditch biodiesel Godard lo-fi readymade helvetica literally disrupt.
90's retro letterpress pork belly organic 3 wolf moon blue bottle. Umami messenger bag kitsch trust fund shoreditch, pickled fashion axe. Cliche asymmetrical Carles, disrupt Austin try-hard chambray blog. Raw denim Bushwick ennui, semiotics hella synth stumptown. Biodiesel sustainable tousled pour-over shabby chic gluten-free Vice butcher brunch. DIY PBR sriracha leggings +1 butcher gluten-
@alexshive
alexshive / gist:6141460
Created August 2, 2013 16:53
CSS transition properties for Sublime Text
<snippet>
<content><![CDATA[
-webkit-transition: all 0.4s ease;
-moz-transition: all 0.4s ease;
-ms-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
]]></content>
<tabTrigger>trans</tabTrigger>
</snippet>
@alexshive
alexshive / html5.sublime-snippet
Last active December 20, 2015 13:49
HTML5 snippet for Sublime Text
<snippet>
<content><![CDATA[
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@alexshive
alexshive / stylesheet.sublime-snippet
Last active December 20, 2015 13:49
Stylesheet HTML link tag snippet for Sublime Text
<snippet>
<content><![CDATA[
<link rel="stylesheet" href="${1:style.css}" />
]]></content>
<tabTrigger>link</tabTrigger>
</snippet>
@alexshive
alexshive / gist:6141387
Created August 2, 2013 16:42
CSS border box Sublime Text snippet
<snippet>
<content><![CDATA[
*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
]]></content>
@alexshive
alexshive / app.js
Last active December 17, 2015 23:18 — forked from FokkeZB/app.js
Didn't work on fresh Titanium project before and was too fast spinning. Fixed for demonstration purposes.
var win = Ti.UI.createWindow({ backgroundColor: '#000' });
var v = Ti.UI.createView({ width: 50, height: 50, backgroundColor: '#fff'});
var s = require('spinner').Spinner(
v, // View to spin
30 // Degrees to spin per millisecond
); // Auto-starts
// Stop
s.stop();