Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wolfgang42
wolfgang42 / README.md
Created May 17, 2016 04:02
ko-component-router path binding test case

Test case to reproduce an issue with ko-component-router with hashbang:false (path bindings don't bind right when prefixed with ./)

To set up:

npm install
node_modules/.bin/webpack testcase.js bundle.js
node_modules/.bin/http-server

Then visit http://localhost:8080/#!/

@wolfgang42
wolfgang42 / keybase.md
Created September 6, 2016 03:23
Keybase Proof

Keybase proof

I hereby claim:

  • I am wolfgang42 on github.
  • I am wolfgang (https://keybase.io/wolfgang) on keybase.
  • I have a public key ASAZChSI_QZTMCpNXlH7G3ZT0oAWb6kWJuaFX9Tl5vVGZAo

To claim this, I am signing this object:

@wolfgang42
wolfgang42 / normative-statements.json
Created November 16, 2017 17:54
JSONAPI 1.0 normative statement JSON
{
"jsonapi": {
"version": "1.0"
},
"data": [
{
"id": "content-negotiation",
"type": "sections",
"attributes": {
"title": "Content Negotiation"
@wolfgang42
wolfgang42 / README.md
Created April 20, 2018 02:11
Test case for golang nuklear crash

This is a stripped-down test case for a crash I encountered in the go bindings for nuklear.

To reproduce:

  1. Compile: go build nk-go-crash.go
  2. Run: ./nk-go-crash
  3. Focus the text box in the window.
  4. Type 123456789. It should crash sometime around 7 or 8.

Tested with Ubuntu 16.04.4, go version go1.9.4 linux/amd64.

@wolfgang42
wolfgang42 / debian-jessie.ipxe
Created August 1, 2015 18:47
Debian jessie ipxe install
#!ipxe
kernel http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
initrd http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
@wolfgang42
wolfgang42 / vagrant_snapshot_save_foo.debug.txt
Created October 20, 2019 04:07
`snapshot save <name>` tries to use snapshot name as machine name
INFO global: Vagrant version: 2.2.6
INFO global: Ruby version: 2.4.9
INFO global: RubyGems version: 2.6.14.4
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/bin/vagrant"
WARN global: resolv replacement has not been enabled!
INFO manager: Registered plugin: Slackware host
{
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"cross-env": "^6.0.3",
"laravel-mix": "^5.0.0",
"laravel-mix-versionhash": "^1.1.1"
}
@wolfgang42
wolfgang42 / otp-bart-route.json
Created December 17, 2019 21:12
OpenTripPlanner routing with mysterious delays
{
"requestParameters": {
"mode": "TRANSIT,WALK,BICYCLE",
"date": "2020-01-13",
"arriveBy": "true",
"fromPlace": "37.7509,-122.4153",
"toPlace": "37.788620,-122.403325",
"maxWalkDistance": "800",
"time": "9:00am"
},
INFO: Repository started (repository=group/project)
"renovateVersion": "20.2.5"
DEBUG: Using localDir: renovate_cache/repos/gitlab/group/project (repository=group/project)
DEBUG: group/project default branch = master (repository=group/project)
DEBUG: Bot email=renovate@gitlab.example.com (repository=group/project)
DEBUG: Enabling Git FS (repository=group/project)
DEBUG: group/project http URL = http://gitlab.example.com/group/project.git (repository=group/project)
DEBUG: Initializing git repository into renovate_cache/repos/gitlab/group/project (repository=group/project)
DEBUG: git clone completed (repository=group/project)
"durationMs": 1038
@wolfgang42
wolfgang42 / oeis-commons.py
Created December 2, 2020 20:54
Interesting lottery numbers
import sys
def sequences():
for line in sys.stdin:
if line.startswith('#'): continue
if not line.startswith('A'): raise Exception("unexpected line: "+line)
[_, seq] = line.strip().split(' ')
seq = [int(n) for n in seq.split(',') if n != '']
yield seq