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
# -*- coding: utf-8 -*- | |
import os | |
import scrapy | |
import urllib.request | |
class AudioSpider(scrapy.Spider): | |
name = 'audio' | |
allowed_domains = ['english.cri.cn'] | |
start_urls = ['http://english.cri.cn/4926/more/11680/more11680.htm'] |
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
https://unix.stackexchange.com/a/536056/22322 | |
To get Auto-Resize Guest Display working you have to use 'VBoxVGA' | |
Stop VM if installed and running | |
Choose in VM Setting: Display > Screen > Graphics Controller > 'VBoxVGA' | |
Save | |
Start VM with Manjaro - Screen goes black. | |
hit CTRL+ALT+F2 to enter tty2 | |
logon |
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
replace last line of C-w and C-x w to | |
(when (not (current-line-empty-p)) (indent-for-tab-command))))) | |
;; use different bullet for a sub-list | |
(setq org-list-demote-modify-bullet | |
'(("-" . "+") ("+" . "*") ("*" . "-") ("1." . "+") ("1)" . "+") | |
("a." . "-") ("a)" . "-") ("A." . "-") ("A)" . "-"))) | |
;; Comment this line out, since it will cause the sub-list indentation problem, |
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
cmd="-e '(execute-kbd-macro (kbd \"C-c a a c\"))'" |
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
function zips -d 'zip to list(l)/extract(x)/create(c)' | |
set -l options 'l' 'L' 'c' 'x' 'X' | |
argparse -n zips $options -- $argv | |
or return | |
for a in $argv | |
if set -q _flag_l # list | |
unzip -l $a | |
else if set -q _flag_L # list Chinese characters | |
zips.py -l $a |
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
channels: | |
- https://mirrors.cloud.tencent.com/anaconda/cloud/conda-forge/ | |
- https://mirrors.cloud.tencent.com/anaconda/cloud/menpo/ | |
- https://mirrors.cloud.tencent.com/anaconda/cloud/pytorch/ | |
- https://mirrors.cloud.tencent.com/anaconda/cloud/bioconda/ | |
- https://mirrors.cloud.tencent.com/anaconda/pkgs/main/ | |
- https://mirrors.cloud.tencent.com/anaconda/pkgs/free/ | |
- ripl-org | |
- lebedov | |
- conda-forge |
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
" python-mode | |
Plugin 'klen/python-mode' | |
"default is python2 | |
"let g:pymode_python = 'python3' | |
let g:pymode_options_colorcolumn = 0 | |
Plugin 'wellle/targets.vim' |
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 | |
print_usage() | |
{ | |
cat <<EOF | |
$(basename $0) -- gif recorder and converter | |
Usage: $(basename $0) [-h] [-r] [-w] [-c] [time] [file] | |
-h to print this usage | |
-r to record a region |
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
# replace tk and tka functions with one single function: | |
function tk -d 'tmux kill-session all(default)/single(id)/multiple(id1 id2)/except(-e)/list(-l) sessions' | |
if test (ps -ef | grep -v grep | grep -i tmux | wc -l ) = 0 | |
echo "No tmux server is running!!!" | |
return | |
end | |
set -l options 'e' 'l' | |
argparse -n tk $options -- $argv | |
or return |
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 org-todo-keywords | |
;; !/@ meaning: https://orgmode.org/manual/Tracking-TODO-state-changes.html | |
'((sequence "TODO(t!)" "STARTED(s!)" "NEXT(n!)" "WAITING(w!)" "|" "DONE(d!)" "CANCELED(c@)") | |
;; multiple sets for one file | |
;; (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)""|" "FIXED(f)") | |
;; (sequence "|" "CANCELED(c)") | |
)) | |
# put this before txt README |