Skip to content

Instantly share code, notes, and snippets.

View inkydragon's full-sized avatar

Chengyu Han inkydragon

View GitHub Profile
@inkydragon
inkydragon / osu! Wiki Completion Template.md
Last active June 11, 2018 04:03
osu! Wiki Completion List Template

Wiki Completion

Articles

  • About
  • Accuracy
  • Article Styling Criteria
    • Images
    • News
  • BanchoBot
  • BBCode
@inkydragon
inkydragon / Learn-Julia-zh-cn.jl
Last active April 12, 2025 05:23
Learn Julia in Y minutes 社区翻译版。讨论帖:http://discourse.juliacn.com/t/topic/611
# 单行注释由「#」号开始
#= 以「#=」开头,用「=#」结尾就可以得到多行注释
多行注释可以嵌套。
=#
# VSC 代码高亮 patch'
####################################################
## 1. 原始类型与操作符
####################################################
@inkydragon
inkydragon / testset.jl
Last active May 1, 2019 10:39
patch for `MLStyle.jl`
# test driven development
# TestSet for `@when` + `@otherwise`
using MLStyle
using Test
using Random
#=
Test help macro/functions
=#
@inkydragon
inkydragon / deep-into-repr.jl
Created July 10, 2019 06:13
Why `repr(Expr(:$, :a))` gives `":(\$(Expr(:\$, :a)))"`.
# TL; DR:
#= 1 - AST printing Rules =#
# https://github.com/JuliaLang/julia/blob/master/base/show.jl#L741-L763
## Abstract Syntax Tree (AST) printing ##
# Summary:
# print(io, ex) defers to show_unquoted(io, ex)
@inkydragon
inkydragon / LSystem.py
Created August 28, 2019 05:34
Lindenmayer system
from math import sin, cos, pi
import matplotlib.pyplot as pl
from matplotlib import collections
class L_System(object):
def __init__(self, rule):
info = rule['S']
for i in range(rule['iter']):
ninfo = []
for c in info:

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:

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]
@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'
@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