Skip to content

Instantly share code, notes, and snippets.

@voigtan
voigtan / dabblet.css
Created January 11, 2012 09:18
just playing with dabblet
/**
* just playing with dabblet
*/
.button {
border: 0;
padding: 0;
margin: 0px auto;
background: #f06;
border-radius: 30px;
overflow: hidden;
@voigtan
voigtan / dabblet.css
Created January 11, 2012 09:58
just playing with dabblet
/**
* just playing with dabblet
*/
.button {
border: 0;
padding: 0;
margin: 0px auto;
background: #f06;
border-radius: 30px;
overflow: hidden;
@voigtan
voigtan / dabblet.css
Created March 18, 2014 10:27
Slanted tabs with CSS 3D transforms
/**
* Slanted tabs with CSS 3D transforms
* See http://lea.verou.me/2013/10/slanted-tabs-with-css-3d-transforms/
*/
body { padding: 50px; }
nav {
position: relative;
z-index: 1;
module.exports = {
"options": {
"port": 9000,
"hostname": "localhost"
},
"livereload": {
"options": {
"middleware": function (connect) {
return [
require("connect-livereload")()
var optionsRender = function(item) {
return [
'<li>',
'<label>',
'<input',
(item.selected ? ' checked' : ''),
' type=' + _checkboxType,
' name="__' + _select.name + '"',
' value="' + item.value + '"',
'>',
@voigtan
voigtan / keybase.md
Created September 21, 2016 09:05
keybase.md

Keybase proof

I hereby claim:

  • I am voigtan on github.
  • I am voigtan (https://keybase.io/voigtan) on keybase.
  • I have a public key ASAPpB37Gy-AFd2rSm7Xc8Avl27WDjCBDET9OkCz6oRDgwo

To claim this, I am signing this object:

#include "avr/eeprom.h"
#include "Kidspeak.h"
#include "audio/tunes.h"
#include "oled/images.h"
#include <OLED_I2C.h>
#if defined(__AVR__)
#include <avr/pgmspace.h>
#endif
@voigtan
voigtan / minimal-analytics-snippet.js
Created December 18, 2018 20:01 — forked from DavidKuennen/minimal-analytics-snippet.js
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@voigtan
voigtan / generate.c
Created March 5, 2019 14:23 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u