Skip to content

Instantly share code, notes, and snippets.

@gugu
Last active January 10, 2017 12:21
Show Gist options
  • Save gugu/9550775 to your computer and use it in GitHub Desktop.
Save gugu/9550775 to your computer and use it in GitHub Desktop.
prettydev
/*
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