Skip to content

Instantly share code, notes, and snippets.

View unsigned-nerd's full-sized avatar

unsigned_nerd unsigned-nerd

View GitHub Profile
@unsigned-nerd
unsigned-nerd / compile-th-latex-src.txt
Last active May 9, 2020 16:13
Compile Thai LaTeX Source File
$ xelatex p4bwcl.tex && xelatex p4bwcl.tex && xelatex p4bwcl.tex
@unsigned-nerd
unsigned-nerd / .sbclrc
Created April 20, 2019 19:43
.sbclrc to automatically load quicklisp
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
@unsigned-nerd
unsigned-nerd / regexgrouping.py
Created May 9, 2018 07:37
using re module to extract matched patterns from input string
#!/usr/bin/env python3
import re
text = "Singapore Japanese School (Nihonjin gakko)(SJS) - " + \
"West Coast Secondary Campus"
regex = re.compile(r"(.*)\((.*)\)[ ]*\((.*)\)[ ]*-[ ]*(.*)")
result = re.match(regex, text)
@unsigned-nerd
unsigned-nerd / loop_over_data-20180429.py
Last active April 29, 2018 15:10
Loop over data, date: 20180429
#!/usr/bin/env python3
data = {
'companies':
[
{
'name': 'central',
'officers': [
{'officer_name': 'a', 'salary': 15001},
{'officer_name': 'b', 'salary': 15002},
@unsigned-nerd
unsigned-nerd / signal-desktop.json
Last active November 20, 2017 07:56
/var/lib/oz/cells.d/signal-desktop.json
{
"path": "/usr/local/bin/signal-desktop"
, "xserver": {
"enabled": true
, "enable_tray": false
, "enable_notifications": true
}
, "networking":{
"type":"host"
}