Skip to content

Instantly share code, notes, and snippets.

View aschrijver's full-sized avatar
💭
On the Fediverse as @ smallcircles at https://social.coop

Arnold Schrijver aschrijver

💭
On the Fediverse as @ smallcircles at https://social.coop
View GitHub Profile
@aschrijver
aschrijver / 106062541939299515-discourse.svg
Last active April 15, 2021 10:44
GraphViz SVG format issues (for Chartodon project)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aschrijver
aschrijver / discourse-with-a-screen-reader.md
Last active February 7, 2021 17:10
Accessibility: Discourse with a screen reader

This Github Gist, created 5 Februari 2021, is a Markdown copy from the Discourse Meta support forum of the thread titled "Discourse with a Screen reader".

It was created by fedizen 'Humanetech' from mastodon.social in a discussion that raised the question: "How are you making Social Hub accessible to screen readers and other Disabled people?". Social Hub runs the Discourse forum software. The Fediverse discussion subthread is at: https://mastodon.social/@weirdwriter/105675901238499066

A link to this Gist will be copied to the forum thread.

Forum topic

@aschrijver
aschrijver / RNNodeService.java
Last active May 3, 2018 03:59
RNNodeService using ScheduledExecutorService to cancel long-running NodeJS tasks (express webserver) - NOT Working
package world.fullcircle.nodeonandroid;
import android.app.Service;
import android.content.Intent;
import android.content.res.AssetManager;
import android.os.IBinder;
import android.util.Log;
import com.eclipsesource.v8.NodeJS;
import com.eclipsesource.v8.V8;
@aschrijver
aschrijver / RNNodeService.java
Created August 17, 2017 11:47
React-native-node refactored to use J2V8
package my.example.nodeonandroid;
import android.app.Service;
import android.content.Intent;
import android.content.res.AssetManager;
import android.os.IBinder;
import android.util.Log;
import com.eclipsesource.v8.NodeJS;
import com.eclipsesource.v8.V8;
@aschrijver
aschrijver / npm-build-package.log
Created August 16, 2017 06:17
Output of `npm build package` showing `pkg` warnings
08:10 $ npm run package
> dat@13.8.1 package /home/arnold/Development/misc/dat
> pkg package.json -o dist/dat
> pkg@4.2.3
> Fetching base Node.js binaries to PKG_CACHE_PATH
fetched-v8.0.0-linux-x64 [====================] 100%
fetched-v8.0.0-macos-x64 [====================] 100%
fetched-v8.0.0-win-x64 [====================] 100%
Step 39/39 : EXPOSE 5900
---> Running in 586eb8e740f0
---> 252fbb99cceb
Removing intermediate container 586eb8e740f0
Successfully built 252fbb99cceb
Successfully tagged j2v8-android:latest
DOCKER running android@arm => docker-build-host
docker run --privileged -P -v /home/arnold/Development/misc/J2V8:/j2v8 --name j2v8.android.arm j2v8-android /bin/bash -c "cd /j2v8; python ./build.py --cross-agent docker -t android -a arm -ne nodejs j2v8cmake j2v8jni j2v8optimize j2v8java j2v8junit"
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
In file included from ../deps/v8/src/compiler/ast-graph-builder.cc:16:0:
../deps/v8/src/compiler/node-matchers.h: In member function 'bool v8::internal::compiler::FloatMatcher<T, kOpcode>::IsInteger() const':
../deps/v8/src/compiler/node-matchers.h:171:32: error: 'nearbyint' is not a member of 'std'
return this->HasValue() && std::nearbyint(this->Value()) == this->Value();
^
../deps/v8/src/compiler/node-matchers.h:171:32: note: suggested alternative:
In file included from /build/android-ndk-r13b/std-toolchains/android-17-arm/include/c++/4.9.x/cmath:44:0,
from ../deps/v8/src/utils.h:11,
from ../deps/v8/src/conversions.h:11,
from ../deps/v8/src/ast/ast-types.h:8,
09:02 $ python build.py --interactive
entering interactive mode...
[0] Docker >> android-x86 >> NODE_ENABLED
[1] Docker >> android-arm >> NODE_ENABLED
[2] Docker >> alpine-linux-x64 >> NODE_ENABLED
[3] Docker >> linux-x64 >> NODE_ENABLED
[4] Docker >> linux-x86 >> NODE_ENABLED
[5] Vagrant >> macosx-x64 >> NODE_ENABLED
@aschrijver
aschrijver / index.html
Created July 22, 2017 06:32
Example of incorrect output running protoc-gen-doc with custom html mustache template
<!DOCTYPE html>
<html>
<head>
<title>Protocol Documentation</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>
<style>
body {
width: 60em;
@aschrijver
aschrijver / Local_gradle_build_with_--stacktrace.log
Last active August 21, 2016 19:18
Troubleshooting 'TravicCI build fails but local build is just fine' on project engagingspaces/vertx-dataloader
✔ ~/dev/engagingspaces/vertx-dataloader [master|…1]
20:47 $ gradle clean test --stacktrace
:clean
:docProcessing
warning: The following options were not recognized by any processor: '[docgen.source]'
:compileJava
:processResources UP-TO-DATE
:classes
:compileTestJava
:processTestResources UP-TO-DATE