http://www.meetup.com/Latvian-Developers-Network/events/85092202/
$ cat /etc/apt/sources.list.d/erlang.list
deb http://binaries.erlang-solutions.com/debian precise contrib
$ sudo apt-get -y install esl-erlang
package te; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Container<T> { | |
public List<T> elems = new ArrayList<T>(); | |
public Container(T arg) { | |
this.elems.add(arg); |
class ArabicNumeralsTest extends GroovyTestCase { | |
def converter = new RomanNumerals() | |
void testOne() { | |
assert 1 == converter.toArabic("I") | |
} | |
void testDigit() { | |
assert 4 == converter.toArabic("IV") |
import Test.Hspec | |
import Data.List | |
anagrams :: [String] -> String -> [String] | |
anagrams lwords checkword = filter (wordsAreAnagrams checkword) lwords | |
wordsAreAnagrams :: String -> String -> Bool | |
wordsAreAnagrams a b = (a /= b) && (sort a == sort b) | |
allAnagrams :: [String] -> [[String]] |
transactional { | |
val delta = event.days // 7 days | |
val q = | |
""" | |
|construction_merchants [status = :active] {id} | |
|- | |
| construction_merchants merchant | |
|[merchant.prn_id = official_list.prn_id] official_list | |
|[official_list.child_id = member.prn_id] construction_merchants member | |
|[merchant.status = :active & member.status = :active & official_list.date_to = null & official_list.typ = :org] |
http://www.meetup.com/Latvian-Developers-Network/events/85092202/
$ cat /etc/apt/sources.list.d/erlang.list
deb http://binaries.erlang-solutions.com/debian precise contrib
$ sudo apt-get -y install esl-erlang
Homework for LDN event [Workshop: Clojure][event].
Follow [Immutant Tutorials][tutorials] and install [Leiningen][leiningen] and [Immutant][install].
import time | |
def cell_transition(alive, neighbour_count): | |
return neighbour_count in (2, 3) if alive else neighbour_count == 3 | |
class RectField(object): | |
def __init__(self, size, cells): | |
self.size = size |
I'm here not to teach you - see me as a guiding friend, a facilitator. We'll go together through a journey of getting better at some particular, non-hype, well understood yet sometimes problematic, still modern technology for developing web- and service-oriented applications. Hopefully it will give you a new perspective on how such things could be built.
It's up to you to choose what it'll be for you - an epic or a walk in the park. Most of the value will be to stay till the end, though.
To do the homework I expect about 5 hours of commitment per week -- similar to [Coursera]. Some colleagues already demonstrated that it could be done. But, compared to consuming nicely prepared material, we're on raw side this time -- you'll be setting your own tactical learning plan and digging for materials instead.
Last but not least, my opinion and judgments are always subjective.
object Main { | |
def main(args: Array[String]) { | |
val date = new Deserializer().deserialize[java.util.Date]("2014-02-15") | |
val ints = new Deserializer().deserialize2[Int]("[1, 2, 3]") | |
} | |
} | |
class Deserializer { | |
import scala.reflect.{ ClassTag, Manifest } |