Skip to content

Instantly share code, notes, and snippets.

Andreas Voigt voigtan

Block or report user

Report or block voigtan

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
@voigtan
voigtan / generate.c
Created Mar 5, 2019 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
View generate.c
#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
View minimal-analytics-snippet.js
(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 = () => {
View gist:0da309b203efa497aa00cce42629fab5
#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
View 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:

View gist:ae3044315eada978e08c
var optionsRender = function(item) {
return [
'<li>',
'<label>',
'<input',
(item.selected ? ' checked' : ''),
' type=' + _checkboxType,
' name="__' + _select.name + '"',
' value="' + item.value + '"',
'>',
View gist:9308debbdf3363da08f0
module.exports = {
"options": {
"port": 9000,
"hostname": "localhost"
},
"livereload": {
"options": {
"middleware": function (connect) {
return [
require("connect-livereload")()
@voigtan
voigtan / dabblet.css
Created Mar 18, 2014
Slanted tabs with CSS 3D transforms
View dabblet.css
/**
* 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;
@voigtan
voigtan / dabblet.css
Created Jan 11, 2012
just playing with dabblet
View dabblet.css
/**
* just playing with dabblet
*/
.button {
border: 0;
padding: 0;
margin: 0px auto;
background: #f06;
border-radius: 30px;
overflow: hidden;
@voigtan
voigtan / dabblet.css
Created Jan 11, 2012
just playing with dabblet
View dabblet.css
/**
* just playing with dabblet
*/
.button {
border: 0;
padding: 0;
margin: 0px auto;
background: #f06;
border-radius: 30px;
overflow: hidden;
You can’t perform that action at this time.