Skip to content

Instantly share code, notes, and snippets.

View yulon's full-sized avatar
🐟
Touching fishes...

Yulon yulon

🐟
Touching fishes...
View GitHub Profile
@yulon
yulon / kuery.js
Created September 14, 2021 15:18
function _basicKuery(args, isQueryAll) {
var root, sel
for (let i = 0; i < args.length; i++) {
if (sel === undefined && typeof args[i] === 'string') {
sel = args[i]
continue
}
if (!root) {
root = args[i]
}
@yulon
yulon / CMakeLists.txt
Last active August 31, 2019 00:28
CMakeLists.txt with using Vcpkg
cmake_minimum_required(VERSION 3.0)
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
endif()
if(NOT DEFINED VCPKG_TARGET_TRIPLET)
string(FIND ${CMAKE_GENERATOR} "Visual Studio" VISUAL_STUDIO_IN_CMAKE_GENERATOR)
#!/bin/sh
gn gen out.gn/libv8_x86 --args="is_debug=false symbol_level=0 is_component_build=false v8_monolithic=true v8_use_external_startup_data=false treat_warnings_as_errors=false v8_enable_i18n_support=false target_cpu=\"x86\" v8_target_cpu=\"x86\""
ninja -C out.gn/libv8_x86 v8_monolith
gn gen out.gn/libv8_x64 --args="is_debug=false symbol_level=0 is_component_build=false v8_monolithic=true v8_use_external_startup_data=false treat_warnings_as_errors=false v8_enable_i18n_support=false target_cpu=\"x64\" v8_target_cpu=\"x64\""
ninja -C out.gn/libv8_x64 v8_monolith
@yulon
yulon / ybepp.md
Last active January 24, 2020 22:07
Yulon's Browser Extensions Privacy Policy

Yulon's Browser Extensions Privacy Policy

Effective date: May 31, 2018

Thank you for using my extensions!

So far all the programs will not collect any of your information.

If there is a change in the future, you will be informed by a prominent alert box.

@yulon
yulon / wh_kb.cpp
Last active October 3, 2017 05:58
struct _wh_keyboard_flags {
unsigned repeat: 16;
unsigned scan_code: 8;
unsigned extended: 1;
unsigned _reserved: 4;
unsigned alt_down: 1;
unsigned previous: 1;
unsigned up: 1;
};
@yulon
yulon / pac.js
Last active February 7, 2019 02:13
var rules = {
"amazon.com": true,
"solidfiles.com": true,
"fembed.com": true,
"pushwhy.com": true,
"playstation.com": true,
"playstation.net": true,
"sonyentertainmentnetwork.com": true,
"doubleclick.net": true,
@yulon
yulon / opengl-stage-api.md
Last active December 6, 2015 21:54
OpenGL stage API