Skip to content

Instantly share code, notes, and snippets.

View Aadv1k's full-sized avatar
🔨
Building

Aadvik Pandey Aadv1k

🔨
Building
View GitHub Profile
@Aadv1k
Aadv1k / .vimrc
Last active February 23, 2024 06:10
A minimal, yet highly functional `.vimrc` I use everywhere (windows, linux, gvim)
syntax on
if has("gui_running")
set guifont=Iosevka\ Curly:h12
set guioptions-=m
set guioptions-=T
set guioptions-=r
endif
@siguremon
siguremon / split-str.l
Created August 27, 2011 04:38
split string function in common lisp
(defun split-str (string &optional (separator " "))
(split-str-1 string separator))
(defun split-str-1 (string &optional (separator " ") (r nil))
(let ((n (position separator string
:from-end t
:test #'(lambda (x y)
(find y x :test #'string=)))))
(if n
(split-str-1 (subseq string 0 n) separator (cons (subseq string (1+ n)) r))