Skip to content

Instantly share code, notes, and snippets.

View aixnr's full-sized avatar
🎯
Focusing

Aizan Fahri aixnr

🎯
Focusing
View GitHub Profile
@aixnr
aixnr / template.typ
Last active January 16, 2024 04:49
Typst Common Template
#set page("us-letter", margin: (x: 32pt, y: 32pt), columns: 2)
#set text(font: "Inter", size: 7pt)
#set par(leading: 1.25em, first-line-indent: 1em)
#show link: set text(blue)
// variable binding ------------------------------------------------------------
#let t_ored(body, fill: rgb("#ff4500")) = {
set text(fill)
[#body]}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="#" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--
How to use Pandoc
=================
@aixnr
aixnr / circuitpython_AHT20_ESP32_AdafruitIO.py
Last active December 26, 2021 20:21
A script to run on CircuitPython v7.x for reading sensor data from AHT20 and sending to Adafruit IO with ESP32 breakout board.
import time
import busio
import board
import digitalio
# Additional libraries for AHT20, ESP32 Airlift, requests, socket, and MQTT
import adafruit_ahtx0
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import adafruit_requests as requests
@aixnr
aixnr / aizancommons.sty
Last active March 29, 2021 23:36
Aizan's Custom LaTeX Commons
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{aizancommons}[2019/09/21 Aizan's Commons LaTeX package]
% Package declarations
% -------------------------------------------------------------------
\RequirePackage[utf8]{inputenc}
\RequirePackage[letterpaper, left=0.7in, right=0.7in, top=0.5in, bottom=0.5in]{geometry}
\RequirePackage{parskip} % disable the new paragraph indent
\RequirePackage{enumitem} % somehow fixes the linespacing for numbering
@aixnr
aixnr / i3status_new
Created June 26, 2019 13:22
New config for the i3status
general {
output_format = "i3bar"
colors = false
markup = pango
interval = 5
color_good = '#2f343f'
color_degraded = '#ebcb8b'
color_bad = '#ba5e57'
}
@aixnr
aixnr / i3config_new
Last active July 11, 2019 11:31
i3config latest changes
## Set Mod Key
set $mod Mod4
## Set Font for Windows Title
font pango:DejaVu Sans Mono 9
## Use Mouse+$mod to Drag Floating Windows to Their Wanted Position
floating_modifier $mod
## Application Shortcut Keys
@aixnr
aixnr / compton.conf
Last active July 9, 2019 02:27
Located at ~/.config/compton.conf
backend = "glx";
vsync = "opengl-swc";
shadow = true;
no-dock-shadow = true;
no-dnd-shadow = true;
clear-shadow = true;
shadow-radius = 10;
shadow-offset-x = -5;
@aixnr
aixnr / dunstrc
Created June 22, 2019 02:12
dunstrc (located at ~/.config/dunst/dunstrc)
[global]
monitor = 0
follow = mouse
geometry = "300x60-20+48"
indicate_hidden = yes
shrink = no
separator_height = 0
padding = 32
horizontal_padding = 32
frame_width = 2
% Required Packages
\usepackage[utf8]{inputenc}
\usepackage[letterpaper, left=0.7in, right=0.7in, top=0.5in, bottom=0.5in]{geometry}
\usepackage{parskip} % disable the new paragraph indent
\usepackage{enumitem} % somehow fixes the linespacing for numbering
\usepackage[dvipsnames]{xcolor} % enable color
\usepackage[none]{hyphenat} % disable hyphenation, might clash with other package
\usepackage[document]{ragged2e} % don't justify text
\usepackage{gensymb} % for generic degree commands
\usepackage{amssymb} % more fancy arrows