Skip to content

Instantly share code, notes, and snippets.

View gengjiawen's full-sized avatar
🎯
Focusing

Jiawen Geng gengjiawen

🎯
Focusing
View GitHub Profile
C 5 hrs 11 mins █████████▏░░░░░░░░░░░ 44.0%
Markdown 1 hr 34 mins ██▊░░░░░░░░░░░░░░░░░░ 13.4%
Other 52 mins █▌░░░░░░░░░░░░░░░░░░░ 7.4%
JavaScript 45 mins █▎░░░░░░░░░░░░░░░░░░░ 6.4%
CMake 40 mins █▏░░░░░░░░░░░░░░░░░░░ 5.7%
@gengjiawen
gengjiawen / issues.txt
Last active November 7, 2019 08:56
Node.js master asan issue
=== debug test-crypto-dh-leak ===
Path: parallel/test-crypto-dh-leak
assert.js:378
throw err;
^
AssertionError [ERR_ASSERTION]: before=187871232 after=223272960
at Object.<anonymous> (/root/node/test/parallel/test-crypto-dh-leak.js:26:1)
at Module._compile (internal/modules/cjs/loader.js:1117:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
# Code Coverage Configuration
add_library(coverage_config INTERFACE)
option(CODE_COVERAGE "Enable coverage reporting" ON)
if(CODE_COVERAGE AND CMAKE_C_COMPILER_ID MATCHES "AppleClang|GNU|Clang")
# Add required flags (GCC & LLVM/Clang)
target_compile_options(coverage_config INTERFACE
-O0 # no optimization
-g # generate debug info
--coverage # sets all required flags
@gengjiawen
gengjiawen / result.md
Last active April 24, 2019 03:41
Yoga benchmark

Yoga benchmark

  • Time is mean
  • use basic benchmark
  • Phone model: vivo X20A
Method\Version 1.6.0 1.10.0 1.14.0 on master
Inflate 0.066ms 0.062ms 0.069ms
Measure 0.028ms 0.028ms 0.049ms
@gengjiawen
gengjiawen / README.md
Last active November 20, 2018 14:06
github graphql showcase

https://developer.github.com/v4/explorer/

{
  repository(owner: "nodejs", name: "node") {
    pullRequests(first: 10, states: [OPEN], orderBy: {field: CREATED_AT, direction: DESC}) {
      nodes {
        title
        url
 mergeable
@gengjiawen
gengjiawen / _vimrc
Last active June 6, 2020 02:37
my vim configuration
" gengjiawen's configuration
source $VIMRUNTIME/mswin.vim
behave mswin
" keep history
set history=1000
"set backup
set nobackup