- Install dependencies:
$ pkg install git make
cd
into home folder:$ cd ~
- Clone
termux-nerd-install
:$ git clone https://github.com/notflawffles/termux-nerd-install.git
cd
intotermux-nerd-install
:$ cd termux-nerd-install
- Build installer:
$ make install
- List available fonts:
$ termux-nerd-installer list available
- Select a font you want from the list. For example, I want to install
fira-code
to my termux. - Install font:
$ termux-nerd-installer install fira-code
- Use font:
$ termux-nerd-installer set fira-code
- Restart termux
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
services: | |
minio: | |
image: quay.io/minio/minio:latest | |
command: server /data --console-address ":9001" | |
ports: | |
- 9000:9000 | |
- 9001:9001 | |
environment: | |
MINIO_ROOT_USER: <ROOT_USERNAME> | |
MINIO_ROOT_PASSWORD: <ROOT_PASSWORD> |
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
-- barbarbar338 | |
library ieee; | |
use ieee.std_logic_1164.all; | |
entity jk_flip_flop is | |
port ( | |
clk : in std_logic; | |
j : in std_logic; | |
k : in std_logic; | |
q : out std_logic; |
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
-- barbarbar338 | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity main_counter is | |
Port ( | |
clk_in : in std_logic; -- Basys3 100MHz clock | |
reset : in std_logic; | |
clk_out : out std_logic; | |
count : out std_logic_vector(2 downto 0) -- 3-bit counter |
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
-- barbarbar338 | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity dff is | |
Port ( | |
clk : in std_logic; | |
reset : in std_logic; | |
d : in std_logic; | |
q : out std_logic |
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
-- barbarbar338 | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
use IEEE.NUMERIC_STD.ALL; | |
entity freq_divider is | |
Port ( | |
clk_in : in std_logic; -- 100MHz clock input | |
reset : in std_logic; | |
clk_out : out std_logic -- 2Hz clock output |
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
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
const double pi = acos(0) * 2; | |
class Pendulum { | |
private: | |
double length; |
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
#include <iostream> | |
#include <vector> | |
#include <fstream> | |
#include <sstream> | |
#include <map> | |
#include <algorithm> | |
using namespace std; | |
// Using pointers to pass the vector by reference |
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
#include <iostream> | |
/* | |
used vectors instead of arrays. | |
It's easier to work with vectors | |
because of their dynamic size. | |
~ barbarbar338 | |
*/ | |
#include <vector> |
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
/* | |
You might need to change the plotter | |
history size to see everything cleaner. | |
Here is a good tutorial for this: | |
https://youtu.be/qrfpPuw2W3A | |
*/ | |
const int analogPin = A0; // Clock output pin | |
const int threshold = 512; // Midpoint (~2.5V for a 5V signal) |
NewerOlder