Skip to content

Instantly share code, notes, and snippets.

🤓
work: interface dev | learn: deep learning | dream: colonize cosmos

Balázs Suhajda suhajdab

🤓
work: interface dev | learn: deep learning | dream: colonize cosmos
Block or report user

Report or block suhajdab

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
@suhajdab
suhajdab / PaperSignalsIdeas.md
Last active Dec 8, 2017
Collection of Ideas for Paper Signals: A Voice Experiment
View PaperSignalsIdeas.md

A collaborative list of ideas for Google Paper Signals: A Voice Experiment

Paper Signals are build-it-yourself objects that you control with your voice.

More info on Paper Signals

Let's gather a bunch of ideas that families can build over the holidays to geek out a little. :)

To add your idea/project share:

  • project's name
  • short description
@suhajdab
suhajdab / rfid-node.ino
Last active Oct 15, 2017
Particle Photon + RC522 RFID implant reader
View rfid-node.ino
#include "MFRC522/MFRC522.h"
/*
Function Core Pin MRFC522 Pin
Reset D2 RST
SPI SS D1 SDA
SPI MOSI A5 MOSI
SPI MISO A4 MISO
SPI SCK A3 SCK
*/
@suhajdab
suhajdab / NIFE_lamp.ino
Last active Feb 17, 2016
RFduino controller for power LED used inside a upcycled NIFE lamp
View NIFE_lamp.ino
int ledPin = 6;
int btnPin = 2;
int state = 0;
int power = 0;
float diff = 0;
int steps = 30;
int statesArray[4] = {0, 85, 170, 255};
View solution
var api = require('./API.js');
var route = ['r','','l','f','f','f','f','','','','f','f','f','f','f'],
move = '',
env = [],
lastEnv = [];
function next() {
move = route.shift();
}
View solution
var api = require('./API.js');
var route = ['f','r','r','f'],
move = '',
env = [],
lastEnv = [];
function next() {
move = route.shift();
}
View veberod.adoc

Veberöds historia

create
// buildings
  (church:Building {name:'Veberöds kyrka', founded: 1200, geolocation: '55.6347487,13.4897019'}),
@suhajdab
suhajdab / nodejs-unlock
Last active Nov 21, 2016
Super simple remote unlock for OSX via NodeJS
View nodejs-unlock
var applescript = require('applescript');
var http = require('http');
var script =
'tell application "System Events"\n\
if name of every process contains "ScreenSaverEngine" then \n\
tell application "ScreenSaverEngine"\n\
quit\n\
end tell\n\
delay 0.2\n\
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
View NeoPixel bike light
#include <Adafruit_NeoPixel.h>
// Pin used on Arduino board
#define PIN 2
// Number of NeoPixels
#define PIXELS 24
// Number of pixels on either side continuously orange to indicate side of vehicle
#define FIXEDPIXELS 1
// Parameter 1 = number of pixels in strip
View NeoPixel Ripple
#include <Adafruit_NeoPixel.h>
#define PIN 2
#define Pixels 24
#define BG 1
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
You can’t perform that action at this time.