Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
/* db_add.c: storing | |
written by rock <shirock@residence.educities.edu.tw>, 1999.11.29 | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <gdbm.h> | |
#define datum_set(um, buf) { um.dptr = buf; um.dsize = strlen(buf); } |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#include "StdAfx.h" | |
#include <Setupapi.h> | |
#pragma comment(lib, "Setupapi.lib") | |
#include "SerialPort.h" | |
SerialPort::SerialPort(void) : end_of_line_char_('\n') | |
{ | |
} |
Thanks to this article by Christoph Berg
Directories and files
~/
# Lighttpd as a CORS reverse proxy to Transmission XML-RPC API | |
server.modules = ( | |
"mod_rewrite", | |
"mod_setenv", | |
"mod_proxy" | |
) | |
server.document-root = "/var/www" | |
# CORS preflighted request (HTTP OPTIONS) not handled yet by Transmission : Emulate a 200 OK | |
$HTTP["request-method"] =~ "^OPTIONS$" { |
/***************************************************************************** | |
* _ _ ____ _ | |
* Project ___| | | | _ \| | | |
* / __| | | | |_) | | | |
* | (__| |_| | _ <| |___ | |
* \___|\___/|_| \_\_____| | |
* | |
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. | |
* | |
* This software is licensed as described in the file COPYING, which |
# Cleanup old alternatives | |
update-alternatives --remove-all cc | |
update-alternatives --remove-all c++ | |
update-alternatives --remove-all gcc | |
update-alternatives --remove-all g++ | |
update-alternatives --remove-all clang | |
update-alternatives --remove-all clang++ | |
update-alternatives --remove-all icc | |
update-alternatives --remove-all icc++ |