Skip to content

Instantly share code, notes, and snippets.

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
Web Learning
@misnoul
misnoul / HTML:Html5 Better Temp (960gs)
Last active December 14, 2015 04:48
HTML:Html5 Better Temp (960gs)
<!DOCTYPE>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<link rel="shortcut icon" type="text/css" href="images/favicon.ico">
<link rel="apple-touch-icon" type="text/css" href="images/apple-touch-icon.png">
<link rel="stylesheet" href="stylesheets/reset.css" />
<link rel="stylesheet" href="stylesheets/960_24_col.css" />
@misnoul
misnoul / HTML:HTML5Temp
Created January 4, 2013 20:31
HTML:HTML5Temp
<!DOCTYPE>
<html>
<head>
<title></title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/main.css" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
@misnoul
misnoul / HTML5 Corpus
Created November 1, 2012 07:41
HTML: HTML5 Basic Corpus
<!DOCTYPE>
<html lang="en">
<head>
<title>webifiy.com</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/main.css" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--<script src="http://code.jquery.com/jquery-latest.min.js"></script>-->
@misnoul
misnoul / github.css
Created September 29, 2012 20:09 — forked from theconektd/github.css
Markdown: Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@misnoul
misnoul / gist:3804499
Created September 29, 2012 16:20
HTML: Starting Template 1
<!DOCTYPE>
<html>
<head>
<title></title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="" />
@misnoul
misnoul / gist:3801167
Created September 28, 2012 17:32 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@misnoul
misnoul / gist:3801116
Created September 28, 2012 17:22
HTML: Starting Template
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script type="text/javascript" src="#"></script>
</body>