Skip to content

Instantly share code, notes, and snippets.

View loukwn's full-sized avatar
Fueling up

Konstantinos Lountzis loukwn

Fueling up
  • Nutmeg
  • London, UK
  • 09:52 (UTC +01:00)
View GitHub Profile
name: PR checks
on:
issue_comment:
types: [ created, edited ]
pull_request:
branches:
- master
jobs:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<com.loukwn.stagestepbar.StageStepBar
android:id="@+id/stageStepbar"
android:layout_width="match_parent"
android:layout_height="200dp"
class ViewTests {
@get:Rule
val paparazzi = Paparazzi() // This can be configured to use different devices etc.
private lateinit var stageStepBar: StageStepBar
private lateinit var parentView: FrameLayout
private lateinit var testNameTextView: TextView
@Before
@loukwn
loukwn / gist:49fe3d9c4a809acb2a66c9b0af20029b
Created February 9, 2019 20:39
Install a gnome shell extension from a zip
#!/bin/bash
username=$(whoami)
if [[ $# -eq 0 ]]; then
echo "No arguments supplied"
else
# get the extension uuid
ext_name=$(unzip -c $1 metadata.json | grep uuid | cut -d \" -f4)
@loukwn
loukwn / NestedRecycler.java
Last active December 3, 2019 08:53
A recyclerview that respects the nested scrolling of its children (Translated from its kotlin version here https://medium.com/widgetlabs-engineering/scrollable-nestedscrollviews-inside-recyclerview-ca65050d828a ) Credits for the original code go to Marc Knaup.
import android.content.Context;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.v4.view.NestedScrollingParent;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class NestedRecycler extends RecyclerView implements NestedScrollingParent {