Skip to content

Instantly share code, notes, and snippets.

View placidrod's full-sized avatar

Placid Rodrigues placidrod

  • Movio
  • Auckland, New Zealand
View GitHub Profile
@placidrod
placidrod / Preferences.sublime-settings
Created February 11, 2015 08:15
Sublime Preference Settings
{
"font_face": "Consolas",
"font_size": 11,
"ignored_packages":
[
"Vintage"
]
}
@placidrod
placidrod / mirrored_div.sublime-snippet
Created February 9, 2015 16:28
HTML: Test div with mirror
<snippet>
<content><![CDATA[
<div class="$1">
<p class="${2:para}">
${3:text}
</p>
</div><!-- /${1/\*//} -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>placid</tabTrigger>
@placidrod
placidrod / scopes.txt
Last active August 29, 2015 14:15 — forked from iambibhas/scopes.txt
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@placidrod
placidrod / gist:5d819e083d2c781fc9dc
Last active August 29, 2015 14:14 — 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) {}
@placidrod
placidrod / html_start.html
Last active August 29, 2015 14:14
HTML: Starting Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
@placidrod
placidrod / 0_reuse_code.js
Created June 22, 2014 10:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console