It's great for beginners. Then it turns into a mess.
This file contains 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 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 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 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 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 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 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 |
This file contains 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
class Master(SingleWindow): | |
defaults = [ | |
("border_focus", "#ff0000", "Border colour for the focused window."), | |
("border_normal", "#000000", "Border colour for un-focused winows."), | |
("border_width", 2, "Border width."), | |
("name", "xmonad-tall", "Name of this layout."), | |
] | |
_min_ratio = .1 | |
_max_ratio = .9 |
Pantheon is the desktop environment created for the elementary OS distribution. It is written from scratch in Vala, utilizing GNOME technologies with GTK 3 and Granite. All of Pantheon is working in NixOS and the applications should be available, aside from a few exceptions. To enable Pantheon, set
services.xserver.desktopManager.pantheon.enable = true;