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
| use std::collections::HashMap; | |
| use std::fs; | |
| use std::ops::Index; | |
| use std::os::unix::io::RawFd; | |
| use std::os::unix::prelude::OsStrExt; | |
| use std::path::PathBuf; | |
| use std::sync::mpsc::Receiver as SyncReceiver; | |
| use std::sync::mpsc::Sender as SyncSender; | |
| use std::path::Path; | |
| use core::time::Duration; |
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
| RELEASE="15.2.0" | |
| mkdir /tmp/iosevka-font/v$RELEASE | |
| cd /tmp/iosevka-font/v$RELEASE | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-$RELEASE.zip | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-aile-$RELEASE.zip | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-curly-$RELEASE.zip | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-curly-slab-$RELEASE.zip | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-etoile-$RELEASE.zip | |
| wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-fixed-$RELEASE.zip |
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
| /* make canon; ./canon | aplay -r 44100 -f U8 */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #define rs (1.0/44100.0) | |
| #define fr(x) (440*pow(2,(x-57)*(1.0/12))) | |
| #define s(x, n) sin((x=(x+fr(n)*rs))*6.2831853) | |
| #define tf (((1.0/rs)*60.)*.25/160.0) | |
| #define gv(c) (c-(c>'9'?('a'-10):'0')) | |
| #define gct(i) (gv(ct[(i)*3]) << 8)+(gv(ct[(i)*3+1]) << 4)+(gv(ct[(i)*3+2])) |