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
| // | |
| // wavecuepoint.c | |
| // Created by Jim McGowan on 29/11/12. | |
| // Turned into command-line utility by David Hilowitz on 19/11/16. | |
| // [email protected] | |
| // [email protected] | |
| // | |
| // This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) | |
| // and creates a new .wav file with embedded cue points for each location. The code is standard, portable C. | |
| // |
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
| # wavfile.py (Enhanced) | |
| # Date: 20190213_2328 Joseph Ernest | |
| # | |
| # URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476 | |
| # Source: scipy/io/wavfile.py | |
| # | |
| # Added: | |
| # * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch | |
| # See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl | |
| # * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser) |
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
| """ | |
| Websockets client for micropython | |
| Based very heavily on | |
| https://github.com/aaugustin/websockets/blob/master/websockets/client.py | |
| """ | |
| import ubinascii as binascii | |
| import urandom as random | |
| import ure as re |
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
| import requests | |
| import time | |
| from selenium import webdriver | |
| from PIL import Image | |
| from io import BytesIO | |
| url = "https://unsplash.com" | |
| driver = webdriver.Firefox(executable_path=r'geckodriver.exe') | |
| driver.get(url) |
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
| # µPing (MicroPing) for MicroPython | |
| # copyright (c) 2018 Shawwwn <[email protected]> | |
| # License: MIT | |
| # Internet Checksum Algorithm | |
| # Author: Olav Morken | |
| # https://github.com/olavmrk/python-ping/blob/master/ping.py | |
| # @data: bytes | |
| def checksum(data): | |
| if len(data) & 0x1: # Odd number of bytes |
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
| """ Shows how to use flask and matplotlib together. | |
| Shows SVG, and png. | |
| The SVG is easier to style with CSS, and hook JS events to in browser. | |
| python3 -m venv venv | |
| . ./venv/bin/activate | |
| pip install flask matplotlib | |
| python flask_matplotlib.py | |
| """ |
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/local/bin/dumb-init /bin/bash | |
| set -euxo pipefail | |
| VIDEO_URL=${VIDEO_URL:-$1} | |
| ICECAST_URL=${ICECAST_URL:-$2} | |
| ICECAST_DESC=${ICECAST_DESC:-Re-Stream of ${VIDEO_URL}} | |
| ICECAST_NAME=${ICECAST_NAME:-Re-Stream} | |
| ICECAST_WEBSITE=${ICECAST_WEBSITE:-$VIDEO_URL} |
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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name radio.example.com; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Server $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| location / { |

