Skip to content

Instantly share code, notes, and snippets.

View Josverl's full-sized avatar

Jos Verlinde Josverl

View GitHub Profile
@josheinstein
josheinstein / InstallClickOnceApp.cs
Created July 19, 2012 15:57
Install ClickOnce application programmatically (C#)
using System;
using System.Collections.Generic;
using System.Deployment.Application;
using System.Linq;
using System.Text;
using System.Threading;
namespace InstallClickOnceApp
{
@DraTeots
DraTeots / ComPort over Network.md
Last active July 13, 2024 13:54
ComPort over Network
@hjwp
hjwp / conftest.py
Created June 30, 2015 15:41
pytest: print fixture output after test runs
import pytest
@pytest.mark.hookwrapper
def pytest_pyfunc_call(pyfuncitem):
yield
print('pyfunc call after')
if 'watch_logs' in pyfuncitem.funcargs:
print(pyfuncitem.funcargs['watch_logs']())
@hongkongkiwi
hongkongkiwi / dhcp_lease_mqtt_publish
Created August 19, 2016 10:15
DHCP MQTT Lease Publish on Asus Merlin router. Put the script wherever you want and put the dnsmasq.conf.add into /jffs/configs
#!/bin/sh
if [ "$#" -ne 4 ]; then
echo "Illegal number of parameters"
exit 1
fi
MQTT_CAFILE="/mnt/sda1/ssl/ca.crt"
MQTT_SERVER="<SERVER_HERE>"
MQTT_PORT="8883"
<!DOCTYPE html>
<html>
<head><title>SOUND</title></head>
<body>
<div>Frequence: <span id="frequency"></span></div>
<script type="text/javascript">
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var oscillatorNode = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
@benjmin-r
benjmin-r / 01_README.md
Last active January 5, 2021 17:06
Sonic Pi Intro Workshop

This collection of files exists to serve you as starting point in exploring different sounds and how they're programmed in Sonic Pi.
Copy & Paste them into your Sonic Pi editor and start tweaking the values to change the sound.

Keyboard Shortcuts

The Sonic Pi integrated editor has a lot of keyboard shortcuts. A handy list of all shortcuts is integrated in the tutorial browser or online on github.

Attack, Decay, Sustain, Release

This image explains nicely, the four important parameters to controlling played sounds in Sonic Pi.

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active June 29, 2024 01:12
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
# runs on MicroPython (and Python)
# get file and folder information and return this as JSON
# params : folder , traverse subdirectory , output format, gethash
# intended to allow simple processing of files
# jos_verlinde@hotmail.com
import uos as os, json
import uhashlib,ubinascii
import logging
logging.basicConfig(level=logging.DEBUG)
@sulianov
sulianov / spotify-tracks-to-google-music-tracks.py
Last active December 5, 2021 14:34
Using Selenium+Python sign in to Spotify, grab liked tracks, sign in to Google Music, add Spotify tracks if missing.
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.implicitly_wait(10)
#open spotify
driver.get('https://open.spotify.com/collection/tracks')
@nebelgrau77
nebelgrau77 / MicroPython on STM32F4xx.md
Last active June 13, 2024 15:44
how to install MicroPython on cheap STM32F4xx boards ("black pill", "black F407")

Installing MicroPython on inexpensive STM32F4xx boards

This tutorial will explain step by step how to build and deploy MicroPython on STM32F407xx and STM32F411CEU boards, using both DFU mode over USB, as well as SWD with ST-Link and OpenOCD in case you can't get the board into DFU mode (happened to me with the "black pill").

It should be applicable to other boards, such as the other "black pill" STM32F401, Nucleo boards etc., provided you can find an appropriate board definition to build.

1. clone the MicroPython repo: