- Create or find a gist that you own.
- Clone your gist (replace
<hash>
with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
#define PIN_IR_IN 8 | |
#define SIGNAL_TIMEOUT 8000 | |
#define DATA_LEN 512 | |
short buf[DATA_LEN]; | |
void clearBuf(int range) | |
{ | |
for (int i = 0; i < range; i++) | |
buf[i] = 0; |
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |
#define PIN_IR_OUT 4 | |
#define PIN_LED_OUT 2 | |
#define SIGNAL_LEN 7 | |
// AEHA format | |
#define SIGNAL_LEADER_HIGH_TIME 3200 | |
#define SIGNAL_LEADER_LOW_TIME 1600 | |
#define SIGNAL_ON_HIGH_TIME 400 | |
#define SIGNAL_ON_LOW_TIME 1200 | |
#define SIGNAL_OFF_HIGH_TIME 400 |
<hash>
with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist
pm は power management のことだと思われる。Yosemite までは、System Preferences
->Energy Saver
から、スリープまでの時間とディスプレイオフまでの時間を別に設定できたのだが、El Capitan ではコンピューターのスリープの時間が設定できなくなり、恐らくディスプレイのオフの時間と一緒になっている。これだとディスプレイだけオフしてバッテリーを節約したいけど、起動に時間のかかるスリープはして欲しくないという使い方ができない。 (一番下に比較画像を載せた)
pmset
コマンドを使えばこれを設定できる。
pmset -g
Last updated: April 2021
Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22
).
Depending on the age and/or popularity of the video, not all formats will be available.
Resolution | AV1 HFR High | AV1 HFR | AV1 | VP9.2 HDR HFR | VP9 HFR | VP9 | H.264 HFR | H.264 |
---|---|---|---|---|---|---|---|---|
MP4 | MP4 | MP4 | WebM | WebM | WebM | MP4 | MP4 |