Cursor Control社のLaser Trackball X19もしくはX25 PS/2 & USBタイプ
https://www.cursorcontrols.com/products/product-range/trackballs/laser-trackballs/
[hy@hyPro]% sudo nrfutil dfu usb-serial -pkg ble_master.zip -p /dev/tty.usbmodem14125 | |
Password: | |
Traceback (most recent call last): | |
File "/usr/local/bin/nrfutil", line 11, in <module> | |
sys.exit(cli()) | |
File "/Library/Python/2.7/site-packages/click/core.py", line 764, in __call__ | |
return self.main(*args, **kwargs) | |
File "/Library/Python/2.7/site-packages/click/core.py", line 717, in main | |
rv = self.invoke(ctx) |
Cursor Control社のLaser Trackball X19もしくはX25 PS/2 & USBタイプ
https://www.cursorcontrols.com/products/product-range/trackballs/laser-trackballs/
{ | |
"description": "Shiftを単体で押したときに、(/)キーを送信する。(左Shiftは(、右Shiftは) )", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] |
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 |
'use strict' | |
const svg = (width, height, opts, f) => { | |
return tag('svg', Object.assign( | |
{}, | |
{width: `${width}px`, height: `${height}px`}, | |
opts | |
), f) | |
} |
#!/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 '%' \ |
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 |
module FieldAlias | |
#列挙タイプのエイリアス定義 | |
#ex define_alias_enum(:original, :alias, {0 => "NG", 1 => "OK", nil => "-", other: "不明"}) | |
###from | |
#def receipt_status | |
# case receipt | |
# when 0 | |
# "-" | |
# when 1 |