Skip to content

Instantly share code, notes, and snippets.

View aquastripe's full-sized avatar
👻

Hao-Ting Li aquastripe

👻
  • National Chung Cheng University
View GitHub Profile
@aquastripe
aquastripe / postfix_templates_python
Created April 10, 2022 18:16
Custom Postfix Templates for PyCharm
.tqdm : Wrap with tqdm(...)
ANY → tqdm($expr$)
@aquastripe
aquastripe / imagenet1000_clsidx_to_labels.txt
Created January 8, 2022 00:31 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@aquastripe
aquastripe / README.md
Last active December 2, 2021 03:28
My Python template for Custom Postfix Templates plugin
@aquastripe
aquastripe / connect_bluetooth_headphones.sh
Created June 29, 2021 20:25 — forked from egelev/connect_bluetooth_headphones.sh
Connect bluetooth headphones on Ubuntu 18.04
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
}
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
temp="${temp%\"}"
temp="${temp#\"}"
@aquastripe
aquastripe / hugo-auto-deoply.yml
Created May 23, 2021 20:59 — forked from lisez/hugo-auto-deoply.yml
如何使用 Github Actions 自動部署 Hugo
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/
# author: lisez <[email protected]>
name: Auto publish to public site
# 只有推送到 master 才自動化
on:
push:
branches:
- master
@aquastripe
aquastripe / .bashrc
Last active December 26, 2021 02:57 — forked from michaelklapper/.bashrc
Color up your bash history with the date time information of called commands.
MY_BASH_BLUE="\033[0;34m" #Blue
MY_BASH_NOCOLOR="\033[0m"
HISTTIMEFORMAT=`echo -e ${MY_BASH_BLUE}[%F %T] $MY_BASH_NOCOLOR `
HISTSIZE=20000
HISTFILESIZE=20000
@aquastripe
aquastripe / .ideavimrc
Last active April 22, 2022 14:33 — forked from remorsecs/.ideavimrc
.ideavimrc settings for PyCharm IdeaVim plugin
set nu
set rnu
nmap zf :action ReformatCode<CR>
imap zf <Esc>:action ReformatCode<CR>
nmap zh ^
nmap zl $
imap z; <END>:
imap z, <END>,
@aquastripe
aquastripe / actionlist.vim
Created February 15, 2021 21:42 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>