This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |