Skip to content

Instantly share code, notes, and snippets.

View babyking's full-sized avatar

Baby King babyking

View GitHub Profile
Key Name Resulting Keystroke
{F1} - {F24} Function keys. For example: {F12} is the F12 key.
{!} !
{#} #
{+} +
{^} ^
{{} {
{}} }
{Enter} ENTER key on the main keyboard
{Escape} or {Esc} ESCAPE
----- BEGIN LICENSE -----
MinBan
Single User License
EA7E-806395
318133A3 8F202A61 B0DBB8EB 21E17D2E
97D540E6 34079344 54620650 71E47589
9EF87857 345F5042 0D728DD1 8D8C979D
6A4F4DD2 67BB0345 746CA297 515BDA91
6CEAB381 4DB56700 D77DCD14 977BD326
1AC309ED 0EB414B8 4730DA10 99DBD291
@babyking
babyking / gist:31ce2ca29135e1b660fd88af09ef0dcc
Created November 4, 2016 02:51
ruby $开头的特殊变量
[Ruby]$: 是什么意思?
ruby comes with a set of predefined variables
$: = default search path (array of paths)
其他Ruby特殊变量:
$! 最近一次的错误信息
$@ 错误产生的位置
$_ gets最近读的字符串
gist rb - a gist with a filename of "gist.rb" (ie. Ruby syntax).
gist .rb - a gist with a filename of "gist.rb" (ie. Ruby syntax).
gist foo.rb - a gist with a filename of "foo.rb".
gist ipsum lorem - a gist with no filename/syntax and a description of "ipsum lorem"
gist - ipsum lorem - a gist with no filename/syntax and a description of "ipsum lorem"
gist .rb ipsum lorem - a gist with a filename of "gist.rb" and a description of "ipsum lorem"
gist foo.rb ipsum lorem - a gist with a filename of "foo.rb" and a description of "ipsum lorem"
gist rb ipsum lorem - a gist with no filename and a description of "rb ipsum lorem"
gist - foo.rb ipsum lorem - a gist with no filename and a description of "foo.rb ipsum lorem"
@babyking
babyking / private.xml
Last active December 14, 2015 07:49 — forked from lucifr/private.xml
keyremap4macbook配置文件.主要将capslock键映射到一个虚拟键F19, 以这个F19做最终的功能键扩展. 与目前的ctrl shift option command自带的组合快捷键,均不冲突!
<root>
<!--
<devicevendordef>
<vendorname>thinkpad_trackpoint</vendorname>
<vendorid>0x17ef</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>my_thinkpad_trackpoint</productname>
<productid>0x6009</productid>
</deviceproductdef>