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
View employees.json
"type": "HourlySalaryEmployee",
"salary": 10,
"name": "Anna",
"id": 1
"type": "HourlySalaryEmployee",
"salary": 8,
"name": "Bob",
flaki /
Created Feb 11, 2016
Helpful commands for the OpenWRT system used on the Tessel 2

OpenWRT for Dummies - Tessel 2 Edition

A kind-of-FAQ for operating the Tessel 2 from the commandline (via SSH, serial console or tessel root).

How to find out what commands are executed by the CLI?

Prefix your commands with "DEBUG=commands:usb" to learn about the commands sent to the device:

$ DEBUG=commands:usb t2 wifi -l

INFO Looking for your Tessel...
flaki /
Last active Jul 2, 2016
Angular project bootstrap via NPM
$ npm init
# Enter, enter...
$ npm install --save angular
$ npm install --save-dev angular-mocks
$ npm install -g karma-cli
$ npm install --save-dev karma mocha karma-mocha chai karma-chai
flaki / spinnysaucer.ino
Created Feb 7, 2016
MARS ATTACK! A tiny hack on the Clouduboy Sprite Demo for the Arduboy
View spinnysaucer.ino
#include "Arduboy.h"
// Pre-drawn pixelart animation - Spinny Saucer (17x7, 2 frames)
PROGMEM const unsigned char sprite1[] = { /*17x7*/ 0x8, 0x18, 0x38, 0x38, 0x74, 0x7e, 0x6e, 0x3f, 0x2f, 0x3f, 0x6e, 0x7e, 0x74, 0x38, 0x38, 0x18, 0x8 };
PROGMEM const unsigned char sprite2[] = { /*17x7*/ 0x8, 0x18, 0x38, 0x38, 0x7c, 0x76, 0x7e, 0x2f, 0x3f, 0x2f, 0x7e, 0x76, 0x7c, 0x38, 0x38, 0x18, 0x8 };
Arduboy arduboy;
flaki / manelbutterfly.ino
Created Feb 6, 2016
Happy Birthday Manel! A celebratory arduboy pocket game for the occasion.
View manelbutterfly.ino
#include <SPI.h>
#include "Arduboy.h"
#include <EEPROM.h>
#include <avr/pgmspace.h>
Arduboy arduboy;
// frame counter
flaki /
Last active Jan 8, 2016
Enabling FirefoxEmoji emoticons and the Firefox OS Emoji keyboard

Firefox OS Emoji 101

How to enable the built-in emoji keyboard?

  • Go to Settings ➡️ Keyboards ➡️ Select Keyboards:
  • Tick ✅ Emoji in the Built-in Keyboard group
  • Use the "change layout" button on the keyboard to switch between layouts, or
  • Long-press on the layout-change button and select "Emoji" to enable

If the option is not available, make sure you are on latest master, or if you are Foxfooding, set the nightly-latest update channel

flaki / formerreps.js
Last active Jan 8, 2016
Check Rep status (active/former) in dashboard
View formerreps.js
if (window.location.toString() === "") {
document.querySelectorAll('#dashboard-mentorship-block [href*="/u/"]'),
function(a) {
console.log("Checking "+a.href+" ... ");
var r = new XMLHttpRequest();"GET", a.href);
r.onreadystatechange = function () {
if (r.readyState != 4 || r.status != 200) return;
var former = r.responseText.match(/Former Rep/);
flaki / halloweend.ino
Created Nov 1, 2015
Spooky version of the Arduboy rund.ino game (
View halloweend.ino
#include <SPI.h>
#include "Arduboy.h"
#include <EEPROM.h>
#include <avr/pgmspace.h>
Arduboy arduboy;
// frame counter
unsigned int frame = 0;
flaki / nored.html
Created Sep 30, 2015
SVG Filter removing the red channel
View nored.html
body {
} {
color: white;
margin: 0;
display: inline-block;
width: 16em;
} span {
flaki / accel.js
Created Sep 8, 2015
T2 Rust Example
View accel.js
var spawn = require('child_process').spawn;
var child = spawn('accel_rs', [], {});
// Use standard out...
child.stdout.on('data', function(data) {
// ... OR use a domain socket
var net = require('net');
You can’t perform that action at this time.