## Create a new config/initialisation file
Create a user-level initialisation file init.el
:
touch .emacs.d/init.el
(use-srfis '(1 69)) | |
(read-hash-extend #\# | |
(lambda (c port) | |
(define ht (make-hash-table eqv?)) | |
(define (ht-ref key) | |
(hash-table-ref ht key (lambda () | |
(define sym (gensym)) | |
(hash-table-set! ht key sym) | |
sym))) | |
(define (hash-key x) |
RESULTS = {} | |
def add_and_store(a, b, name): | |
"""Process and save to DB""" | |
result = a + b | |
RESULTS[name] = result | |
def add(a, b): |
""" | |
Script to convert unittest asserts into plain asserts. | |
Either reads the file from the path passed as first parameter, or reads from stdin if no parameter is given. | |
""" | |
import functools | |
import sys | |
import libcst as cst |
import libcst | |
import difflib | |
from termcolor import colored | |
class RenameTransformer(libcst.CSTTransformer): | |
def __init__(self, rename_pairs): | |
self.rename_pairs = rename_pairs | |
self.restore_keywords = [] |
def move_thing(src_mod, dest_mod, find_str): | |
import os | |
import rope.base.project | |
from rope.base import libutils | |
from rope.refactor import move | |
project = rope.base.project.Project(os.getcwd()) | |
origin = libutils.path_to_resource(project, src_mod) | |
destination = libutils.path_to_resource(project, dest_mod) |
from rope.base import libutils | |
import rope.base.project | |
from rope.refactor.rename import Rename | |
project = rope.base.project.Project('.') | |
resource = libutils.path_to_resource(project, './sample.py') | |
renamer = Rename(project, resource, 81) # offset=81 | |
changes = renamer.get_changes('Fnord') | |
project.do(changes) |
1. Update all package system | |
sudo xbps-install -Suv | |
2. add non-free repo | |
sudo xbps-install -Rs void-repo-nonfree | |
3. Software & utilities | |
sudo xbps-install -Rs xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils vlc pipewire libspa-bluetooth noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra libreoffice-writer libreoffice-calc libreoffice-impress rhythmbox neofetch ntfs-3g gimp inkscape lm_sensors wget udisks2 gvfs mtpfs gvfs-mtp gvfs-gphoto2 xtools WoeUSB xz unrar qt5-wayland nano ffmpeg Kooha handbrake inxi streamlink | |
4. Install chrome gnome, gnome menu For Gnome & extension |
The Eternal Flame (God Wrote in Lisp) | |
Bob Kanefsky / Julia Ecklar | |
F G C | |
I was taught assembler in my second year of school. | |
F G C | |
It's kinda like construction work, with a toothpick for a tool. | |
F G C Em Am | |
So when I made my senior year, I threw my code away, |