Skip to content

Instantly share code, notes, and snippets.

View Goldac77's full-sized avatar
๐Ÿ˜‹

Nicholas Amemazior Goldac77

๐Ÿ˜‹
  • Accra, Ghana
  • 17:43 (UTC)
View GitHub Profile
@thekaushikls
thekaushikls / build_module.py
Last active January 10, 2025 15:31
compile .py to .dll
#!/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
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]];
}
}