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/python3 | |
import gi | |
gi.require_version('Gst', '1.0') | |
from gi.repository import GObject, Gst | |
print(Gst.version()) | |
def bus_call(bus, msg, *args): | |
#print("BUSCALL", msg, msg.type, *args) | |
if msg.type == Gst.MessageType.EOS: |
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 | |
# | |
# Seamless loop test | |
# Copyright (c) 2015 Arnaud Loonstra <[email protected]> | |
# | |
# This is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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/python3 | |
# WARNING: This is a very nast hack into passing the pointer of an | |
# object through a socket thus bypassing any copy. The garbage | |
# collector can remove an object before its being received so you | |
# should know what you are doing! | |
import threading | |
from PIL import Image, ImageDraw, ImageTk | |
import zmq | |
import time |
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
if __name__ == "__main__": | |
c = MlmClient() | |
c.connect("tcp://192.168.1.223:9999", 1000, "PythonTest") | |
c.set_consumer("stream", ".+") | |
msg = c.recv().popstr() | |
while (msg == "hello"): | |
print(msg) | |
msg = c.recv().popstr() |
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
/* | |
ESPTest for ZMTP + ZRE + ZOCP | |
Original author: Ronald Hof <[email protected]> | |
license: MPLv2 | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#include <string.h> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
#salaris_graph { | |
background-color: black; | |
color: white; | |
width: 400px; | |
height: 400px; | |
padding: 1em; |
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/python3 | |
# | |
# A Python Asyncore Dispatcher class for ZeroMQ (PyZMQ) | |
# Copyright 2016 Arnaud Loonstra <[email protected]> | |
# | |
# I know Asyncore is sort of deprecated but it still used in many | |
# frameworks. Therefore this class makes it easy to implement | |
# ZeroMQ sockets into those frameworks. | |
# | |
# This Source Code Form is subject to the terms of the Mozilla Public |
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/python3 | |
# | |
# Cast screen to kodi, sort of like Chromecast functionality | |
# | |
# original version found on reddit: | |
# https://www.reddit.com/r/kodi/comments/5googi/push_stream_of_linux_desktop_to_kodi_using_vlc/ | |
import sys | |
import time | |
import os |
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
// -------------------------------------------------------------------------- | |
// Example Zyre distributed chat application | |
// | |
// Copyright (c) 2010-2014 The Authors | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the "Software"), | |
// to deal in the Software without restriction, including without limitation | |
// the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
// and/or sell copies of the Software, and to permit persons to whom the |
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
# author: A.J. Loonstra <[email protected]> | |
# Test to decode rokoko UDP data | |
# | |
import struct | |
import socket | |
from collections import namedtuple | |
import liblo | |
import time | |
UDP_IP = "0.0.0.0" |