Skip to content

Instantly share code, notes, and snippets.

View lepsa's full-sized avatar

Owen Harvey lepsa

  • Brisbane, Australia
View GitHub Profile
{ autoconf, fetchurl, glib, gnum4, gtk, gtk3, hicolor-icon-theme, intltool
, libpulseaudio, libtool, libxfce4ui, libxfce4util, libxfcegui4, linux, makeWrapper
, pkgconfig, stdenv, xfce4-dev-tools, xfce4-panel, xfce4panel_gtk3, xfconf
, withKeybinder ? true, keybinder3
, withLibnotify ? true, libnotify
}:
assert withKeybinder -> keybinder3 != null;
assert withLibnotify -> libnotify != null;
@lepsa
lepsa / gist:349ab323faf6a3b924e7d98443c4b692
Created April 4, 2018 05:52
Brackets and nested parsers
foo :: Parser Foo
foo = do
... <- ...
... <- ...
... <- ...
pure $ ...
bracket :: Parser () -> Parser () -> Parser a -> Parser a
bracket bra cket m = bra *> m <* cket
#include <EEPROM.h>
#include <LiquidCrystal.h>
#include <Servo.h>
#include <TinyGPS++.h>
#include <math.h>
// Components
Servo servo;
TinyGPSPlus gps;
LiquidCrystal lcd(5,6,7,8,9,10);