Skip to content

Instantly share code, notes, and snippets.

@trynx
trynx / History\-1d76b5c0\entries.json
Last active Apr 17, 2022
Visual Studio Code Settings Sync Gist
View History\-1d76b5c0\entries.json
{"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}]}
@trynx
trynx / ActionTouch.java
Last active Jan 9, 2020
Android - Get touch on specific view by pixel
View ActionTouch.java
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 / src_Main.kt
Created Oct 26, 2019
Android Academy exercise
View src_Main.kt
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)))