Skip to content

Instantly share code, notes, and snippets.

István Szmozsánszky flaki

Block or report user

Report or block flaki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
flaki /
Created May 12, 2019
RustWASM microformats v2 parser implementation - IndieWebCamp Düsseldorf 2019.05.11-12 (devlog)

apparently there is no microformats down-to-the-metal parser for microformats (C or Rust or similar)

chewing through the microformats docs/spec

everything is a classname, prefixes denote the type of content the element has (plaintext, more elements, url attribute)

there is a node/browser parser

it appears to be nicely tested, this could be used to buid a compliant rust/wasm parser

flaki /
Last active Apr 17, 2019
WebAssembly CG TLDR

TL;DR: WebAssembly CG Meeting, April 16, 2019

  • Agenda
  • Dan Gohman, Mozilla was voted to Chair the WASI subgroup with unanimous consent
  • Proposal for a second chair (Co-chair), Sam Clegg, Google volunteered but decision was postponed until the next meeting
  • A vote was proposed for adopting the WASI subgroup charter and was accepted without objections
  • A vote was proposed for landing the reference libc implementation for WASI, but eventually postponed. The implementation uses MUSL that is MIT licensed, with no precedence of MIT-licensed code in the codebase before. Vote was postponed until after consulting with legal for guidance on this, and the various other licenses in use/included currently.
flaki /
Last active May 15, 2018
Clouduboy Workshop Docs
flaki / doggo.microcanvas.js
Created Mar 10, 2018
Tamagotchi with MicroCanvas
View doggo.microcanvas.js
"use strict";
let game = new MicroCanvas();
let gfxGotchi, gfxGotchiFlip, gfxBone;
game.setup(function(game) {
gfxGotchi = game.loadSprite(`! gotchi 16x16
flaki /
Created Jan 30, 2018
Clouduboy perf timing demo for the Arduboy

Clouduboy perf timing demo

The interesting bits are:

  arduboy: `{ long now=millis()`

// and
flaki / undefined.js
Created Apr 5, 2017
Shadowing undefined
View undefined.js
(function() {
// Won't work, 'undefined' is a property on the global object, but it's unconfigurable (not modifiable)
try {
Object.defineProperty(window, 'undefined', { value: 42 });
} catch (e) { console.log(e.toString()) }
// But 'undefined' could be still shadowed, because it's not a keyword - its name is usable as an identifier
var undefined = 42;
// foo is a non-existent property on the window object
flaki /
Last active Mar 23, 2017
Animate the CSS Grid demo!

How To Use?

  1. Navigate to's CSS Grid demo page
  2. In Firefox, open devtools and create a new stylesheet. Copy grid-logo-animate.css's contents in there!
    • Alternatively you can copy/paste grid-logo-animate.js into the devtools console and hit enter—this should work in any browser.
  3. Hover the logo, watch it fade away.
  4. Lean back, move your cursor off the logo, and enjoy!
flaki /
Created Jan 20, 2017
How to node on the PocketCHIP

How to node on the PocketCHIP?

Install node.js

Install node from NodeSource PPA

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

Did you know your webapp had superpowers? by Szmozsánszky István (Flaki), Frontend Trainer @ DPC Consulting

Progressive Webapps' are just the nicer-sounding version of 'YES, the web can now do that too!' to inquiries about features that were previously reserved for native apps only.. but we are well past that point when offline-first or even native web-based push notifications were news. The unstoppable evolution of web technologies have moved onto greener pastures: storage improvements, improved JavaScript hardware access and new low-level APIs (like service workers themselves) make it possible to shout into your phone to control a game, transpile unsupported JavaScript features on demand and some other exciting/handy/futuristic usecases we are going to explore.

nolan pwa live streamed tomorrow

flaki / FirefoxDevEdition48.js
Last active May 10, 2016
Go to Paste the script into the console. Profit! 😎
View FirefoxDevEdition48.js
(!) Please make sure you've read the disclamer below! (!)
If you want to see how can you transform the Firefox Developer Edition landing
page into a fancy animation just
- navigate to *
- open the developer tools (F12)
- copy and paste this code into the console
- hit enter, and enjoy the show!
- you can follow the commentary via the console log
You can’t perform that action at this time.