Last active
January 10, 2017 12:21
-
-
Save gugu/9550775 to your computer and use it in GitHub Desktop.
prettydev
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
/* | |
To create your own command you need: | |
1. create gist with name "prettydev" | |
2. write JS file in requirejs syntax, which returns object with functions. Like this example | |
To call it you need to write your github login, colon and command name. | |
For example: gugu:javascript 2+3 | |
*/ | |
define([], function () { | |
return { | |
test: function () { | |
return 'Hello world!!' | |
}, | |
javascript: function () { | |
return eval(Array.prototype.join.call(arguments, " ")) | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment