
- GitHub Staff
- @[email protected]
- in/aeisenberg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 " } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scope": "source.php", | |
"completions": [ | |
{ trigger: "What year is it?", contents: "It is ${year}." }, | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scope": "source.php", | |
"completions": [ | |
{ trigger: "if (surround with)", | |
contents: "if (${1:condition}) {\n\t${selection}\n}", | |
isTemplate: true} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClosureWriter { | |
protected interface UseExistingReference {} | |
public void writeClosure(ClosureExpression expression) { | |
// create some byte-code | |
// ... | |
expression.setNodeMetaData(ClosureWriter.UseExistingReference.class,Boolean.TRUE); | |
// do some more byte-code writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="parent"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js" | |
type="text/javascript"></script> | |
<script type="text/javascript"> | |
angular.module('sub1', []) | |
.run(function(sub2Value) { | |
console.log(sub2Value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js" | |
type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript"> | |
angular.module('watchingApp', []) | |
.controller('watchedController', function($scope) { | |
$scope.value = 9; | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript"> | |
angular.module('watchingApp', []) | |
.controller('watchedController', function($scope) { | |
$scope.value = 9; | |
}) | |
.directive('watching', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// argv: size, dims | |
'strict mode'; | |
var size = process.argv[2]; | |
var dims = process.argv[3]; | |
var grid = initializeGrid(size, dims); | |
setValueAt(createArray(dims, 0), grid, 1); | |
var initialLoc = createArray(dims, size-1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Evernote" | |
set _Notebooks to every notebook | |
repeat with _NoteBook in _Notebooks | |
set _NoteBookName to name of _NoteBook | |
set _Notes to every note of _NoteBook | |
OlderNewer