Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am neilisaac on github.
  • I am neilisaac (https://keybase.io/neilisaac) on keybase.
  • I have a public key ASAcyNVmaupC1T3BsoQQaJ4SHSmH9e_22q4DR9SQSiVM1Qo

To claim this, I am signing this object:

#include <IRremote.h>
IRrecv irrecv(A2);
IRsend irsend; // hard-coded to pin 3
String buf;
String mode;
void setup() {
irrecv.enableIRIn();
Serial.begin(9600);
@neilisaac
neilisaac / geo.js
Created April 26, 2015 17:20
genmaze - generative art hackathon 2015
// a hack by neil isaac
function stringTexture(text, color) {
var canvas = document.createElement("canvas");
canvas.width = 256;
canvas.height = 256;
var ctx = canvas.getContext("2d");
ctx.fillStyle = color;
ctx.fillRect(0, 0, 256, 256);
ctx.font = "48px Arial";
@neilisaac
neilisaac / gist:7900631
Created December 10, 2013 21:34
Remap caps lock to mod4 (windows) key using xmodmap
clear lock
remove mod4 = Super_L
keysym Caps_Lock = Super_L
add mod4 = Super_L
@neilisaac
neilisaac / album.php
Created April 14, 2013 00:20
Simple PHP photo album generated by searching for files in given folder
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Photo Albums</title>
<style>
@neilisaac
neilisaac / rc.lua
Created April 14, 2013 00:07
Customized awesome configuration
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
@neilisaac
neilisaac / corncob_lowercase.txt
Created April 14, 2013 00:05
Find words from permutations of given letters
aardvark
aardwolf
aaron
aback
abacus
abaft
abalone
abandon
abandoned
abandonment
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define LINESIZE 256
int main(int argc, char **argv){
printf("\\documentclass{article}\n\n");
@neilisaac
neilisaac / cyprus-lake-day.jpg
Created September 16, 2012 01:33
Awesome configuration
cyprus-lake-day.jpg
@neilisaac
neilisaac / .screenrc
Created July 7, 2011 01:23
GNU screenrc with status bar at the bottom
defscrollback 1024
startup_message off
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.1099} %-w%{.bg}%n %t%{-}%+w %=%H %c:%s "
#bind c screen 1
#bind 0 select 10