Skip to content

Instantly share code, notes, and snippets.

View rayhu's full-sized avatar
🎯
Focusing

Ray Hu rayhu

🎯
Focusing
  • Bay Area, CA, USA
View GitHub Profile
@rayhu
rayhu / index.html
Created October 18, 2021 22:26
Reference Line
<div>
<div class="buttons">
<button class="button set-tool-mode is-primary" data-action="Active">
Active
</button>
<button class="button set-tool-mode" data-action="Passive">
Passive
</button>
<button class="button set-tool-mode" data-action="Enabled">Enable</button>
<button class="button set-tool-mode" data-action="Disabled">
@rayhu
rayhu / index.html
Created October 18, 2021 22:25
Reference Line
<div>
<div class="buttons">
<button class="button set-tool-mode is-primary" data-action="Active">
Active
</button>
<button class="button set-tool-mode" data-action="Passive">
Passive
</button>
<button class="button set-tool-mode" data-action="Enabled">Enable</button>
<button class="button set-tool-mode" data-action="Disabled">
const {PNG} = require('bundle.js');
const {Button, ImageView, ui} = require('tabris');
const base64 = require('base-64');
function _arrayBufferToBase64( buffer ) {
var binary = '';
var bytes = new Uint8Array( buffer );
var len = bytes.byteLength;
for (var i = 0; i < len; i++) {
binary += String.fromCharCode( bytes[ i ] );
@rayhu
rayhu / cloudSettings
Last active November 7, 2020 06:52
vscode settings
{"lastUpload":"2020-11-07T06:52:09.451Z","extensionVersion":"v3.4.3"}