sudo apt install wget alien libjpeg62 libcurl4 libaudiofile1 libtinfo5 python mesa-opencl-icd xfonts-100dpi xfonts-75dpi
wget http://ftp.br.debian.org/debian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u1_amd64.deb
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/33/Everything/x86_64/os/Packages/l/libpng15-1.5.30-11.fc33.x86_64.rpm
fakeroot alien -vc libpng15-1.5.30-11.fc33.x86_64.rpm
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
| #!/bin/bash | |
| # This script rotates the screen and touchscreen | |
| # by Ruben Barkow-Kuder: https://gist.github.com/rubo77/daa262e0229f6e398766 | |
| #### configuration | |
| # find your Touchscreen device with `xinput` | |
| TouchscreenDevice="$(xrandr |grep eDP|cut -d" " -f1)" | |
| if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then |
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
| brew install pandoc | |
| brew tap homebrew/cask | |
| brew install --cask basictex | |
| eval "$(/usr/libexec/path_helper)" | |
| # Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin` | |
| sudo tlmgr update --self | |
| sudo tlmgr install texliveonfly | |
| sudo tlmgr install xelatex | |
| sudo tlmgr install adjustbox | |
| sudo tlmgr install tcolorbox |
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
| """ | |
| Simple implementation of a finite state machine. | |
| Author: Tang U-Liang | |
| Date: 2 Oct 2020 | |
| """ | |
| import attr | |
| from enum import Enum | |
| import inspect |
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
| 1)Get the packages required for converting the rpm package. | |
| sudo apt-get install alien dpkg-dev debhelper build-essential zlib1g-dev | |
| 2)Get and install libXp6. | |
| sudo add-apt-repository ppa:zeehio/libxp | |
| sudo apt-get update | |
| sudo apt-get install libxp6 | |
| 3) Extract the contents of the Maya installation package and change directory to its install/Packages directory. |
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
| #[macro_use] extern crate rocket; | |
| use std::env; | |
| use anyhow::Result; | |
| use rocket::State; | |
| use rocket::http::Status; | |
| use sqlx::{Pool, Postgres}; |
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
| { | |
| "chainId": "phoenix-1", | |
| "chainName": "Terra 2.0", | |
| "rpc": "https://terra-rpc.polkachu.com/", | |
| "rest": "https://phoenix-lcd.terra.dev/", | |
| "stakeCurrency": { | |
| "coinDenom": "LUNA", | |
| "coinMinimalDenom": "uluna", | |
| "coinDecimals": 6, | |
| "coinGeckoId": "terra-luna" |
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 os | |
| import arel | |
| from fastapi import FastAPI, Request | |
| from fastapi.templating import Jinja2Templates | |
| app = FastAPI() | |
| templates = Jinja2Templates("templates") | |
| if _debug := os.getenv("DEBUG"): |
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
| def is_valid(grid, r, c, k): | |
| not_in_row = k not in grid[r] | |
| not_in_column = k not in [grid[i][c] for i in range(9)] | |
| not_in_box = k not in [grid[i][j] for i in range(r//3*3, r//3*3+3) for j in range(c//3*3, c//3*3+3)] | |
| return not_in_row and not_in_column and not_in_box | |
| def solve(grid, r=0, c=0): | |
| if r == 9: | |
| return True |