Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
# Tested with Ruby 1.9 | |
# Needs gem "guard" (https://github.com/guard/guard) | |
# Needs gem "guard-shell" (https://github.com/guard/guard-shell) | |
# Uses process "growlnotify" (http://growl.info/extras.php) | |
# Uses process "pdflatex" from standard TeXLive distribution | |
guard 'shell' do | |
watch(%r{(.+)\.tex}) do |m| | |
`growlnotify -m #{m[0]} Recompiling` | |
`pdflatex -interaction=batchmode #{m[0]} >/dev/null` |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
qApp->setStyle(QStyleFactory::create("fusion")); | |
QPalette palette; | |
palette.setColor(QPalette::Window, QColor(53,53,53)); | |
palette.setColor(QPalette::WindowText, Qt::white); | |
palette.setColor(QPalette::Base, QColor(15,15,15)); | |
palette.setColor(QPalette::AlternateBase, QColor(53,53,53)); | |
palette.setColor(QPalette::ToolTipBase, Qt::white); | |
palette.setColor(QPalette::ToolTipText, Qt::white); | |
palette.setColor(QPalette::Text, Qt::white); |
For the next error, install libtool | |
cc -g -Wall -Werror -I/usr/include/libnl3 -I/usr/include/libnl3 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/readline -g -O2 -lnl-3 -lnl-genl-3 -lnl-3 -lreadline -lpcap -lbfd -o dropwatch main.o lookup.o lookup_kas.o lookup_bfd.o | |
/usr/bin/ld: main.o: in function `free_netlink_msg': | |
/home/aneweraofwonder/srcs/dropwatch/src/main.c:254: undefined reference to `nlmsg_free' | |
/usr/bin/ld: main.o: in function `handle_dm_config_new_msg': | |
/home/aneweraofwonder/srcs/dropwatch/src/main.c:561: undefined reference to `genlmsg_parse' | |
/usr/bin/ld: /home/aneweraofwonder/srcs/dropwatch/src/main.c:570: undefined reference to `nla_get_u8' |