Instructions for setting up Babel to transpile ES6 to a supported format. Part of the activity in the final class of the Girl Develop It Intro to ES6 course.
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
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) { | |
$httpProvider.responseInterceptors.push([ | |
'$q', '$templateCache', 'activeProfile', | |
function($q, $templateCache, activeProfile) { | |
// Keep track which HTML templates have already been modified. | |
var modifiedTemplates = {}; | |
// Tests if there are any keep/omit attributes. | |
var HAS_FLAGS_EXP = /data-(keep|omit)/; |
Mini-projects by xem, subzey, aemkei, p01, bburky, rlauck, cmoreau, veu, maettig, thiemowmde
https://github.com/codegolf/pac-man (a PAC-MAN clone in less than 350b - WIP)
http://xem.github.io/miniJSperf/ (a JSperf clone in less than 300b)
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
; Don't forget to change the Icon and Exec path to your needs | |
; And save this file into the ~/.local/share/applications/ directory | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Notes | |
Icon=/home/mariocesar/bin/notes.png | |
Exec=/home/mariocesar/bin/notes.py | |
Categories=Accessories; |
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
#!/usr/bin/python | |
"""Usage: | |
X.py < X.in > X.out | |
""" | |
################################################################################ | |
# util functions | |
logging = False |