Skip to content

Instantly share code, notes, and snippets.

View bcbcarl's full-sized avatar

Carl X. Su bcbcarl

  • Taipei City, Taiwan
View GitHub Profile
@bcbcarl
bcbcarl / kde_i3.md
Created April 24, 2013 14:08
使用 i3 做為 KDE 視窗管理員

使用 i3 做為 KDE 視窗管理員

Plasma

建立停用 Plasma 的桌面項目:

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

接著取消停用 Plasma:

@bcbcarl
bcbcarl / tcpclient.py
Created April 27, 2013 10:33
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)
try:
@bcbcarl
bcbcarl / 00_destructuring.md
Created June 30, 2016 15:21 — forked from john2x/00_destructuring.md
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.

Vectors