Skip to content

Instantly share code, notes, and snippets.

View yashkathe's full-sized avatar

Yash Kathe yashkathe

View GitHub Profile
@yashkathe
yashkathe / backtracking_template.py
Created October 15, 2023 18:55 — forked from RuolinZheng08/backtracking_template.py
[Algo] Backtracking Template & N-Queens Solution
def is_valid_state(state):
# check if it is a valid solution
return True
def get_candidates(state):
return []
def search(state, solutions):
if is_valid_state(state):
solutions.append(state.copy())
@yashkathe
yashkathe / 30-touchpad.conf
Created October 22, 2022 08:26 — forked from miguelmota/30-touchpad.conf
Arch linux enable tap to click on touchpad
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
EndSection