Monthly Archives: October 2014

[Sublime Text] Short cuts & Tips

Editing open & close tags (Works on Emmet) Command + shift + k Completing close tags Command + alt + . Completing close tags automatically First type: and then press “tab” key, then it will show Set Python3 build system on

[Sublime Text] Short cuts & Tips

Editing open & close tags (Works on Emmet) Command + shift + k Completing close tags Command + alt + . Completing close tags automatically First type: and then press “tab” key, then it will show Set Python3 build system on

[Scala] Functions, Anonymous functions

Functions within a function Example: Strings def vertaaPituuksia(jono1: String, jono2: String) = jono1.length – jono2.length def vertaaIntArvoja(jono1: String, jono2: String) = jono1.toInt – jono2.toInt def vertaaMerkkeja(jono1: String, jono2: String) = jono.compareToIgnoreCase(jono2) def onkoJarjestyksessa(eka: String, toka: String, kolmas: String, vertaa:(String, String)

[Scala] Functions, Anonymous functions

Functions within a function Example: Strings def vertaaPituuksia(jono1: String, jono2: String) = jono1.length – jono2.length def vertaaIntArvoja(jono1: String, jono2: String) = jono1.toInt – jono2.toInt def vertaaMerkkeja(jono1: String, jono2: String) = jono.compareToIgnoreCase(jono2) def onkoJarjestyksessa(eka: String, toka: String, kolmas: String, vertaa:(String, String)

Protected: [Arduino #22] Stepper motor learning curve is STEEP!!!

There is no excerpt because this is a protected post.

/ / Enter your password to view comments.

Protected: [Arduino #22] Stepper motor learning curve is STEEP!!!

There is no excerpt because this is a protected post.

/ / Enter your password to view comments.

Protected: [Scala] Constructors, Getters & Setters

There is no excerpt because this is a protected post.

/ / Enter your password to view comments.

Protected: [Scala] Constructors, Getters & Setters

There is no excerpt because this is a protected post.

/ / Enter your password to view comments.

[Arduino #20] JeeLabs RTC DS1340 tutorial for dummies

It may be inappropriate that I write a tutorial for dummies when I myself am also a dummy. Anyway I decided so because there isn’t really any tutorial out there. This tutorial was born thanks to my TA Sakari. Yes,

[Arduino #20] JeeLabs RTC DS1340 tutorial for dummies

It may be inappropriate that I write a tutorial for dummies when I myself am also a dummy. Anyway I decided so because there isn’t really any tutorial out there. This tutorial was born thanks to my TA Sakari. Yes,

[Scala] Vector, List, Array, Map, String

Array(0), Array.size, Array.indexOf(“first_element”), Array.mkString(“:”), Array.ofDim[Int](5) => Array[Int] = Array(0, 0, 0, 0, 0) val two_dimensional = Array.ofDim[Int](2, 3) => Array[Array[Int]] = Array(Array(0, 0, 0), Array(0, 0, 0)) Vector Methods Vector(1,2,3,4).max => 4 Vector(“a”, “bb”, “b”).max => bb Vector(0, -34, 102).sorted =>

[Scala] Vector, List, Array, Map, String

Array(0), Array.size, Array.indexOf(“first_element”), Array.mkString(“:”), Array.ofDim[Int](5) => Array[Int] = Array(0, 0, 0, 0, 0) val two_dimensional = Array.ofDim[Int](2, 3) => Array[Array[Int]] = Array(Array(0, 0, 0), Array(0, 0, 0)) Vector Methods Vector(1,2,3,4).max => 4 Vector(“a”, “bb”, “b”).max => bb Vector(0, -34, 102).sorted =>

[Arduino #20] LED helmet benchmarking

Project Aura has really cool solution for LED bike wheels. So far it’s the most sophisticated and practical solution. Found this indicator on crookedbrains. According to mixed Amazon reviews wireless communication is tricky. Let’s see how RF module will work for

[Arduino #20] LED helmet benchmarking

Project Aura has really cool solution for LED bike wheels. So far it’s the most sophisticated and practical solution. Found this indicator on crookedbrains. According to mixed Amazon reviews wireless communication is tricky. Let’s see how RF module will work for

[Arduino # 19]Park timer

How to show battery capacity Monitor battery level For timing, we can use a Real time clock board. To move the time wheel on the parking time indicator, we can use two gears: one big gear attached to a servo

[Arduino # 19]Park timer

How to show battery capacity Monitor battery level For timing, we can use a Real time clock board. To move the time wheel on the parking time indicator, we can use two gears: one big gear attached to a servo

[Arduino #18] Batteries and LCD tutorial.

I’ve found a “solution” for the battery problem – USB power pack. Its output is 5V-1A(Max). It’s mainly for mobile devices but you can also connect to Arduinos, Teensies or Raspberry Pi. The product above is the size of a

[Arduino #18] Batteries and LCD tutorial.

I’ve found a “solution” for the battery problem – USB power pack. Its output is 5V-1A(Max). It’s mainly for mobile devices but you can also connect to Arduinos, Teensies or Raspberry Pi. The product above is the size of a

[Arduino #17] LEDs & Serial communication & Buttons

My kind Mape introduced me a new kind of LED:  WS2812B http://www.seeedstudio.com is a good place to check out. About brightness: check Adafruit forum There is on-board led at Aliexpress. Here’s Sparkfun introduction on the LED. Serial Communication Crash Course

[Arduino #17] LEDs & Serial communication & Buttons

My kind Mape introduced me a new kind of LED:  WS2812B http://www.seeedstudio.com is a good place to check out. About brightness: check Adafruit forum There is on-board led at Aliexpress. Here’s Sparkfun introduction on the LED. Serial Communication Crash Course