I hereby claim:
- I am timorantalaiho on github.
- I am timo (https://keybase.io/timo) on keybase.
- I have a public key whose fingerprint is EC85 6855 1281 A3F4 AD25 A416 4052 3C0D F3B3 6EBF
To claim this, I am signing this object:
__________________________________________________________ | |
/ TASK: 3rdparty/postgresql | Install pgdg package signing \ | |
\ key (Debian/pgdg) / | |
---------------------------------------------------------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || |
...starting application with command "sudo /usr/local/bin/run_app.bash /var/www/current/va.jar /var/www/current/config/test.edn" ... | |
...checking that it really comes up, with /usr/local/bin/health_check.bash ... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to va-test port 8081: Connection refused | |
...no dice yet, sleeping for 3 seconds and trying again... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed |
$ lein deps | |
Retrieving speclj/speclj/3.2.0/speclj-3.2.0.pom from clojars | |
Retrieving org/clojure/clojure/1.6.0/clojure-1.6.0.pom from central | |
Retrieving fresh/fresh/1.0.2/fresh-1.0.2.pom from clojars | |
Retrieving org/clojure/clojure/1.2.0/clojure-1.2.0.pom from central | |
Retrieving mmargs/mmargs/1.2.0/mmargs-1.2.0.pom from clojars | |
Retrieving org/clojure/clojure/1.2.1/clojure-1.2.1.pom from central | |
Retrieving trptcolin/versioneer/0.1.1/versioneer-0.1.1.pom from clojars | |
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central | |
Retrieving lein-environ/lein-environ/1.0.0/lein-environ-1.0.0.pom from clojars |
fn main() { | |
rekursoi(0); | |
} | |
fn rekursoi(n: i64) -> i64 { | |
if (n % 100 == 0) { | |
println!("{} loops", n); | |
} | |
rekursoi(n + 1) |
I hereby claim:
To claim this, I am signing this object:
scala> List(1,2,3,4,5).partition(_ < 3) | |
res0: (List[Int], List[Int]) = (List(1, 2),List(3, 4, 5)) | |
scala> List(1,2,3,4,5).span(_ < 3) | |
res1: (List[Int], List[Int]) = (List(1, 2),List(3, 4, 5)) | |
scala> :t List(1,2,3,4,5).span _ | |
(Int => Boolean) => (List[Int], List[Int]) | |
scala> :t List(1,2,3,4,5).partition _ |
user=> (doseq [x (take 5 (map (partial + 1) (iterate inc 0)))] (println x)) | |
1 | |
2 | |
3 | |
4 | |
5 | |
nil | |
user=> (map println (take 5 (map (partial + 1) (iterate inc 0)))) | |
(1 | |
2 |
D/ALLACCA (13144): 2014-11-4 06:41:25.726 elapsed time weeks.createWeekView: 14617920 ns (14.61792 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.734 elapsed time weeks.updateView: 2593994 ns (2.593994 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.740 elapsed time weeks.updateView: 2044678 ns (2.044678 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.744 elapsed time weeks.updateView: 1953125 ns (1.953125 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.749 elapsed time weeks.updateView: 1831055 ns (1.831055 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.753 elapsed time weeks.updateView: 1831054 ns (1.831054 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.758 elapsed time weeks.updateView: 1953125 ns (1.953125 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.762 elapsed time weeks.updateView: 2197265 ns (2.197265 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.767 elapsed time weeks.updateView: 2197266 ns (2.197266 ms) | |
D/ALLACCA (13144): 2014-11-4 06:41:25.771 elapsed time weeks.updateView: 2136231 ns (2.136231 ms) |
D/ALLACCA (22072): 2014-28-3 20:59:13.305 rendering Roihuvuorikaronkka () 28.3.2014 02:00 - 30.3.2014 02:00 | |
D/ALLACCA (22072): 2014-28-3 20:59:13.306 rendering rock. () 28.3.2014 02:00 - 29.3.2014 02:00 | |
D/ALLACCA (22072): 2014-28-3 20:59:13.307 rendering Retro () 28.3.2014 12:30 - 28.3.2014 14:00 | |
D/ALLACCA (22072): 2014-28-3 20:59:13.308 rendering Sauna () 28.3.2014 18:00 - 28.3.2014 19:00 | |
D/ALLACCA (22072): 2014-28-3 20:59:13.993 rendering Roihuvuorikaronkka () 28.3.2014 02:00 - 30.3.2014 02:00 | |
D/ALLACCA (22072): 2014-28-3 20:59:13.994 rendering rock. () 28.3.2014 02:00 - 29.3.2014 02:00 |
$ git diff | |
diff --git a/src/main/scala/fi/allacca/agenda.scala b/src/main/scala/fi/allacca/agenda.scala | |
index c91d1a1..2827c72 100644 | |
--- a/src/main/scala/fi/allacca/agenda.scala | |
+++ b/src/main/scala/fi/allacca/agenda.scala | |
@@ -19,6 +19,7 @@ import scala.collection.mutable | |
import android.view.View.OnLongClickListener | |
import fi.allacca.Logger._ | |
import java.util.Locale | |
+import scala.Some |