Skip to content

Instantly share code, notes, and snippets.

View codetinkerhack's full-sized avatar

Evgeniy Shatokhin codetinkerhack

View GitHub Profile
@codetinkerhack
codetinkerhack / ReTry-test.scala
Created February 3, 2014 12:00
ReTry-test.scala
package com.codetinkerhack
import scala.collection.immutable.IndexedSeq
import scala.concurrent.blocking
import scala.concurrent.duration.DurationInt
import scala.concurrent.duration.FiniteDuration
import scala.util.Failure
import scala.util.Success
import scala.util.Try
@codetinkerhack
codetinkerhack / ReTry.scala
Last active June 18, 2020 09:39
Retry Akka actor /Ask pattern with individual timeout, retry intervals
package com.codetinkerhack
import akka.actor.{ ActorRef, Props, Actor, ActorLogging }
import akka.pattern.ask
import akka.util.Timeout
import scala.concurrent.duration._
import akka.actor.Actor.Receive
import akka.pattern.pipe
import scala.util.Success
import scala.util.Failure
@codetinkerhack
codetinkerhack / midiKeyboard64keys.c
Last active November 3, 2021 07:46
midiKeyboard64keys.c
// Pin Definitions
// Rows are connected to
const int row1 = 5;
const int row2 = 6;
const int row3 = 7;
const int row4 = 8;
const int row5 = 4;
const int row6 = 3;
const int row7 = 2;
const int row8 = 1;
@codetinkerhack
codetinkerhack / midiKeyboard_VelocityAftertouch.c
Last active June 7, 2020 16:35
Arduino based Velocity sensitive Midi keyboard with Aftertouch
// Pin Definitions
// Rows are connected to Digital
const int rowPin[] = { 6, 7, 8, 5 };
// FSRs connected to Analog
const int fsrPin[] = { 2, 3, 4, 5 };
// The 74HC595 uses a serial communication
// link which has three pins
const int clock = 12;
// Pin Definitions
// Rows are connected to
const int row1 = 5;
const int row2 = 6;
const int row3 = 7;
const int row4 = 8;
// The 74HC595 uses a serial communication
// link which has three pins
const int clock = 9;