This file contains 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
Hampton Bay mara fan (dawnsun remote) | |
Uses unmarked chip | |
{ 400, { 34, 1 }, { 1, 2 }, { 2, 1 }, true } (rc-switch) | |
aaaa is address dips, 0=on 1=off | |
111111000110aaaa01111110 Power On (actually just toggles) | |
111111000110aaaa01111101 Power Off (actually just toggles) | |
111111000110aaaa01110100 Fan High |
This file contains 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
#!/bin/bash | |
dl_and_install_build_prereq() { | |
# Prerequisites: https://openwrt.org/docs/guide-developer/quickstart-build-images | |
# Download and install prerequisites for compiling firmware | |
sudo apt-get -y update && sudo apt-get -y upgrade | |
sudo apt -y install subversion g++ zlib1g-dev build-essential git python time | |
sudo apt -y install libncurses5-dev gawk gettext unzip file libssl-dev wget | |
sudo apt -y install libelf-dev ecj fastjar java-propose-classpath |
This file contains 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 -*- | |
""" | |
Copyright 2018-09-09, Wolfgang Kühn | |
Fast inter-process communication (ipc) for Python (CPython, PyPy, 2.7, 3.6+) on MS-Windows. | |
It uses shared memory and eventing. | |
Example rpc style synchronization: | |
Server (rpc provider): |
This file contains 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
import numpy as np | |
import scipy.linalg | |
# see http://eprints.maths.ox.ac.uk/926/1/NA-10-03.pdf | |
# and http://www.chebfun.org/examples/approx/CF30.html | |
def rcf(Fx,m,n,nfft,K,domain=(-1,1)): | |
# CONTROL PARAMETERS | |
dim = K+n-m | |
nfft2 = nfft//2 |
This file contains 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
from objc_util import * | |
import ctypes | |
import numpy as np | |
import matplotlib.image | |
import io,ui | |
AVAudioEngine=ObjCClass('AVAudioEngine') | |
AVAudioSession=ObjCClass('AVAudioSession') | |
def setup(): | |
error=ctypes.c_void_p(0) | |
session=AVAudioSession.sharedInstance() |
This file contains 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
# Retrieved from https://gist.githubusercontent.com/omz/9882a00abf59c6009fa4/raw/139afad596c6d46f2f104b16120eefbb36e9960c/Audio%2520Recorder.py on Sat 26-Dec-2015 07:22:53 | |
# Olaf, 26 Dec 2015, updated to use objc_util instead of ctypes; also removed seemingly superfluous AVAudioSession | |
import objc_util, os | |
def main(): | |
NSMutableDictionary = objc_util.ObjCClass('NSMutableDictionary') | |
settings = NSMutableDictionary.dictionary() | |
kAudioFormatMPEG4AAC = 1633772320 | |
settings.setObject_forKey_(kAudioFormatMPEG4AAC, 'AVFormatIDKey') |
This file contains 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
DEBUG = -O3 | |
CC = g++ -std=c++ | |
INCLUDE = -I/usr/local/include | |
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |
LDFLAGS = -L/usr/local/lib | |
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | |
SRC = m63.cpp | |
OBJ = $(SRC:.cpp=.o) | |
BINS = $(SRC:.cpp=) |
This file contains 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
/************************************************************* | |
************* nRF24 Cheerson CX-10 Tx Code ****************** | |
************* (Green & Blue boards) ****************** | |
************************************************************** | |
by goebish on RCgroups.com | |
Thanks to: | |
PhracturedBlue, victzh, hexfet, closedsink, midelic, Hasi ... |
This file contains 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
uci set wireless.radio0.channel=8 | |
uci set wireless.radio0.htmode=HT40- | |
uci set wireless.radio0.noscan=1 | |
uci set wireless.radio0.bursting=1 | |
uci set wireless.radio0.ff=1 | |
uci set wireless.radio0.compression=1 | |
uci set wireless.radio0.xr=1 | |
uci set wireless.radio0.ar=1 | |
uci set wireless.radio0.txpower=20 |
This file contains 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
# Copyright 2014 Dan Krause | |
# | |
# 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, |
NewerOlder