This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.resut { display: table; } | |
.herra { | |
display: table-row; | |
border: 1px solid blue; | |
} | |
.herra span { display: table-cell; padding: 2px; border: 0.07em dashed red; } |
This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.resut { display: table; } | |
.herra { | |
display: table-row; | |
border: 1px solid blue; | |
} | |
.herra span { display: table-cell; padding: 2px; border: 0.07em dashed red; } |
This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.resut { display: table; } | |
.herra { | |
display: table-row; | |
border: 1px solid blue; | |
} | |
.herra span { display: table-cell; padding: 2px; border: 0.07em dashed red; } |
This file contains 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
D/dalvikvm( 9478): GC_CONCURRENT freed 405K, 5% free 9283K/9732K, paused 1ms+3ms, total 14ms | |
D/dalvikvm( 9478): GC_CONCURRENT freed 400K, 5% free 9280K/9732K, paused 1ms+2ms, total 14ms | |
D/dalvikvm(12560): GC_CONCURRENT freed 978K, 25% free 15096K/19864K, paused 2ms+9ms, total 61ms | |
D/dalvikvm(12560): WAIT_FOR_CONCURRENT_GC blocked 22ms | |
D/dalvikvm(12560): WAIT_FOR_CONCURRENT_GC blocked 22ms | |
D/dalvikvm(12560): WAIT_FOR_CONCURRENT_GC blocked 22ms | |
D/dalvikvm(12560): WAIT_FOR_CONCURRENT_GC blocked 21ms | |
D/dalvikvm( 9478): GC_CONCURRENT freed 391K, 5% free 9287K/9732K, paused 1ms+3ms, total 22ms | |
D/Finsky (10533): [1] 5.onFinished: Installation state replication succeeded. | |
D/dalvikvm( 9478): GC_CONCURRENT freed 406K, 5% free 9278K/9732K, paused 2ms+2ms, total 15ms |
This file contains 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
diff --git a/src/main/scala/fi/allacca/AllaccaMain.scala b/src/main/scala/fi/allacca/AllaccaMain.scala | |
index 3831c8e..320f207 100644 | |
--- a/src/main/scala/fi/allacca/AllaccaMain.scala | |
+++ b/src/main/scala/fi/allacca/AllaccaMain.scala | |
@@ -16,7 +16,7 @@ import android.view.animation.Animation.AnimationListener | |
class AllaccaMain extends Activity with TypedViewHolder { | |
private lazy val dimensions = new ScreenParameters(getResources.getDisplayMetrics) | |
- private lazy val weeksAdapter = new WeeksAdapter2(this, dimensions) | |
+ private lazy val weeksAdapter = new WeeksAdapter2(this, dimensions, agendaView) |
This file contains 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
$ 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 |
This file contains 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
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 |
This file contains 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
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) |
This file contains 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
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 |
This file contains 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
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 _ |
OlderNewer