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
| [ | |
| { | |
| "id": "5872fe0f-34cc-4cd7-aa61-3bc534916a29", | |
| "name": "Jon Snow", | |
| "born": "283 AC", | |
| "title": "Lord Comandante de la Guardia Nocturna", | |
| "actor": "Kit Harington", | |
| "quote": "Sometimes there Is no happy choice, only one less grievous than the others.", | |
| "father": "Ned Stark", | |
| "mother": "", |
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
| # Versión de CircleCI | |
| version: 2 | |
| # Pipeline de ejecución | |
| jobs: | |
| build: | |
| working_directory: ~/code | |
| # Imagen de Docker en donde se ejecutarán nuestras pruebas | |
| docker: | |
| - image: circleci/android:api-25-alpha | |
| environment: |
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
| class ItemOffsetDecoration(@DimenRes val offsetId: Int) : RecyclerView.ItemDecoration() { | |
| override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State) { | |
| super.getItemOffsets(outRect, view, parent, state) | |
| val offset = view.context.resources.getDimensionPixelSize(offsetId) | |
| val position = parent.getChildAdapterPosition(view) | |
| val items = parent.adapter?.itemCount ?: 0 | |
| if (parent.layoutManager is GridLayoutManager) { |
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
| object ApiConstants { | |
| val genres: Map<Int, String> = mapOf( | |
| 28 to "Action", | |
| 12 to "Adventure", | |
| 16 to "Animation", | |
| 35 to "Comedy", | |
| 80 to "Crime", | |
| 99 to "Documentary", | |
| 18 to "Drama", | |
| 10751 to "Family", |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="142dp"> | |
| <com.keepcoding.filmica.view.utils.FadeImageView | |
| android:id="@+id/imgPoster" | |
| android:layout_width="0dp" |
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
| Candidate sent! janus.js:1320:4 | |
| Object { janus: "ack", session_id: 1924096615761089, transaction: "xgP56XgEwpQW" } | |
| janus.js:1321:4 | |
| Candidate sent! janus.js:1320:4 | |
| Object { janus: "ack", session_id: 1924096615761089, transaction: "uXKT36AzQujs" } | |
| janus.js:1321:4 | |
| Candidate sent! janus.js:1320:4 | |
| Object { janus: "ack", session_id: 1924096615761089, transaction: "jo4O3JTNXQUc" } | |
| janus.js:1321:4 | |
| Message sent! janus.js:1254:4 |
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
| import kotlin.math.sqrt | |
| open class Figura(var name: String, var area: Float, var perimetro: Float) { | |
| open fun calcularArea() { | |
| println("Area: ${area}") | |
| } | |
| open fun calcularPerimetro() { | |
| println("Perimetro: ${perimetro}") | |
| } | |
| } |
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
| fun main() = application { | |
| configure { | |
| width = 500 | |
| height = 500 | |
| } | |
| program { | |
| val size = 3 * width / 4.0 | |
| val easer = SineInOut() | |
| val duration = 50.0 |
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
| /** | |
| Wave iridescent gradient | |
| */ | |
| int size = 200; | |
| int waveTime = 40; | |
| void setup() { | |
| size(400, 400); | |
| pixelDensity(displayDensity()); |
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
| fun main() = application { | |
| configure { | |
| width = 520 | |
| height = 520 | |
| } | |
| program { | |
| val size = 5 * width / 6.0 | |
| val xOffset = -size / 2.0 | |
| val yOffset = -size / 2.0 |