This file contains 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
/* | |
--- | |
script: String.SHA1.js | |
description: Hash a string with the SHA-1 algorithm | |
license: MIT-style license. | |
authors: Yannick Croissant |
This file contains 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
SOURCEPATH=/path/to/javascripts/sources | |
BUILDPATH=/path/to/compiled/javascripts | |
NODEPATH=/path/to/node | |
UGLIFYPATH=/path/to/uglifyjs | |
SPROCKETPATH=/path/to/sprocketize | |
cd $SOURCEPATH | |
for f in *.js; | |
do |
This file contains 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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Example</title> | |
<script> | |
// Define an empty array | |
var Ready = []; | |
</script> | |
<script async src="main.js"></script> | |
<script> |
This file contains 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
var util = require('util'); | |
var exec = require('child_process').exec; | |
// Grep (ok) | |
exec("grep 'grep' test.js", function(){ | |
console.dir(arguments); | |
}); | |
// Ack (nok) | |
exec("ack 'ack' test.js", function(){ |
This file contains 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
Show hidden characters
[ | |
{ "keys": ["ctrl+m"], "command": "toggle_side_bar" } | |
] |
This file contains 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
// Small script to check the actives hosts on the network and, according to the results, start/stop the torrents. | |
// NB: The high priority torrents remains untouched. | |
// | |
// cron task to exec it every 5min: */5 * * * * root node /volume1/web/tasks/transmission/transmission.js > /dev/null | |
var Transmission = require('transmission'); // node-transmission - https://github.com/FLYBYME/node-transmission | |
var exec = require('child_process').exec; | |
// Log in to transmission | |
var transmission = new Transmission({ |
This file contains 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
/* | |
* Usages: | |
* {{#set "content"}} | |
* captured content | |
* {{/set}} | |
* My {{ content }} | |
*/ | |
Handlebars.registerHelper('set', function(name, options) { | |
this[name] = options.fn(this); | |
return null; |
This file contains 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
emblem.emblem.load({ | |
"objects": [ | |
{ | |
"opacity": 1, | |
"angle": -5.0043635188, | |
"flipX": false, | |
"flipY": false, | |
"top": 138, | |
"height": 298.3367253252, | |
"width": 20, |
This file contains 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
lint/linter.py | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
diff --git a/lint/linter.py b/lint/linter.py | |
index bb701df..bef4602 100644 | |
--- a/lint/linter.py | |
+++ b/lint/linter.py | |
@@ -1258,13 +1258,17 @@ class Linter(metaclass=LinterMeta): | |
col = i | |
break |
OlderNewer