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
const fs = require('fs'); | |
const readline = require('readline'); | |
const PATH_SRC = './src'; | |
const OUTPUT_PATH = './; | |
const OUTPUT_FILE_NAME = 'snippets.json'; | |
const CONTROL_LINE_PREFIX = '// #'; | |
function processFile(fileName, resolve, reject) { | |
const reader = readline.createInterface({ |
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
import os | |
import zipfile | |
import time | |
class FileStat: | |
def __init__(self, filename, mod_time): | |
self.name = filename | |
self.mod_time = mod_time |
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
# pip install pydub | |
# https://github.com/jiaaro/pydub/ | |
import pydub | |
# IMPORTANT: ffmpeg binaries should be included to system PATH, https://www.ffmpeg.org/ | |
from pathlib import Path | |
FOLDER = r'E:\\mus\\convert\\before\\' | |
EXPORT_FOLDER = r'E:\\mus\\convert\\after\\' |