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
# slightly modified version of | |
# https://github.com/iond2v/NML-parser | |
import os | |
import re | |
import html #for converting string codes | |
import sys | |
def process_folder(folder_name): |
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
# MicroPython script to grab @[email protected]'s now playing metadata and display it on a Pimoroni Pico GFX Pack | |
# requires WIFI_CONFIG.py and network_manager.py as outlined at https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/gfx_pack | |
# see https://fosstodon.org/@axwax/109910396644259122 for details | |
import WIFI_CONFIG | |
import time | |
from gfx_pack import GfxPack | |
from network_manager import NetworkManager | |
import urequests | |
import uasyncio |
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 | |
# Very quickly thrown together script to add (already followed) Mastodon users to a list. | |
# YMMV - it probably needs some tweaking to work for you | |
# relies on Mastodon.py and needs a "credentials.py" file with the variables access_token and api_base_url | |
# I created my access token following the docs at https://docs.joinmastodon.org/client/token/ and https://docs.joinmastodon.org/client/authorized/ | |
# but you might be able to get the access token by going to Settings|Development|New Application (I haven't tried though). | |
# As there is a rate limit for usage of the API I wouldn't try to import lots of users at once - I imported 132 users and it worked though... | |
# @[email protected] |
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
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] |
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
# mlx90640_pygamer learn guide: | |
# * https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera/circuitpython-thermal-camera# | |
# | |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
# | |
# Adapted by David Glaude for 240x240 screen. | |
# SPI and I2C pins changed by AxWax for Pimoroni Pico Breakout Garden, MLX90640 Breakout and 1.3" LCD Breakout combo. | |
# | |
# 1) RedRobotics Pico to Zero Adaptor v0.2: |
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
# A second CV out for the Raspberry Pi Pico MIDI to CV converter by @AxWax | |
# | |
# Demo: https://www.youtube.com/watch?v=aGfQHL1jU4I | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# | |
# The NeoPixel code requires the pi_pico_neopixel library by Blaž Rolih | |
# which can be found at https://github.com/blaz-r/pi_pico_neopixel |
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
# MIDI to CV converter for Raspberry Pi Pico and MCP4725 DAC by @AxWax | |
# | |
# Demo: https://www.youtube.com/watch?v=aGfQHL1jU4I | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# | |
# | |
# Wiring: |
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
# MIDI note visualiser for Raspberry Pi Pico and TM1638 LED&KEY module by @AxWax | |
# | |
# Demo: https://twitter.com/AxWax/status/1480659594342899713 | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# as well as the MicroPython TM1638 LED Driver library by mcauser from | |
# https://github.com/mcauser/micropython-tm1638 | |
# |
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
{ | |
"basics": { | |
"name": "Axel Minet", | |
"label": "Web Developer", | |
"summary": | |
"Axel is a web developer based in Cambridge (UK), specialising in PHP, MySQL, WordPress and Javascript. He has an Audio Engineering background and is an avid maker, with a strong interest in machine learning, electronics and IoT systems.", | |
"website": "https://axwax.uk", | |
"email": "[email protected]", | |
"location": { | |
"city": "Berching", |
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
<?php | |
// add event to google calendar | |
echo '<a href="' . addToGoogleCalendar("Let's test this", "next wednesday 2pm", "next wednesday 4pm", "right here, right now", "bla blah rhubarb http://axwax.de") . '">next weds 2pm</a><br/>'; | |
echo '<a href="' . addToGoogleCalendar("Breakfast at Tiffany's", "tomorrow 8am") . '">Breakfast at Tiffany\'s</a>'; | |
function addToGoogleCalendar($title='', $startdate='', $enddate='', $location='', $details='') | |
{ | |
$startdate = ($startdate ? $startdate : time()); | |
$startdate = (is_numeric($startdate) ? $startdate : strtotime($startdate)); |
NewerOlder