xmake can run and debug the given target program now.
We only need configure the debug mode to compile this target and run it.
e.g.
```lua
-- enable debug symbols
if is_mode("debug")
set_symbols("debug")
end
-- define target
target("demo")
set_kind("kind")
add_files("src/*.c")
```
And we compile and r继续阅读 »
Introduction
xmake lua has supported REPL(read-eval-print), we can write and test script more easily now.
Enter interactive mode:
```bash
$ xmake lua
1 + 2
3
a = 1
a
1
for _, v in pairs({1, 2, 3}) do
print(v)
end
1
2
3
```继续阅读 »
做了件无聊的事,做完发现有人做过了(https://www.v2ex.com/t/401615) ,记录一下。
GitHub用户名要求是
html
Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen
也就是满足正则 ^[0-9a-zA-Z]$|[0-9a-zA-Z][-0-9a-zA-Z]*[0-9a-zA-Z] ,
因为大小写不敏感,所以相当于 ^[0-9a-z]$|[0-9a-z][-0-9a-z]*[0-9a-z]
产生一位和两位的符合GitHub命名继续阅读 »