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
bcbcarl / 00_destructuring.md
Created Jun 30, 2016 — forked from john2x/00_destructuring.md
Clojure Destructuring Tutorial and Cheat Sheet
View 00_destructuring.md

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

@bcbcarl
bcbcarl / tcpclient.py
Created Apr 27, 2013
TCP server / client 簡易版本
View tcpclient.py
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 / kde_i3.md
Created Apr 24, 2013
使用 i3 做為 KDE 視窗管理員
View kde_i3.md

使用 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:

You can’t perform that action at this time.