o===============================================================================oo===============================================================================o | . . . . || . . . . | | : : : : || : : : : | | : . : . : . : || : . : . : . : | | .' . . .' . . .' . . .' . || .' . . .' . . .' . . .' . |
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/bin/env python2 | |
| # This script uses mido <https://pypi.python.org/pypi/mido/1.1.3> to | |
| # transform a midi file into a C structure to be played by a | |
| # microcontroller firmware for example | |
| from mido import MidiFile | |
| import sys | |
| if len(sys.argv) != 2: |
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
| #!/bin/sh | |
| if [ _$1 == _ ] | |
| then | |
| echo "Usage: $0 <output_if>" | |
| exit 1 | |
| fi | |
| sysctl -w net.ipv4.ip_forward=1 | |
| iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE |
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
| ;;; | |
| ;;; COLOGRAM.SCM -*-scheme-*- This File is written by Friedemann Wolpert 2010 | |
| ;;; You can contact the Author using the following eMail: Friedemann@MedienKunstOnline.De | |
| ;;; Project Entry for "Mach Flott den Schrott 2", Heise Magazin | |
| ; | |
| ; Found on MedienKunstOnline.De thanks to the Wayback Machine : | |
| ; https://web.archive.org/web/20150502123253/http://medienkunstonline.de:80/Cologram_Uk.scm | |
| (define (script-fu-cologram image layer rows-per-sec dpi-setting img-resize want-sharpen want-grid want-adjframe frameforecolor framerearcolor adjframedist adjframewidth want-cutframe cutframedist cutframewidth | |
| ;anchor-top anchor-down anchor-left anchor-right format |
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/bin/env python3 | |
| # Libraries | |
| import re | |
| import sys | |
| import json | |
| import urllib.request | |
| from urllib.parse import parse_qs | |
| # Get video id from command line |
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
| #!/bin/sh | |
| if [ "$1" == "" ] | |
| then | |
| # Check devices to avoid error in next commands | |
| NB_DEVICES=$(adb devices -l | grep model:Quest_2 | wc -l) | |
| if [ $NB_DEVICES == 0 ] | |
| then | |
| echo "Device not found" | |
| exit |
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/bin/env python3 | |
| # This script tries to find edges of a stereocard based on the algorithm | |
| # proposed by Martin Schub at https://photo-3d.groups.io/g/main/message/125478 | |
| import sys | |
| import numpy as np | |
| from scipy.signal import argrelmax | |
| from PIL import Image | |
| import matplotlib.pyplot as plt |
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/bin/env python3 | |
| # Script to convert (parallel) SBS or MPO image into a SBS image displayable by QooCam EGO device | |
| # TODO: Add a thumbnail that could be displayed by the device | |
| import argparse | |
| import os | |
| import sys | |
| parser = argparse.ArgumentParser(description='SBS to QoocCam EGO') |
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/bin/env python3 | |
| ################################# | |
| # Anaglyph to SBS toy converter # | |
| ################################# | |
| import cv2 | |
| import numpy as np | |
| import argparse |
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/bin/env python3 | |
| """ | |
| Simple live plot reading serial data | |
| Graph is not exact as it can be altered by delays in serial communication and plot time, but it is useful nonetheless | |
| Usage example: ./live_serial_plot.py --tty /dev/ttyUSB0 --plot var1 --plot var2 --plot_n vars3 2 --save ./log.csv | |
| Data on the serial line for the above command: [note: space after prefix is optional] | |
| var1 1.4427 |
OlderNewer