Skip to content

Instantly share code, notes, and snippets.

View inkydragon's full-sized avatar

Chengyu Han inkydragon

View GitHub Profile
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 / 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:
@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 / 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 / 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 / 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 / Chinese osu! Wiki Completion.md
Created June 10, 2018 12:22
Chinese osu! Wiki Completion list

Chinese Wiki Completion

Articles

  • About
  • Accuracy
  • Article Styling Criteria
    • Images
    • News
  • BanchoBot
  • BBCode
@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
# 主题设置