Skip to content

Instantly share code, notes, and snippets.

View hrj's full-sized avatar
🔭
observing

hrj hrj

🔭
observing
View GitHub Profile
@hrj
hrj / dual_axis_three_ldr_sun_tracker.ino
Last active October 25, 2016 14:22 — forked from chetankothari/dual_axis_three_ldr_sun_tracker.ino
Dual axis sun tracker using three LDR and Arduino Uno
// Authored by the "HeadBanger" team at SHD India.
// Shared under MIT License
#include <Servo.h>
#define NUM_PINS 3
int sensorPins[NUM_PINS] = {A0, A1, A2};
int sensorValues[NUM_PINS] = {0, 0, 0};
import java.util.Arrays
object Util {
import concurrent._
import ExecutionContext.Implicits.global
def par(f1 : => Unit, f2 : => Unit) {
val fut1 = future { f1 }
val fut2 = future { f2 }
Await.ready(fut1.zip(fut2), duration.Duration.Inf)
}
@hrj
hrj / brainerd.py
Last active December 20, 2015 20:38 — forked from asmallteapot/brainerd.py
#!/usr/bin/env python
# -*- coding: utf8 -*-
from flask import Flask, redirect, url_for
from markdown import markdown
import os
import re
# create the app
# TODO: load config/template from files, with fallbacks