Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / google_assistant.py
Created December 4, 2017 00:40
Use the google assistant SDK to trigger custom actions in Home Assistant using JSON over MQTT, the adapter intent parser python library, and picoTTS for audio responses
#!/usr/bin/env python
# Copyright (C) 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@sdague
sdague / discover_scenes.py
Created November 21, 2016 11:53
Discover hue groups and scenes
#!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@Zulko
Zulko / 3D_piano_from_midi.py
Last active April 9, 2024 05:51
Turn a piano MIDI file into a basic 3D animated piano video.
"""
Turn a piano MIDI file into a basic 3D animated piano video.
See the result here:
I am leaving it as a script because it is not tested on enough MIDI files yet.
Zulko 2014
This script is released under a Public Domain (Creative Commons 0) licence.
@fdemmer
fdemmer / split.py
Created August 14, 2012 19:22
Quick and dirty mp4 file cutting by cue sheet.
#!/usr/bin/python
"""Quick and dirty mp4 file cutting by cue sheet.
The cue sheet shall look somewhat like this::
PERFORMER "Calexico & ORF Radio-Symphonieorchester"
TITLE "FM4 Radiosession mit Calexico"
FILE "mp4_rs_calexico_final_2_q4a_200152.mp4" MP3
TRACK 01 AUDIO