Skip to content

Instantly share code, notes, and snippets.

@markfink
markfink / opengl_tutorial.py
Last active July 7, 2024 04:55
PySide2 & OpenGL sample
"""PySide2 & OpenGL sample"""
import sys
from PySide2 import QtCore, QtWidgets, QtOpenGL
try:
from OpenGL.GL import *
except ImportError:
app = QtWidgets.QApplication(sys.argv)
@markfink
markfink / game_of_life_32x64.ino
Last active July 28, 2017 04:49
Arduino Conway's Game of Life on 32 x 62 LED Matrix
// Conway's Game Of Life 32 x 64
// based on https://github.com/markfink/GoL_Javascript
#include <avr/pgmspace.h>
#include "pins_arduino.h"
// Connections to board
const byte pinSTB=7;
const byte pinClock=12;
const byte pinURed=10;
const byte pinUGreen=11;
@markfink
markfink / led_matrix_16x128.ino
Last active June 28, 2022 06:27
Arduino LED Matrix 16 x 128 three colors
#include <avr/pgmspace.h>
#include "pins_arduino.h"
// based on myMatrix Arduino Library
// by Silviu - www.openhardware.ro
// MIT License (MIT)
// Connections to board
const byte pinSTB=8;
const byte pinClock=12;
@markfink
markfink / led_matrix_16x64.ino
Created July 18, 2015 08:11
Led Matrix 16 x 64 three colors
#include <avr/pgmspace.h>
#include "pins_arduino.h"
// based on myMatrix Arduino Library
// by Silviu - www.openhardware.ro
// MIT License (MIT)
// Connections to board
const byte pinSTB=8;
const byte pinClock=12;
@markfink
markfink / ardumeter.ino
Last active August 29, 2015 14:10
ardumeter
/*
ardumeter, monitoring temperature and power consumption.
features:
* collect measurements and forward to emoncms http://emoncms.org/
* reconnect after ethernet connection loss
* S0 pulse count for up to 20 electricity meters
* use DS128B20 sensor address to bind temperature sensors
status LEDs:
@markfink
markfink / ZoomWindow.js
Created August 15, 2013 14:18
recreating the zoomable treemap using d3
var NYTG = NYTG || {};
NYTG.csstransitions = Modernizr.csstransitions;
//requires jQuery
//requires jQuery mouseWheel plugin.
// NYTG.ZoomWindow = function (nodeId, treeMap) {
NYTG.ZoomWindow = function (nodeId) {
this.HOUSEHOLDS = 113616229;
@markfink
markfink / index.html
Created August 15, 2013 11:20
treemap (d3 / DIV)
<!DOCTYPE html>
<meta charset="utf-8">
</head><body><header>
<aside>August 15, 2013</aside>
</header>
<h1>Treemap (d3 / DIV)</h1>
<p id="chart">
@markfink
markfink / index.html
Last active December 21, 2015 03:09
zoomable treemap (d3 / SVG)
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8">
<title>Zoomable Treemaps</title>
<style>
@import url(./style.css);
#chart {
width: 960px;
height: 500px;
{
"mainFile": "",
"venv": "/home/mark/devel/boodo/env",
"name": "boodo",
"license": "MIT License",
"url": "",
"pythonPath": "",
"programParams": "",
"supported-extensions": [
".py",