Find every right triangle that fits all of these conditions:
- The lengths of the three sides are all integers.
- The length of each side is less than or equal to a 10.
- The triangle's perimeter (the sum of the side lengths) is equal to 24.
(def table-number->roman | |
[{:number 1000 :roman "M"} | |
{:number 900 :roman "CM"} | |
{:number 500 :roman "D"} | |
{:number 400 :roman "CD"} | |
{:number 100 :roman "C"} | |
{:number 90 :roman "XC"} | |
{:number 50 :roman "L"} | |
{:number 40 :roman "XL"} | |
{:number 10 :roman "X"} |
Find every right triangle that fits all of these conditions:
##Interfaces for presenters in MVP are a waste of time!
It's been a long time since we started talking about MVP. Today, the discussion is about if creating an interface for the Presenter in MVP is needed.
This is the Model View Presenter pattern's schema:
In this schema the Model box is related to all the code needed to implement your business logic, the presenter is the class implementing the presentation logic and the view is an interface created to abstract the view implementation.
/* | |
* Copyright (C) 2015 Karumi. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
<activity android:name="AwesomeActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.ASSIST"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
</intent-filter> | |
<meta-data | |
android:name="com.android.systemui.action_assist_icon" | |
android:resource="@drawable/app_icon"/> | |
</activity> |