- DF(layer) デフォルトレイヤーを変更。テンキーモード、GAMEモードなど
- MO(layer) 押している間だけレイヤーを変更
- LM(layer, mod) As MO(layer) but with mod active
- LT(layer, kc)
- TG(layer) Toggles the layer (enables it if no active, and vise versa)
- TO(layer) Activates layer and deactivates all other layers
- TT(layer) Momentarily activates layer if held, toggles it if tapped repeatedly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this file is test. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FieldAlias | |
#列挙タイプのエイリアス定義 | |
#ex define_alias_enum(:original, :alias, {0 => "NG", 1 => "OK", nil => "-", other: "不明"}) | |
###from | |
#def receipt_status | |
# case receipt | |
# when 0 | |
# "-" | |
# when 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ModelFormat | |
#fields = [ | |
# ["column1", :method1], | |
# ["column2", :method2], | |
# ["column3", [:method3_1, :method3_2]], | |
#] | |
def define_csv(fields) | |
define_method :to_csv do | |
headers, columns = fields.transpose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE_URL='http://www.nichibi-chinese.com' | |
LIST_URL='http://www.nichibi-chinese.com/web-lesson' | |
LIST=$(curl ${LIST_URL} \ | |
| egrep '<li class=\"page_item page-item-\d*\">' \ | |
| gsed 's/.*<a href=\"\(.*\)\">\(.*\)<\/a><\/li>.*/\1,\2/' \ | |
| gsed 's/\s\+/_/g' \ | |
| grep -v '%' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const svg = (width, height, opts, f) => { | |
return tag('svg', Object.assign( | |
{}, | |
{width: `${width}px`, height: `${height}px`}, | |
opts | |
), f) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ETH_POOL_URL=https://ethermine.org/miners/XXXXXXX | |
SLACK_CH=XXXXXXX | |
wget $ETH_POOL_URL -O - 2>/dev/null \ | |
| w3m -dump -cols 2000 -T 'text/html' \ | |
| grep -E 'Unpaid Balance.*ETH' \ | |
| slack-cli -d $SLACK_CH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Shiftを単体で押したときに、(/)キーを送信する。(左Shiftは(、右Shiftは) )", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] |
Cursor Control社のLaser Trackball X19もしくはX25 PS/2 & USBタイプ
https://www.cursorcontrols.com/products/product-range/trackballs/laser-trackballs/
OlderNewer