Skip to content

Instantly share code, notes, and snippets.

View daGrevis's full-sized avatar
⌨️
Keyboard operator

Raitis Stengrevics daGrevis

⌨️
Keyboard operator
View GitHub Profile
$ node src/index.js -h
Options:
--make e.g. bmw [string] [required]
--fuel [string] [choices: "petrol", "gas", "diesel", "hybrid"]
--transmission [string] [choices: "manual", "automatic"]
--year-from e.g. 2006 [string]
--year-to e.g. 2009 [string]
--liters-from e.g. 2.0 [string]
--liters-to e.g. 2.5 [string]
--email-to [string] [default: "dagrevis@gmail.com"]
22 plugin(s) updated.
[================================================================]
Last update:
------------
- Colorizer:
* 5859f76 say thanks! (3 weeks ago)
- coc-css:
" Don't change working directory.
let g:ctrlp_working_path_mode = ''
" How CtrlP finds files. For now it uses git/hg when possible, but fallbacks to find.
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'cd %s && git ls-files -oc --exclude-standard'],
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
\ },
\ 'fallback': 'find %s -type f -o -type l'
serial.Port.prototype.init = async () => {
try {
console.log(await this.vendorRead( 0x8484))
await this.vendorWrite(0x0404 , 0)
console.log(await this.vendorRead( 0x8484))
await this.vendorWrite(0x0404 , 1)
await this.vendorWrite(0 , 1)
await this.vendorWrite(1 , 0)
await this.vendorWrite(2 , 0x24)
} catch (eee) {
00 - 33 ********************************************
01 - 37 **************************************************
02 - 22 *****************************
03 - 10 *************
04 - 0
05 - 0
06 - 0
07 - 0
08 - 0
09 - 0
},
],
),
),
}
},
)
},
}))
var serial = {};
function buf2hex(buffer) { // buffer is an ArrayBuffer
return Array.prototype.map.call(new Uint8Array(buffer), x => ('00' + x.toString(16)).slice(-2)).join('');
}
(function() {
'use strict';
serial.status = 0; //disconnected
nick | c
----------+-------
Aleksejs | 54188
daGrevis | 32604
ij | 25946
dianshi | 23906
snowball | 22033
zn | 20907
jurgenzz | 13936
emilsp | 11013
nick | c
----------+------
dianshi | 2292
Aleksejs | 1438
daGrevis | 1100
snowball | 694
zn | 662
siers | 556
vdk | 303
emilsp | 287
nick | c
----------+-------
Aleksejs | 54188
daGrevis | 32604
ij | 25946
dianshi | 23906
snowball | 22033
zn | 20907
jurgenzz | 13936
emilsp | 11013