This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "tree_node.h" | |
using StringTreeNode = TreeNode<std::string>; | |
int main(int argc, char const *argv[]) { | |
auto root = std::make_shared<StringTreeNode>(""); | |
auto a = root->Attach("a", "123"); | |
a->Attach("x", "foo"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ghost | |
import ( | |
"reflect" | |
"testing" | |
) | |
type BarFunc func() int | |
type Foo struct{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import okhttp3.FormBody | |
import java.beans.Introspector | |
import java.lang.reflect.Method | |
object OjbkHttp { | |
@Target(AnnotationTarget.FIELD) | |
@Retention(AnnotationRetention.RUNTIME) | |
annotation class FormField ( | |
val fieldName: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
__author__ = 'deadblue' | |
import logging | |
logging.basicConfig( | |
level=logging.INFO, datefmt='%H:%M:%S', | |
format='[%(asctime)s] %(message)s' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script fragment of cross-compiling for Synology NAS | |
# cross compile toolchain installed at /opt/i686-pc-linux-gnu/ | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-ar /usr/local/bin/i686-pc-linux-gnu-ar | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-c++ /usr/local/bin/i686-pc-linux-gnu-c++ | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-cpp /usr/local/bin/i686-pc-linux-gnu-cpp | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-g++ /usr/local/bin/i686-pc-linux-gnu-g++ | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-gcc /usr/local/bin/i686-pc-linux-gnu-gcc | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-gcc-ar /usr/local/bin/i686-pc-linux-gnu-gcc-ar | |
ln -s /opt/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-gcc-nm /usr/local/bin/i686-pc-linux-gnu-gcc-nm |