Skip to content

Instantly share code, notes, and snippets.

@xiaocai10000
xiaocai10000 / README.md
Created February 20, 2017 02:37 — forked from Jxck/README.md
libuv TCP server/client sample

how to compile

$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
@xiaocai10000
xiaocai10000 / compact_expand_css_command.py
Created March 17, 2016 07:44 — forked from vitaLee/compact_expand_css_command.py
SublimeText command for compacting/expanding CSS rules
import sublime
import sublime_plugin
import re
class CompactExpandCssCommand(sublime_plugin.TextCommand):
def run(self, edit, action='compact'):
rule_starts = self.view.find_all('\{')
rule_ends = self.view.find_all('\}')