---
title: test.u
---
hey = "yello"
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
@Composable | |
fun JoyAnim( | |
color: Color = Color(245, 198, 189, 128), | |
modifier: Modifier = Modifier.fillMaxSize().background(Color.Black) | |
) { | |
var lines by remember { | |
mutableStateOf(generateLines(0f, 0f)) | |
} | |
var paths by remember { | |
mutableStateOf(listOf<Path>()) |
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
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
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
package com.pt.treemap | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import android.graphics.Rect | |
import android.util.AttributeSet | |
import android.view.View | |
import com.pt.treemap.TreeMapView.Orientation.HORIZONTAL |
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
module HttpClient | |
import Control.App | |
import Network.Socket | |
import Types | |
public export | |
interface Has [Exception IOError] e => NetworkIO e where | |
getResponse : Request -> App e String |
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
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.compose.Composable | |
import androidx.compose.state | |
import androidx.ui.core.Text | |
import androidx.ui.core.setContent | |
import androidx.ui.foundation.HorizontalScroller | |
import androidx.ui.foundation.ScrollerPosition | |
import androidx.ui.foundation.shape.DrawShape | |
import androidx.ui.foundation.shape.RectangleShape |
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
SELECT device_model, COUNT(user_id) AS USERS | |
FROM app.data | |
WHERE user_id IN (SELECT user_id FROM app.data WHERE created_at BETWEEN TO_TIMESTAMP('01-01-2018', 'dd-mm-yyyy') AND TO_TIMESTAMP('01-07-2018', 'dd-mm-yyyy')) | |
AND user_id NOT IN (SELECT user_id FROM app.data WHERE created_at > TO_TIMESTAMP('01-07-2018', 'dd-mm-yyyy')) | |
GROUP BY device_model | |
NewerOlder