Created
September 21, 2013 22:08
-
-
Save chergert/6654685 to your computer and use it in GitHub Desktop.
embedded js example
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
| snippet blah | |
| ```js | |
| const GLib = imports.gi.GLib; | |
| function getYear() { | |
| let now = GLib.DateTime.new_now_utc(); | |
| return now.format('%Y'); | |
| } | |
| ``` | |
| ${1:`getYear()`} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment