Skip to content

Instantly share code, notes, and snippets.

View ClaudiuCeia's full-sized avatar
Turning coffee into code

Claudiu Ceia ClaudiuCeia

Turning coffee into code
  • Alba Iulia, Romania
  • 01:06 (UTC -12:00)
View GitHub Profile
@erikvorhes
erikvorhes / marquee.js
Last active March 15, 2018 18:34
You need a marquee.
/**
* This marquee stuff is deliberately low-tech. Use at your own risk. Licensed under whatever license you need.
* Also available as a part of https://github.com/erikvorhes/Useless-JS
*
* Usage: `marquee();`
*/
function marquee(behavior, direction) {
var behaviors = ['scroll', 'slide', 'alternate'];
var directions = ['left', 'right', 'up', 'down'];

In this tutorial we're going to build a set of parser combinators.

What is a parser combinator?

We'll answer the above question in 2 steps.

  1. What is a parser?
  2. and, what is a parser combinator?

So first question: What is parser?

@EEVblog
EEVblog / Arduino-IR-TX-NEC
Last active January 25, 2023 20:59
A simple Arduino driver for the NEC (Japanese) Infrared IR protocol. Drive an IR LED direct with your own code. This is a direct pin bit-bang approach, so beware about interrupts and timing difference between hardware. Feel free to use hardware PWM to generate the carrier frequency if you want better accuracy.
//*****************************************
// NEC (Japanese) Infrared code sending library for the Arduino
// Send a standard NEC 4 byte protocol direct to an IR LED on the define pin
// Assumes an IR LED connected on I/O pin to ground, or equivalent driver.
// Tested on a Freetronics Eleven Uno compatible
// Written by David L. Jones www.eevblog.com
// Youtube video explaining this code: http://www.youtube.com/watch?v=BUvFGTxZBG8
// License: Creative Commons CC BY
//*****************************************