Skip to content

Instantly share code, notes, and snippets.

View andormade's full-sized avatar
👋

Andor Polgár andormade

👋
View GitHub Profile
class Button extends React.Component {
constructor(props) {
super(props);
this.onMouseMove = this.onMouseMove.bind(this);
}
render() {
return (
<button
onMouseOver={this.onMouseOver}
@andormade
andormade / hungariandate.liquid
Last active August 26, 2016 23:28
It does Hungarian date format for Liquid templates
{% comment %}
Usage: {% include hungariandate.liquid date=post.date %}
or: {% include hungariandate.liquid date=page.date %}
2016 Andor Polgar (andor.cool)
{% endcomment %}
{{ include.date | date: "%Y." }}
@andormade
andormade / eslintrc.json
Last active December 20, 2015 17:32
my eslintc
{
"env": {
"browser": true
},
"rules": {
"comma-dangle": [2, "never"],
"no-cond-assign": [2, "always"],
"no-console": [1],
"no-constant-condition": [2],
"no-control-regex": [2],
@andormade
andormade / main.c
Created November 12, 2011 18:00
Audio Queue example
#include <stdlib.h>
#include <math.h>
#include <AudioToolbox/AudioQueue.h>
#include <CoreAudio/CoreAudioTypes.h>
#include <CoreFoundation/CFRunLoop.h>
#define NUM_CHANNELS 2
#define NUM_BUFFERS 3
@andormade
andormade / midinotenumbers.h
Created November 11, 2011 22:01
MIDI note numbers
#ifndef __MIDI_NOTE_NUMBERS__
#define __MIDI_NOTE_NUMBERS__
#define A0 21
#define As0 22
#define Bb0 22