Skip to content

Instantly share code, notes, and snippets.

Carl X. Su bcbcarl

  • Taipei City, Taiwan
Block or report user

Report or block bcbcarl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View secret-es.mdown
bcbcarl /
Created Jun 30, 2016 — forked from john2x/
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.


bcbcarl /
Created Apr 27, 2013
TCP server / client 簡易版本
import socket
import sys
HOST, PORT = "localhost", 9999
data = " ".join(sys.argv[1:])
# Create a socket (SOCK_STREAM means a TCP socket)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
bcbcarl /
Created Apr 24, 2013
使用 i3 做為 KDE 視窗管理員

使用 i3 做為 KDE 視窗管理員


建立停用 Plasma 的桌面項目:

cp /usr/share/autostart/plasma-desktop.desktop ~/.config/autostart/plasma-desktop.desktop
echo "Hidden=true" >> ~/.config/autostart/plasma-desktop.desktop

接著取消停用 Plasma:

You can’t perform that action at this time.