- Install Termux from F-Droid. This part is important, not from Google Play Store. GPlay restricts some functionality of Termux.
- Upgrade dependencies:
pkg update && pkg upgrade - To access device storage, run this command. It's needed to access created LaTeX and PDF files:
termux-setup-storage - cd into local storage:
cd ~/storage/shared - Create LaTeX project folder. We'll save our files here and access them from this folder from our device:
mkdir LaTeX - Install TeX Live installer:
pkg install texlive-installer - Install TeX Live. Important note, do not change any option here:
termux-install-tl - Fix missing binaries:
texlinks - cd into home directory:
cd ~
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
| enum Difficulty { | |
| EASY | |
| MEDIUM | |
| HARD | |
| } | |
| Function GetMaxNumberByDifficulty { | |
| [CMDLetBinding()] | |
| Param( | |
| [Difficulty]$Difficulty |
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
| $Port = 8080; | |
| $StaticDir = "./public"; | |
| $Listener = New-Object System.Net.HttpListener; | |
| $Listener.Prefixes.Add("http://localhost:$Port/"); | |
| $Listener.Start(); | |
| If ($Listener.IsListening) { |
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
| import type { FC } from "react"; | |
| import { useLanyard } from "react-use-lanyard"; | |
| export const Status: FC = () => { | |
| const { loading, status } = useLanyard({ | |
| userId: "952574663916154960", // Put your Discord user ID here | |
| socket: true, | |
| }); | |
| const getStatus = () => { |
NewerOlder