Skip to content

Instantly share code, notes, and snippets.

View irbull's full-sized avatar

Ian Bull irbull

View GitHub Profile
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 ] );
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 ] );
@irbull
irbull / gist:42d485dca9a1a9707f3354f17c42862d
Created August 29, 2024 17:04
Generate error message candidates
import { dirname, join } from "jsr:@std/path/";
import { WalkEntry, walkSync } from "jsr:@std/fs/walk";
const ROOT = <PATH_TO_DENO>;
const DIR_SKIP_LIST = [
"/node_modules/",
"/testdata/",
"/tests/",
"/.github/",
import { dirname, join } from "jsr:@std/path/";
import { WalkEntry, walkSync } from "jsr:@std/fs/walk";
const ROOT = <PATH_TO_DENO>;
const DIR_SKIP_LIST = [
"/node_modules/",
"/testdata/",
"/tests/",
"/.github/",