Skip to content

Instantly share code, notes, and snippets.

@L-fours-gists
L-fours-gists / BaseMethod.sublime-snippet
Created October 5, 2012 07:09
JavaScript: Create New base2 Method
<snippet>
<content><![CDATA[
'${2:methodName}': function(${3:argument}) {
${4:// method body}
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bmethod</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
@L-fours-gists
L-fours-gists / sendGmail.py
Created October 5, 2012 01:56 — forked from davvid/send-gmail.py
Send an email through gmail with python
#!/usr/bin/python
"""
send an email through gmail
Save this script to send-gmail.py,
place the body of the email in email_message.txt,
and then run:
python send-gmail.py \
--wait 5 \
@L-fours-gists
L-fours-gists / jquery.sublime-snippet
Created October 5, 2012 01:13
JavaScript: jQuery Wrapper
<snippet>
<content><![CDATA[
(function(\$) {
\$(document).ready(function(){
${1:// body}
});
}) (jQuery);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@L-fours-gists
L-fours-gists / forEach.sublime-snippet
Created October 5, 2012 01:12
JavaScript: Base2 Map forEach
<snippet>
<content><![CDATA[
forEach(function(${1:item, index, items}) {
${3:// forEach body}
}, ${4:this});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>forEach</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
@L-fours-gists
L-fours-gists / base2.sublime-snippet
Created October 5, 2012 01:12
JavaScript: Base2 Create Class
<snippet>
<content><![CDATA[
${1:ClassName} = base2.Base.extend({
'${2:constructor}': function(${3:argument}) {
${4:// method body}
}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>base</tabTrigger>