Skip to content

Instantly share code, notes, and snippets.

View aeisenberg's full-sized avatar
:octocat:

Andrew Eisenberg aeisenberg

:octocat:
View GitHub Profile
@aeisenberg
aeisenberg / PHP-template.scripted-completions
Last active December 11, 2015 12:18
A simple template for a scripted-completions file.
{
"scope": "source.php",
"completions": [
{ trigger: "if (surround with)",
contents: "if (${1:condition}) {\n\t${selection}\n}",
isTemplate: true}
]
}
@aeisenberg
aeisenberg / PHP-variables.scripted-completions
Created January 22, 2013 22:48
simple completions using variables for scripted-completions
{
"scope": "source.php",
"completions": [
{ trigger: "What year is it?", contents: "It is ${year}." },
]
}
@aeisenberg
aeisenberg / PHP.scripted-completions
Created January 22, 2013 22:46
Simple Scripted completions for php files.
{
"scope": "source.php - variable.other.php",
"completions": [
"php",
{ "trigger": "abs", "contents": "abs(${1:number})" },
{ "trigger": "acos", "contents": "acos(${1:arg})" },
{ "trigger": "ternary", "contents": "${1:condition} ? ${2:then} : $0 " }
]
@aeisenberg
aeisenberg / evernote.scpt
Last active December 10, 2015 14:48
Helping awsamuel out with some applescript and evernote integration.
global cleanText
-- set all variables to global [not sure whether this is needed, but it made the script run]
global noteList
global tempTags
global keepPhrase
global messageText
global newText
global theEverBody
global thisNote
global fileText