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 / 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
@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 / 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 / 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 / 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 / Preferences.sublime-settings
Created February 11, 2015 08:15
Sublime Preference Settings
{
"font_face": "Consolas",
"font_size": 11,
"ignored_packages":
[
"Vintage"
]
}
@placidrod
placidrod / Sublime windows context menu.txt
Created February 11, 2015 08:16
Sublime Windows Context Menu
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% "%%1"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@placidrod
placidrod / cf7-divi-theme.html
Last active August 29, 2015 14:16
CF7 with Divi Theme
<div class="chewy_pb_contact">
<p class="clearfix">
<strong><label class="et_pb_contact_form_label">Your Name</label></strong>
[text* your-name id:your-name class:input class:et_pb_contact_name class:chewy_input placeholder "Name"]
</p>
<p class="clearfix">
<strong><label class="et_pb_contact_form_label">Your Email</label></strong>
[text* your-email id:your-email class:input class:et_pb_contact_email class:chewy_input placeholder "Email"]
</p>
<p class="clearfix">
@placidrod
placidrod / CF7-Divi-All-Full-Width.html
Created February 28, 2015 08:51
CF7 Divi All Full Width
<div class="chewy_pb_contact">
<p class="clearfix">
<!-- <label class="et_pb_contact_form_label">Name</label> -->
[text* your-name id:your-name class:input class:et_pb_contact_name class:chewy_input placeholder "Name"]
</p>
<p class="clearfix">
<!-- <label class="et_pb_contact_form_label">Email</label> -->
[text* your-email id:your-email class:input class:et_pb_contact_email class:chewy_input placeholder "Email"]
</p>
<p class="clearfix">
@placidrod
placidrod / chewy-divi-custom-css.css
Created March 1, 2015 11:57
chewy-divi-custom-css
.chewy-no-display {
display: none;
}
.chewy-header {
background-color: #e55621;
}
.chewy-history {
font-size: 16px;
}
.chewy-contact p {