Skip to content

Instantly share code, notes, and snippets.

@knowuh
knowuh / photo.py
Last active May 28, 2023 10:49
Blender script to turn an image data block into 3D cubes...
import bpy
import colorsys
"""
cubify-image.py - Turns each pixel of an image into a scaled cube.
Noah Paessel | @knowuh - updated on 2022-02-13 (test w Blender 3.1b)
MIT license http://opensource.org/licenses/MIT
WARNING: This script will generate a thousands objects (one per image pixel)
I recommend only using it with image with less than 40,000 pixels (200x200).
@lschmierer
lschmierer / dark_fusion.py
Last active May 5, 2024 07:46 — forked from QuantumCD/Qt 5 Dark Fusion Palette
Qt5 Dark Fusion Palette for Python
qApp.setStyle("Fusion")
dark_palette = QPalette()
dark_palette.setColor(QPalette.Window, QColor(53, 53, 53))
dark_palette.setColor(QPalette.WindowText, Qt.white)
dark_palette.setColor(QPalette.Base, QColor(25, 25, 25))
dark_palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53))
dark_palette.setColor(QPalette.ToolTipBase, Qt.white)
dark_palette.setColor(QPalette.ToolTipText, Qt.white)
@briandk
briandk / CONTRIBUTING.md
Created March 18, 2016 20:29
A basic template for contributing guidelines that I adapted from Facebook's open source guidelines

Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

We Develop with Github

@rxseger
rxseger / psipdump.py
Created June 22, 2016 05:50
MPEG TS (transport stream) ATSC (over the air digital television broadcast) PSIP (program information) Python script
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Show PSIP data (and other packets) from MPEG TS streams from ATSC broadcasts
# Warning: very rough, incomplete, you're probably better off using VLC 3.0 (show Media Information,
# go to Codec Details, then scroll down to the EPG (electronic program guide) sections)
import sys
import struct
def decodeTSpacket(packet):
@rxseger
rxseger / file_atsc_rx2.grc
Created June 22, 2016 07:32
Enhanced file_atsc_rx.grc, exploded view with additional debug/diagnosis blocks for testing
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.9'?>
<flow_graph>
<timestamp>Tue Jul 22 14:34:09 2014</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@rxseger
rxseger / file_atsc_rx2.py
Created June 22, 2016 07:33
Generated file_atsc_rx2.py from file_atsc_rx2.grc
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# see https://gist.github.com/rxseger/4c6fce39cffa149424a4780a37fae426
##################################################
# GNU Radio Python Flow Graph
# Title: Receive ATSC from UHD
# Generated: Wed Jun 22 00:27:50 2016
##################################################
from gnuradio import analog
@eyllanesc
eyllanesc / asyncprovider.py
Last active June 2, 2024 09:40
Examples of QtMultimedia in Qt6
import asyncio
from functools import cached_property, partial
from PyQt6.QtCore import (
pyqtSlot as Slot,
)
from utils import FrameProvider
import cv2
@royshil
royshil / ndi.py
Created February 5, 2024 04:37
Simplest cyndlid NDI + OpenCV Python example
# pip install cyndilib opencv-python
import cv2
from cyndilib.wrapper.ndi_recv import RecvColorFormat, RecvBandwidth
from cyndilib.finder import Finder
from cyndilib.receiver import Receiver
from cyndilib.video_frame import VideoFrameSync
finder = Finder()
# Create a Receiver without a source