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 python | |
"""Send AllSoundOff and ResetAllControllers on all JACK MIDI outputs on all channels.""" | |
import rtmidi | |
from rtmidi.midiconstants import (ALL_SOUND_OFF, CONTROL_CHANGE, | |
RESET_ALL_CONTROLLERS) | |
mo = rtmidi.MidiOut(rtapi=rtmidi.API_UNIX_JACK) | |
print(__doc__) |
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 python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import sys | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask.ext.httpauth import HTTPBasicAuth |
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 python | |
# | |
# noteon2osc.py | |
# | |
"""Send an OSC message when a MIDI Note On message is received.""" | |
import time | |
import liblo | |
from rtmidi.midiconstants import NOTE_ON | |
from rtmidi.midiutil import open_midiinput |
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
[Core] | |
name = rest_noembed | |
module = noembed | |
[Nikola] | |
compiler = rest | |
plugincategory = CompilerExtension | |
[Documentation] | |
author = Christopher Arndt |
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 python | |
# -*- coding: utf-8 -*- | |
"""Get a single char from console input in a blocking or non-blocking way.""" | |
from __future__ import print_function | |
import sys | |
import select | |
import tty | |
import termios |
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 python | |
"""Run either pyvenv or virtualenv depending on the version of Python used. | |
To use this with virtualenvwrappper, install it into a directory on your | |
``PATH`` as 'virtualenv-select' and add the following to your | |
``~/.bashrc``: | |
export VIRTUALENVWRAPPER_VIRTUALENV=virtualenv-select | |
.. note:: |
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
{# | |
Usage: | |
{{% audio src=http://example.com/my-track.mp3 %}} | |
Or: | |
{{% audio src=http://example.com/my-track.mp3 formats=mp3,ogg %}} | |
Sorry, your browser does not seem to support the HTML 5 audio element. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# coding=UTF-8 | |
from __future__ import division | |
import nltk | |
from collections import Counter | |
# This is a simple tool for adding automatic hashtags into an article title | |
# Created by Shlomi Babluki | |
# Sep, 2013 | |
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 python | |
# -*- coding: utf-8 -*- | |
# ntppeerstats.py | |
# | |
# Copyright 2016 Christopher Arndt <chris- at- chrisarndt -dot- de> | |
# | |
"""Get NTP daemon peer statistics and graph time offsets. | |
Documentation of the file format: |