Skip to content

Instantly share code, notes, and snippets.

View bergie's full-sized avatar

Henri Bergius bergie

View GitHub Profile
⇒ a11y bergie.today
✖ These elements are focusable but either invisible or obscured by another element
#u-2b68871f-7afb-46c3-a8cd-ac5e3d68e126-m-cover
✖ The web page should have the content's human language indicated in the markup
html
{
"id": "a46e1f2d-925d-4574-8319-43a657d16cc6",
"item": "1c99761a-2e6d-49b9-84f1-34234a007bc8",
"type": "article",
"html": "<article><h1>Hacker News</h1><p>Get away with Google Flights (googleblog.blogspot.com)</p></article>",
"score": 0,
"created_at": "2015-02-26T02:19:02.072Z",
"updated_at": null,
"metadata": {
"author": [],
@bergie
bergie / my-awesome-styles.gss
Created October 17, 2014 10:48
GSS example
@horizontal .TutorialPage gap(0);
.TutorialPage {
x :>= 0;
y :>= 0;
width:== ::window[width];
height:== ::window[height];
}
@bergie
bergie / noflo.json
Last active August 29, 2015 14:05
NoFlo spring loop
{
"properties": {
"name": "Spring demo",
"id": "esr4k",
"environment": {
"type": "noflo-browser",
"content": "<style>\n img {\n width: 100px;\n height: 100px;\n position: absolute;\n top: 100px;\n left: 150px;\n }\n</style>\n<img src=\"http://nextnature.net/wp-content/uploads/2009/12/mcluhan-5301.jpg\">"
}
},
"inports": {},
@bergie
bergie / extract.coffee
Created August 18, 2014 10:20
Extract inline FBP graphs to files
fs = require 'fs'
jsdom = require 'jsdom'
writeGraph = (id, content) ->
console.log id
content = content.replace /\&gt\;/g, '>'
content = content.replace /\n[\s]*/g, '\n'
content = content.replace /local\//g, 'ui/'
fs.writeFileSync "graphs/#{id}.fbp", content
@bergie
bergie / noflo.json
Last active January 5, 2017 17:14
React Todo Example
{
"properties": {
"name": "ReactTodoExample",
"id": "ReactTodoExample",
"environment": {
"type": "noflo-browser"
}
},
"inports": {},
"outports": {},
@bergie
bergie / noflo.json
Created January 3, 2014 23:49
Port state demo, needs latest build of NoFlo UI and deps
{
"id": "6pl6o",
"project": "",
"properties": {
"name": "BazGraph",
"environment": {
"runtime": "html",
"src": "./preview/iframe.html",
"width": 300,
"height": 300,
@bergie
bergie / noflo.json
Created October 17, 2013 09:59
Gesture data gathering
{
"properties": {
"environment": {
"runtime": "html",
"src": "./preview/iframe.html",
"width": "300",
"height": "300",
"content": "<style>\nbody {\n width: 1000px;\n height: 1000px;\n}\n</style>"
},
"name": "ListenGestures"
@bergie
bergie / noflo.json
Created October 17, 2013 09:50
Gather gesture data
{
"properties": {
"environment": {
"runtime": "html",
"src": "./preview/iframe.html",
"width": "300",
"height": "300",
"content": "<style>\nbody {\n width: 1000px;\n height: 1000px;\n}\n</style>"
},
"name": "Behavior"
@bergie
bergie / noflo.json
Created September 28, 2013 14:00
AR.Drone take off, turn for 1 sec, land
{
"properties": {
"environment": {
"runtime": "websocket",
"wsUrl": "ws://127.0.0.1:3569"
},
"name": "ControlDrone"
},
"exports": [],
"processes": {