Skip to content

Instantly share code, notes, and snippets.

@trynx
trynx / src_Main.kt
Created October 26, 2019 22:10
Android Academy exercise
import java.math.BigDecimal
import java.time.LocalDateTime
fun main() {
// Setup Test Orders
val firstOrderLines = listOf(OrdersAnalyzer.OrderLine(9872, "Pencil", 3, BigDecimal.valueOf(3)))
val firstOrder = OrdersAnalyzer.Order(554, LocalDateTime.parse("2017-03-25T10:35:20"), firstOrderLines)
val secondOrderLines = listOf(OrdersAnalyzer.OrderLine(9872, "Pencil", 2, BigDecimal.valueOf(3)),
OrdersAnalyzer.OrderLine(1746, "Eraser", 1, BigDecimal.valueOf(1)))
@trynx
trynx / ActionTouch.java
Last active January 9, 2020 13:35
Android - Get touch on specific view by pixel
public class ActionTouch implements View.OnTouchListener {
private View.OnClickListener onClickListener;
public ActionTouch(View.OnClickListener onClickListener) {
this.onClickListener = onClickListener;
}
@Override
public boolean onTouch(View v, MotionEvent event) {
@trynx
trynx / History\-1d76b5c0\entries.json
Last active April 17, 2022 10:58
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///c%3A/Program%20Files/Adobe/Adobe%20Photoshop%20CC%202019/Presets/Scripts/DuplicateLayerAndExportText.jsx","entries":[{"id":"CUsl.jsx","timestamp":1649839781848},{"id":"1WDE.jsx","timestamp":1649839796627}]}