Skip to content

Instantly share code, notes, and snippets.

View inkydragon's full-sized avatar

inky inkydragon

View GitHub Profile
@inkydragon
inkydragon / 2024-Julia-Source-Code-Count.md
Last active February 11, 2024 17:35
Julia Source Code Count: Counts the lines of code in folders `base/`, `src/`, `test/`, in descending order.
@inkydragon
inkydragon / parser-test.jl
Last active February 3, 2024 20:55
Julialang/julia #parser issue tag; Maybe those tests could be add to JuliaSyntax.jl.
# SPDX-License-Identifier: MIT
using Test
using Base.JuliaSyntax
using Base.JuliaSyntax: Diagnostic
# copy from: https://github.com/JuliaLang/JuliaSyntax.jl/blob/a6f2d1580f7bbad11822033e8c83e607aa31f100/test/diagnostics.jl#L1-L12
function diagnostic(str; only_first=false, allow_multiple=false, rule=:all, version=v"1.6")
stream = JuliaSyntax.ParseStream(str; version=version)
JuliaSyntax.parse!(stream, rule=rule)
if allow_multiple
#const forecast_samples = [randn(30) for i in 1:10_000];
const forecast_samples_adj = [randn(30) for i in 1:10_000]';
function f(arr)
reduce(vcat, arr)
GC.gc(true)
GC.gc(false)
return Base.gc_live_bytes() / 2^20
end
@inkydragon
inkydragon / libgettextlib-0-21.dll.txt
Created March 2, 2023 08:18
Gettext-v0.21.0+0 Win Dll export
Microsoft (R) COFF/PE Dumper Version 14.29.30145.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file libgettextlib-0-21.dll
File Type: DLL
Section contains the following exports for libgettextlib-0-21.dll
@inkydragon
inkydragon / Learn-Julia-zh-cn.jl
Last active August 10, 2022 10:03
Learn Julia in Y minutes 社区翻译版。讨论帖:http://discourse.juliacn.com/t/topic/611
# 单行注释由「#」号开始
#= 以「#=」开头,用「=#」结尾就可以得到多行注释
多行注释可以嵌套。
=#
# VSC 代码高亮 patch'
####################################################
## 1. 原始类型与操作符
####################################################
@inkydragon
inkydragon / win-build-time.md
Created July 29, 2022 06:22
MSYS2 v.s. Cygwin build time

mingw64

build

Sysimage built. Summary:
Base ────────  26.613768 seconds 47.5633%
Stdlibs ─────  29.338653 seconds 52.4332%
Total ───────  55.954380 seconds
make[1]: Leaving directory '/v/julia/julia-mingw64'
Reading symbols from usr/bin/julia-debug...
(gdb) r
Starting program: /cygdrive/v/julia/usr/bin/julia-debug tmp/seg.jl
[New Thread 8292.0x9e8]
[New Thread 8292.0x56f8]
[New Thread 8292.0x6530]
[New Thread 8292.0x944]
[New Thread 8292.0x35d8]
[New Thread 8292.0x6af0]
[New Thread 8292.0x7474]

Keybase proof

I hereby claim:

  • I am inkydragon on github.
  • I am woclass (https://keybase.io/woclass) on keybase.
  • I have a public key ASA6eez34ZwRpzVcIc0aNZ0yZhybRA-WEZoc0LVZKgqtAAo

To claim this, I am signing this object:

@inkydragon
inkydragon / TeX_Book_Class.md
Last active May 18, 2021 12:05
关于小型翻译项目选用TeX问题的一些links

关于用TeX排版PDF一些想法

目前有两种关于翻译排版的观点:  

  • 用Markdown
  • 用LaTeX

我是支持用TeX进行排版的,所以建了这个gist. (那你干嘛写这么多缺点啊
欢迎讨论,哪个好,或者提出新的方向.

优点:  

@inkydragon
inkydragon / .zshrc
Created August 7, 2017 11:57
zsh的配置文件
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/wo/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# 主题设置