## Create a new config/initialisation file
Create a user-level initialisation file init.el
:
touch .emacs.d/init.el
""" | |
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, |
;; License: MIT | |
(uiop:define-package #:ningle-upload | |
(:use #:cl) | |
(:import-from #:cl-fad) | |
(:import-from #:ningle) | |
(:import-from #:spinneret) | |
(:import-from #:log4cl)) | |
(in-package #:ningle-upload) |
(define-easy-handler (submission-form :uri "/" :default-request-type :get) () | |
(setf (hunchentoot:content-type*) "text/html") | |
(with-html-output-to-string (s) | |
(:html | |
(:head | |
(:title "File Processor") | |
(:style :rel "stylesheet" :type "text/css" | |
(str (css-lite:css (("body") (:background-color "#666")))))) | |
(:body | |
(:form :action "/process" |