Skip to content

Instantly share code, notes, and snippets.

View pureexe's full-sized avatar
💻
No

Pakkapon Phongthawee pureexe

💻
No
View GitHub Profile
@pureexe
pureexe / ROGKeymap.ino
Created October 9, 2023 11:28
Key mapping activation for ROG Game Genie using ESP32
// Please install these library first
// ESP32-BLE-GamePad - https://github.com/lemmingDev/ESP32-BLE-Gamepad
// NimBLE - https://github.com/h2zero/NimBLE-Arduino
#include <BleGamepad.h>
BleGamepad bleGamepad = BleGamepad("ESP32 - Stadia Controller");
void setup()
{
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders
=== Verbose logging started: 06/02/2021 10:09:04 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\MSIEXEC.EXE ===
MSI (c) (50:88) [10:09:04:924]: Resetting cached policy values
MSI (c) (50:88) [10:09:04:924]: Machine policy value 'Debug' is 0
MSI (c) (50:88) [10:09:04:924]: ******* RunEngine:
******* Product: C:\Users\pakkapon\AppData\Local\Temp\{7D6508DA-FCDD-4D88-8FCF-A4D4423BDDC9}\AMD StoreMI.msi
******* Action:
******* CommandLine: **********
MSI (c) (50:88) [10:09:04:925]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (50:88) [10:09:04:925]: Grabbed execution mutex.
MSI (c) (50:88) [10:09:04:932]: Cloaking enabled.
#!/bin/sh
#SBATCH --error=output/nsvf_trex.error.%j # STDOUT output is written in slurm.out.JOBID
#SBATCH --output=output/nsvf_trex.out.%j # STDOUT error is written in slurm.err.JOBID
#SBATCH --job-name=trex_nsvf # Job name
#SBATCH --mem=32GB # Memory request for this job
#SBATCH --nodes=1 # The number of nodes
#SBATCH --partition=gpu-cluster
#SBATCH --account=vision
#SBATCH --time=48:0:0 # Runing time 2 days
#SBATCH --gpus=1 # A number of GPUs
#!/bin/sh
#SBATCH --error=output/render_trex.error.%j # STDOUT output is written in slurm.out.JOBID
#SBATCH --output=output/render_trex.out.%j # STDOUT error is written in slurm.err.JOBID
#SBATCH --job-name=render_trex_nsvf # Job name
#SBATCH --mem=32GB # Memory request for this job
#SBATCH --nodes=1 # The number of nodes
#SBATCH --partition=gpu-cluster
#SBATCH --account=vision
#SBATCH --time=48:0:0 # Runing time 2 days
#SBATCH --gpus=4 # A number of GPUs
from __future__ import division
from __future__ import print_function
from utils.utils import *
from utils.mpi_utils import outputMPI, OrbiterDataset, evaluation, render_video
from skimage import io, transform
from utils.mlp import *
import argparse
from torch.utils.data import Dataset, DataLoader
from torch.utils.data.dataloader import default_collate
from __future__ import division
from __future__ import print_function
from utils.utils import *
from utils.mpi_utils import outputMPI, OrbiterDataset, evaluation, render_video
from skimage import io, transform
from utils.mlp import *
import argparse
from torch.utils.data import Dataset, DataLoader
from torch.utils.data.dataloader import default_collate
กก
กกช้าง
กกธูป
กกุธภัณฑ์
กง
กงกอน
กงการ
กงฉาก
กงสี
กงสุล
# somehow this program need header to make it runable
# if it not have this header the program will loop forever
.text
addi t6, t6 ,1
beq t6, x0 ,finish
addi t6, x0 ,-1
# Set value n to x10 by yourself here!
addi x10, x0, 3