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 | |
""" | |
Translated from the example in | |
Deprecating the Observer Pattern (Maier, Rompf, Odersky) | |
http://lamp.epfl.ch/~imaier/pub/DeprecatingObserversTR2010.pdf | |
Their Scala example: | |
Reactor.once { self => | |
// step 1: |
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
def sayHello(any: Any): Try[String] = { | |
Try { | |
any match { | |
case x: String => "Hello" | |
case _ => throw new Exception("Huh!") | |
} | |
} | |
} //> sayHello: (any: Any)scala.util.Try[String] | |
def letMeSayHello = { |
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
-- phpMyAdmin SQL Dump | |
-- version 3.5.1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Client: localhost | |
-- Généré le: Jeu 13 Juin 2013 à 07:19 | |
-- Version du serveur: 5.5.24-log | |
-- Version de PHP: 5.4.3 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
([一-龯]) | |
Regex for matching Hirgana or Katakana | |
([ぁ-んァ-ン]) | |
Regex for matching Non-Hirgana or Non-Katakana | |
([^ぁ-んァ-ン]) | |
Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
NewerOlder