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/env ipy | |
# -*- coding: utf-8 -*- | |
""" | |
This script collects all python scripts (.py) from the project (including sub-folders) and compiles them into a dynamic link library (.dll) file. File will be placed inside the 'bin' folder. Place this file in the root directory of a project, prior to execution. | |
Note: | |
This script uses the Common Language Runtime Library (CLR). Use IronPython for execution. | |
Download IronPython 2.7.9 from https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.9 |
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
decodeMorse = function(morseCode){ | |
var decodeString = ''; | |
var morseCodeWords = morseCode.split(' '); | |
for (var i in morseCodeWords) { | |
var morseCodeArray = morseCodeWords[i].split(' '); | |
for (var j in morseCodeArray) { | |
if (MORSE_CODE[morseCodeArray[j]] !== undefined) { | |
decodeString += MORSE_CODE[morseCodeArray[j]]; | |
} | |
} |