It's great for beginners. Then it turns into a mess.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import requests | |
# will be updated monthly. | |
top_url = "https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.min.json" | |
data = requests.get(top_url).json() | |
packs = [d["project"] for d in data["rows"]] | |
for _ in range(3): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ql:quickload '(clack caveman2 datafly sxql)) | |
(in-package :cl-user) | |
(defpackage rest-test | |
(:use :cl | |
:clack | |
:caveman2 | |
:datafly | |
:sxql)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq elfeed-feeds | |
'("http://feeds.feedburner.com/bact" | |
"https://kitty.in.th/index.php/feed/" | |
"https://www.unzeen.com/feed/" | |
"https://dev.to/feed/mrchoke" | |
"https://dev.to/feed/iporsut" | |
"http://thep.blogspot.com/feeds/posts/default" | |
"https://naiwaen.debuggingsoft.com/feed/" | |
"https://www.blognone.com/taxonomy/term/10564/feed" | |
"https://www.blognone.com/taxonomy/term/5345/feed")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; How to run | |
;; sbcl --load download-peertube-videos.lisp | |
(ql:quickload :jonathan) | |
(ql:quickload :dexador) | |
(ql:quickload :alexandria) | |
(ql:quickload :asdf) | |
(import 'alexandria:assoc-value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/home/thawes/programs/bin/sbcl --script | |
(load "/home/thawes/.sbclrc") | |
(require 'cl-json) | |
;; this is a pathname in CL | |
(defparameter *file* #P"/home/thawes/src/sources/BibleOrgSys/DataFiles/DerivedFiles/BibleBookOrders_Tables.json") | |
(json:decode-json-from-source *file*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Line Ending \crlf | |
\crlf | |
I'm also a Windows Line Ending \crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# customizable | |
LIST_DATA="#{window_name} #{pane_title} #{pane_current_path} #{pane_current_command}" | |
FZF_COMMAND="fzf-tmux -p --delimiter=: --with-nth 4 --color=hl:2" | |
# do not change | |
TARGET_SPEC="#{session_name}:#{window_id}:#{pane_id}:" | |
# select pane |