Skip to content

Instantly share code, notes, and snippets.

View jahdakine's full-sized avatar

Jahdakine jahdakine

View GitHub Profile
@jahdakine
jahdakine / Javascript-SIAF
Created January 26, 2013 17:22
Generate self-invoking anonymous function
<!-- Self invoking function -->
<snippet>
<content><![CDATA[
(function() {
${1}
})();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jsf</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@jahdakine
jahdakine / Javascript-Console_log
Created January 26, 2013 17:20
Output to the console code
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jcl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
</snippet>
@jahdakine
jahdakine / jQuery-Plugin_shell
Created January 26, 2013 17:15
Builds a self-invoking function in the plugin style
<snippet>
<content><![CDATA[
;(function(\$, window, document, undefined) {
${1}
})(jQuery, window, document);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jps</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
@jahdakine
jahdakine / CSS-List_none
Created January 26, 2013 17:13
Generate li list style none class
<content><![CDATA[
li {list-style:none;${1}}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cln</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.css</scope>
</snippet>
@jahdakine
jahdakine / HTML-CSS_simple
Created January 26, 2013 17:11
Generate CSS link rel
<snippet>
<content><![CDATA[
<link rel="stylesheet" href="${1:.css}" />
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>hcs</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html</scope> -->
</snippet>
@jahdakine
jahdakine / HTML-401_simple
Created January 26, 2013 17:09
Generate simple HTML 4.01
<snippet>
<content><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv='Content-Type' content="text/html; charset=utf-8" />
<title>${1}</title>
</head>
@jahdakine
jahdakine / HTML5-Template_basic
Created January 26, 2013 17:03
Generates basic HTML5 template
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>${1}</title>
</head>
@jahdakine
jahdakine / Blade-HTML_Link
Last active December 11, 2015 18:39
Constructs a Blade link
@jahdakine
jahdakine / Laravel-Restful_Controller
Created January 26, 2013 16:51
Builds a restful controller
<snippet>
<content><![CDATA[
public $restful = true;
public function get_index() {
}
public function post_create() {
}
public function get_show() {