This modem is also sold as a MegaFon M150-2 USB dongle
Install the needed packages via opkg tool
opkg update
| import numpy as np | |
| from pathlib import Path | |
| import crcmod | |
| import sys | |
| def extract_sysex_messages(syx_path): | |
| commands_list = dict([ | |
| (0x71, "UPDATE_INIT"), | |
| (0x72, "UPDATE_WRITE"), | |
| (0x73, "UPDATE_FINISH"), |
| #include <MIDI.h> | |
| #define MidiInChannel 3 //default setting of MIDI 1 out channel for circuit tracks | |
| #define MidiDrumChannel 10 //drum 1 channel, other drums on 61,62,63 | |
| #define MidiDrumNote 60 //drum 1 channel, other drums on 61,62,63 | |
| #define pitchRelativeTo 60 //sample is unpitched for c4 = midi note 60 | |
| const float twelfthRootOfTwo = 1.0594631; //frequency ratio between adjacent semitones |
| import django_filters | |
| class CommaSeparatedValueFilter(django_filters.CharFilter): | |
| """Accept comma separated string as value and convert it to list. | |
| It's useful for __in lookups. | |
| """ | |
| def filter(self, qs, value): |
| class WithoutNoneFieldsSerializer(serializers.ModelSerializer): | |
| """ Exclude model fields which are ``None``. | |
| This eventually includes foreign keys and other special fields. | |
| Source: https://gist.github.com/Karmak23/5a40beb1e18da7a61cfc | |
| """ | |
| def to_native(self, obj): |
| class DRFLoggerMixin(object): | |
| """ | |
| Allows us to log any incoming request and to know what's in it. | |
| Usage: | |
| class MyOwnViewSet(DRFLoggerMixin, | |
| mixins.ListModelMixin, | |
| … | |
| viewsets.GenericViewSet): |
| #!/bin/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
| """Here's how you implement Foo(pkid) with postgres.orm 2.1.x. | |
| Discovered at PyTennesse with @wlphoenix @PederSchacht et al. | |
| """ | |
| class Foo(Model): | |
| typname = 'foo' | |
| def __new__(cls, pkid_or_record): |
Install and register the FreeTDS driver for unixODBC.
apt-get install tdsodbc
odbcinst -i -d -f /usr/share/tdsodbc/odbcinst.ini
(Optional) Test the DSN-less connection with pyodbc.
apt-get install python-pyodbc
>>> import pyodbc