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
#!/usr/bin/env python3 | |
''' | |
Source name: parkrun_starwars.py | |
Author(s): Stoyan Shopov | |
Python Version: 2.7, 3.* 32-bit or 64-bit | |
License: LGPL | |
Description: | |
This program was run on the EV3D4 (R2D2 look-a-like) Lego Mindstorms at Mount Barker parkrun 175. |
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
var WidgetManager = require("jimu/WidgetManager"); | |
var Extent = require("esri/geometry/Extent"); | |
var wm = WidgetManager.getInstance(); | |
var map = wm.getAllWidgets()[0].map; | |
//Fires when one or more layers begins updating their content. There is a gap between the set-extent and update-start event and it can be quite large. | |
//Fires after layers that are updating their content have completed. | |
var listener1 = map.on('update-start', | |
function(e){ | |
startTime = new Date().getTime()/1000; |
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
''' | |
Takes a folder and converts all .mp4 files in it to .mp3. | |
It saves the mp3 files to the same directory using the original name but with an .mp3 extension. | |
Based on: | |
https://www.tutorialexample.com/a-complete-guide-to-python-convert-mp4-to-mp3-with-moviepy-python-tutorial/ | |
Pre-requisites: | |
Python 3.7 | |
pip install moviepy |
OlderNewer