Skip to content

Instantly share code, notes, and snippets.

View rodrigoluizgenz's full-sized avatar

Rodrigo luiz genz rodrigoluizgenz

View GitHub Profile
.wrong-triangle {
content: "";
width: 0;
height: 0;
border-top: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid black;
border-left: 5px solid transparent;
}
.right-triangle {
@rodrigoluizgenz
rodrigoluizgenz / .editorconfig
Created September 4, 2013 12:59
editorconfig
# editorconfig.org
root = true
# TODOS OS ARQUIVOS
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@rodrigoluizgenz
rodrigoluizgenz / Fetch.sublime-settings
Created July 28, 2013 05:30
sublime:settings:fetch
{
"files":
{
"bootstrap_js_input": "http://gregpike.net/demos/bootstrap-file-input/bootstrap.file-input.js",
"css_960_fix": "http://grids.heroku.com/grid.css?column_width=60&column_amount=12&gutter_width=20",
"css_960_fluid": "http://grids.heroku.com/fluid_grid.css?column_amount=12",
"css_adapt_1200": "http://adapt.960.gs/assets/css/1200.css",
"css_adapt_1560": "http://adapt.960.gs/assets/css/1560.css",
"css_adapt_1920": "http://adapt.960.gs/assets/css/1920.css",
"css_adapt_2520": "http://adapt.960.gs/assets/css/2520.css",
h1. Sublime Text 2 - Useful Shortcuts (PC)
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |
@rodrigoluizgenz
rodrigoluizgenz / gist:6076880
Created July 25, 2013 04:18 — 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) {}
@rodrigoluizgenz
rodrigoluizgenz / index.html
Created July 25, 2013 04:13
html: template start
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Document</title>
<link rel="stylesheet" href="estilo.css" />
</head>
<body>
</body>

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
(function() {
var script,
scripts = document.getElementsByTagName('script')[0];
function load(url) {
script = document.createElement('script');
script.async = true;
script.src = url;
scripts.parentNode.insertBefore(script, scripts);