View proxy.go
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
View tree-conv.js
'use strict';
let treeConv = () => {
let root, addNodes;
root = {};
addNodes = (args) => {
let nodeRoot;
nodeRoot = args.root;
for (let nodeItem of args.nodes) {
View .gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
View 0_main.cxx
/**
* A simple sample of Boost DLL
*/
#include <iostream>
#include "boost/shared_ptr.hpp"
#include "boost/function.hpp"
#include "boost/dll/import.hpp"
#include "1_plugin.hxx"
View gist:19007de7fed04b1f2af7f810a3ab993a
## ccl + quicklisp + SLIME,假设你一直用的 Emacs
mkdir c:\bin
cd c:\bin
curl -O ftp://ftp.clozure.com/pub/release/1.8/ccl-1.8-windowsx86.zip
curl -O http://beta.quicklisp.org/quicklisp.lisp
7z x ccl-1.8-windowsx86.zip ccl
ccl\wx86cl -l quicklisp.lisp
View LocalRun.cpp
/**
* Local(e)Run: Run application in specified locale (chs as hard-coded).
*
* Originial purpose: run fterm.exe in non-Chinese(PRC) locale.
*
* Author: feuvan@feuvan.net
*/
#include <stdio.h>
#include <tchar.h>
View CMakeLists.txt
# CMake build script
cmake_minimum_required(VERSION 2.8)
# project name & version
project(JobObj)
# common settings (Boost libraries)
if (MSVC)
# Enable the static libraries on Windows
foreach (flag_var
View .gitignore
*.sqlite
*.db
*.log
View .gitignore
*.sqlite
*.db
*.log
View launcher.vbs
' This .VBS is created for launch a console application without Window
' Executing Options
Const HIDDEN_WINDOW = 0
Const NORMAL_WINDOW = 1
Const MINIMIZED_WINDOW = 2
Const MAXIMIZE_WINDOW = 3
' Executing arguments.