Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
[Tuya][]'s IR blasters, like the [ZS08][], have the ability to both learn and blast generic IR codes. These IR codes are given to the user as an opaque string, like this:
A/IEiwFAAwbJAfIE8gSLIAUBiwFAC+ADAwuLAfIE8gSLAckBRx9AB0ADBskB8gTyBIsgBQGLAUALA4sB8gRAB8ADBfIEiwHJAeARLwHJAeAFAwHyBOC5LwGLAeA97wOLAfIE4RcfBYsB8gTyBEAFAYsB4AcrCYsB8gTyBIsByQHgPY8DyQHyBOAHAwHyBEAX4BVfBIsB8gTJoAMF8gSLAckB4BUvAckB4AEDBfIEiwHJAQ==
Not much is known about the format of these IR code strings, which makes it difficult to use codes obtained through other means (such as a
/* | |
Encode an NEC IR command into code for Tuya ZS06/ZS08/TS1201 | |
Usage: encode_nec("<four bytes in hex, two bytes of address followed by two bytes of command>") | |
If your address and/or command is just one byte (8 bits), append the complement of the byte after it to make it two bytes. | |
Example: | |
encode_nec("04fb08f7") // encodes nec address 0x04 and command 0x08 | |
See: |
import axios from 'axios'; | |
import Config from './app.config'; | |
const instance = axios.create({ | |
baseURL: Config.apiPath, | |
}); | |
/** | |
* Catch the AunAuthorized Request | |
*/ |
--require spec_helper |
MAIL_SERVER = '' | |
USERNAME = '' | |
PASSWORD = '' | |
MAILBOX = 'Spam' | |
MAX_DAYS = 7 # Deletes messages older than a week | |
import imaplib | |
import datetime | |
today = datetime.date.today() |
VB6 and VBA come with no support for function pointers.
Also, when you wish to execute a function in a dll using the Declare function, you can only call functions created by the Steadcall calling conversation.
These constraints can be avoided by using the DispCallFunc API. The DispCallFunc is widely used in VB6 when erasing the history of IE. Although the DispCallFunc is known as API for calling the IUnknown interface, in fact, you can also perform other functions other than COM by passing the NULL to the first argument.
As explained in the http://msdn.microsoft.com/en-us/library/ms221473(v=vs.85).aspx , the DispCallFunc argument is as follows.
Installing Python 3.7.4 on Raspbian =================================
As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
Install the required build-tools (some might already be installed on your system).