Skip to content

Instantly share code, notes, and snippets.

View jchook's full-sized avatar

Wes Roberts jchook

  • Meter AI, Inc.
  • Tübingen, Germany
View GitHub Profile
@jchook
jchook / monitrc.vim
Created May 15, 2023 04:52 — forked from dtjm/monitrc.vim
Vim syntax file for Monit configuration files
" Vim syntax file
" Language: Monit control file
" Maintainer: Sam Nguyen
" Latest Revision: 6 August 2010
if exists("b:current_syntax")
finish
endif
syn keyword monitCommand set check include
@jchook
jchook / unicode.js
Last active December 24, 2022 06:34
JavaScript UTF-8 Helpers
/**
* Convert a string to a unicode byte array
* @param {string} str
* @return {Array} of bytes
*/
export function strToUtf8Bytes(str) {
const utf8 = [];
for (let ii = 0; ii < str.length; ii++) {
let charCode = str.charCodeAt(ii);
if (charCode < 0x80) utf8.push(charCode);
@jchook
jchook / keybase.md
Created December 9, 2017 00:49
keybase.md

Keybase proof

I hereby claim:

  • I am jchook on github.
  • I am jchook (https://keybase.io/jchook) on keybase.
  • I have a public key ASDUWX3tq-lIZN6LFSGaQSXN1NBZFMHbn_j1EXvOlf8rwAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jchook on github.
* I am jchook (https://keybase.io/jchook) on keybase.
* I have a public key ASDUWX3tq-lIZN6LFSGaQSXN1NBZFMHbn_j1EXvOlf8rwAo
To claim this, I am signing this object: