Skip to content

Instantly share code, notes, and snippets.

@nwidger
nwidger / delve_update.sh
Created March 10, 2022 15:55
Script to ease updating delve package in OpenWrt package repository
#!/bin/bash
set -e
pkg_version=
branch=master
remote=https://github.com/nwidger/packages.git
case $# in
1)
go test -v -run TestRequireCoreJS
=== RUN TestRequireCoreJS
2020/07/28 08:19:32 require("./testdata/node_modules/core-js") ["."]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js") ["."]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js.js") ["."]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js.json") ["."]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js/index.js") ["."]
2020/07/28 08:19:32 require("./es") ["testdata/node_modules/core-js"]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js/es") ["testdata/node_modules/core-js"]
2020/07/28 08:19:32 getCompiledSource("testdata/node_modules/core-js/es.js") ["testdata/node_modules/core-js"]
### Keybase proof
I hereby claim:
* I am nwidger on github.
* I am nwidger (https://keybase.io/nwidger) on keybase.
* I have a public key ASC2WrU87wiaj3Y1jTbIE3qxxLzXxlJptegjzb-tQI5ysgo
To claim this, I am signing this object:
@nwidger
nwidger / azul3d_video.go
Created March 26, 2016 13:49
azul3d_video.go
// +build !sdl,!js
package nes
import (
"image"
"image/color"
"math"
"azul3d.org/engine/gfx"
@nwidger
nwidger / AFTER jquery-ui.1.11.4.min.js
Created October 23, 2015 18:21
jquery-ui.1.11.4.min.js
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|object)$/.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function s(e){for(var t,i;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-da
// +build !sdl
package nes
import (
"image"
"image/color"
"math"
"azul3d.org/gfx.v1"
// +build !sdl
package nes
import (
"image"
"image/color"
"math"
"azul3d.org/gfx.v1"
// +build !sdl
package nes
import (
"image"
"image/color"
"math"
"azul3d.org/gfx.v1"
SIGQUIT: quit
PC=0x7fff8ae4952e
signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]:
runtime.cgocall_errno(0x400d3f0, 0xc20881b9b0, 0x0)
/usr/local/go/src/runtime/cgocall.go:130 +0xf5 fp=0xc20881b990 sp=0xc20881b968
azul3d.org/gfx/gl2.v2/internal/gl._Cfunc_glowFlush(0x7fff8ffbf873)
azul3d.org/gfx/gl2.v2/internal/gl/_obj/_cgo_gotypes.go:453 +0x45 fp=0xc20881b9b0 sp=0xc20881b990
azul3d.org/gfx/gl2.v2/internal/gl.Flush()
=== RUN TestOpenAL
Default Device: OpenAL Soft
Default Capture Device:
device 0. "OpenAL Soft"
capture device 0. "CoreAudio Default"
Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_thread_local_context ALC_SOFT_loopback
Maximum sources: 255
Have the ALC_EXT_CAPTURE extension.
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x0 pc=0x7fff8ad0f172]