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
W/View (13351): requestLayout() improperly called by android.widget.TextView{425e2c60 V.ED.... ......ID 0,0-120,120 #1} during layout: running second layout pass | |
W/ResourceType(13351): No package identifier when getting name for resource number 0x00000001 | |
W/View (13351): requestLayout() improperly called by android.widget.TextView{425e2c60 V.ED.... ......ID 0,0-120,120 #1} during layout: running second layout pass | |
W/ResourceType(13351): No package identifier when getting name for resource number 0x00000001 | |
W/View (13351): requestLayout() improperly called by android.widget.TextView{425e2c60 V.ED.... ......ID 0,0-120,120 #1} during layout: running second layout pass | |
W/ResourceType(13351): No package identifier when getting name for resource number 0x00000001 | |
W/View (13351): requestLayout() improperly called by android.widget.TextView{425e2c60 V.ED.... ......ID 0,0-120,120 #1} during layout: running second layout pass | |
W/ResourceType(13351): No package identifier when getting name for resource number |
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
private def getMonthLetterForWeek(yearAndWeek: YearAndWeek): String = { | |
val day = yearAndWeek.firstDay | |
val currentDayCalendar = day.toCalendar(Locale.getDefault()) | |
val weekOfMonth = currentDayCalendar.get(Calendar.WEEK_OF_MONTH) | |
if (weekOfMonth < 5) { | |
val shortMonths = new DateFormatSymbols(Locale.ENGLISH).getShortMonths | |
val weekOfMonthIndex = weekOfMonth - 2 | |
if (weekOfMonthIndex < 0) "" else (shortMonths(day.getMonthOfYear - 1)(weekOfMonthIndex) + "").toUpperCase | |
} else { "" } | |
} |
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
E/AndroidRuntime(19512): FATAL EXCEPTION: main | |
E/AndroidRuntime(19512): java.lang.NoSuchMethodError: android.widget.TextView.setBackground | |
E/AndroidRuntime(19512): at fi.allacca.WeekViewRenderer.fi$allacca$WeekViewRenderer$$initDayView(weeks.scala:250) | |
E/AndroidRuntime(19512): at fi.allacca.WeekViewRenderer$$anonfun$updateView$1.apply$mcVI$sp(weeks.scala:137) | |
E/AndroidRuntime(19512): at fi.allacca.WeekViewRenderer$$anonfun$updateView$1.apply(weeks.scala:134) | |
E/AndroidRuntime(19512): at fi.allacca.WeekViewRenderer$$anonfun$updateView$1.apply(weeks.scala:134) | |
E/AndroidRuntime(19512): at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) | |
E/AndroidRuntime(19512): at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) | |
E/AndroidRuntime(19512): at scala.collection.immutable.Range.foreach(Range.scala:137) | |
E/AndroidRuntime(19512): at scala.collection.TraversableLike$class.map(TraversableLike.scala:245) |
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
class Jaba(option: Option[_]) { def whenEmpty(f: => Unit) { if (!option.isDefined) f } } | |
implicit def option2Jaba(o: Option[_]) = new Jaba(o) | |
val x: Option[Unit] = None | |
x whenEmpty { println("yeah") } |
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
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel | |
Warning: org.scalatest.tools.StatusJPanel: can't find referenced class javax.swing.JLabel |
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
> android:run | |
[info] Updating {file:/Users/auramo/src/allacca/}allacca... | |
[info] Resolving jline#jline;2.11 ... | |
[info] Done updating. | |
[info] Collecting resources | |
[info] Performing full resource merge | |
[info] Generating R.java | |
[info] Packaging resources: resources-debug.ap_ | |
[info] Rebuilding all classes because R.java has changed | |
[info] Regenerating TR.scala because R.java has changed |
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
function bindBarCodeValidation() { | |
$('#shoppingcart').debounced('input keyup', 'input[name="barcode"]', onSchedule, onFire, 500, rowIdentity); | |
function onSchedule() { | |
$(this).addClass('input-loader'); | |
return true; | |
} | |
function onFire() { validateBarcode($(this)); } |
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
function argumentsMapExample() { | |
_.map(arguments, function(arg) { console.log(arg); }) | |
} |
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
var initGlobalize = function() { | |
function init(callbacks) { | |
$.when( | |
$.get("/cldr/main/fi/ca-gregorian.json"), | |
$.get("/cldr/main/fi/currencies.json"), | |
$.get("/cldr/main/fi/numbers.json"), | |
$.get("/cldr/supplemental/currencyData.json"), | |
$.get("/cldr/supplemental/likelySubtags.json"), | |
$.get("/cldr/supplemental/timeData.json"), | |
$.get("/cldr/supplemental/weekData.json") |
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
var myUtil = (function() { | |
function doStuffToDate(date) {} | |
... | |
return { doStuffToDate: doStuffToDate, //other public funcs } | |
})(); | |
myUtil.doStuffToDate(date); //use | |
var dstd = myUtil.doStuffToDate; //"import" | |
//You can also "inline" the implementations if they're short |