Skip to content

Instantly share code, notes, and snippets.


Xiong-Jia.Le xiongjia

View GitHub Profile
xiongjia / uia-sample.ps1
Last active May 7, 2022
A simple sample for access the MS UIAutomation in PowerShell. #devsample #win
View uia-sample.ps1
#REQUIRES -Version 3.0
# This is a simple sample for access the MS UIAutomation in PowerShell.
# In this sample:
# 1. Load the MS UIA via System.Reflection.Assembly
# 2. Launch the AUT ( calc.exe )
# 3. Find the AutomationElement via the AUT Process Id
# 4. Find buttons via 'ClassName' and 'Name' property
# 5. Click the '1', '+', '1', '=' buttons.
# At last, we will get '2' in the result of calc App.
xiongjia / (README).md
Last active Mar 14, 2022
A simple knex sample #db
View (README).md

A simple knex sample

knexjs ( ) is SQL query builder.
This gist is a simple knexjs sample.


  1. Clone this gist to a local folder
  2. Run npm run build in the local folder

Usage & Database Schema

  • node index.js --createSchema : Create the database schema. (The default SQL client is sqlite3. The schema is created by db_schema.js )
xiongjia / 0_main.cxx
Last active Jan 22, 2022
A simple sample of Boost DLL #boost #devsample
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"
xiongjia / 0_main.cxx
Last active Nov 2, 2021
A simple sample of Boost Log #devsample #boost
View 0_main.cxx
* A simple sample of Boost Log
#pragma warning(push)
#pragma warning(disable:4819)
# include <boost/shared_ptr.hpp>
# include <boost/date_time/posix_time/posix_time_types.hpp>
# include <boost/log/trivial.hpp>
# include <boost/log/core.hpp>
xiongjia /
Last active Mar 23, 2021
Building freetype2 on Windows #devnotes


Building the freetype Windows 32 DLL & LIB for the Windows OpenJDK Compiling.

Get the freetype source code

Updating the Freetype Visual Studio solution settings

The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via Visual Studio 2015).

xiongjia / .gitignore
Last active Feb 24, 2020
Database schema for leetcode db problems #db
View .gitignore
xiongjia / CMakeLists.txt
Last active Oct 5, 2019
The example of Windows Job Objects #devsample #win
View CMakeLists.txt
# CMake build script
cmake_minimum_required(VERSION 2.8)
# project name & version
# common settings (Boost libraries)
if (MSVC)
# Enable the static libraries on Windows
foreach (flag_var
xiongjia / 0-read-ini.cpp
Last active Apr 18, 2019
Parse the UTF8 ".ini" file via the Boost property_tree #devsample #boost
View 0-read-ini.cpp
* Parse the UTF8 ".ini" file via the Boost property_tree
#include <string>
#include <fstream>
#if defined(__APPLE__)
# include <codecvt>
#endif /* defined(__APPLE__) */
xiongjia /
Created Jan 15, 2018 — forked from 52cik/
npm 淘宝镜像配置
npm set registry # 注册模块镜像
npm set disturl # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set chromedriver_cdnurl # chromedriver 二进制包镜像
npm set operadriver_cdnurl # operadriver 二进制包镜像
npm set phantomjs_cdnurl # phantomjs 二进制包镜像
npm set sass_binary_site # node-sass 二进制包镜像
npm set electron_mirror # electron 二进制包镜像
xiongjia /
Last active Nov 18, 2017
Cheatsheet - DEV Environment #devnotes




  • 管理多个 JDK, JRE 以及 build tools ( Maven, Gradle, 等) , 还有 Groovy 等
  • Github:
  • Notes:
    • Windows OS 上不太好用, 因为依赖 cygwin 基本可放弃
    • 中国区注意修改 CURL 的设置来适应特殊网络环境
  • curl 的 proxy 可以从 $http_proxy & $https_proxy读入