Slides: https://frontendmasters.com/assets/resources/lukasruebbelke/better-apps-angular-2-day2.pdf
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
from xml.dom import minidom | |
import json | |
config = { | |
'svg_file' : 'map.svg', | |
'js_file' : 'map.js', | |
'js_var' : 'svgMap' | |
} | |
svg = minidom.parse(config['svg_file']) |
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
gruntFunction = (grunt)-> | |
if grunt.option('dev') | |
env = 'development' | |
else if grunt.option('deploy') | |
env = 'deployment' | |
else if grunt.option('prod') | |
env = 'production' | |
else | |
env = grunt.option('env') || 'development' |
I was trying to get the Arduino IDE to work inside a Docker container on OS X. I was able to get the IDE working (see Getting X11 GUI applications to work on OS X with Docker), but I could not figure out how to make the USB port for the Arduino visible.
I first tried to directly map hardware serial port into the Docker container, doing something like this:
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
# use noglob on zsh | |
# change file extensions where appropriate | |
# collect source file paths for analysis | |
find . -name "*.js" | grep -v "bower_components" | grep -v "node_modules" > source_files.txt | |
# number of files in project | |
wc -l source_files.txt | |
# number of lines by file |