Skip to content

Instantly share code, notes, and snippets.

Daniele Conti fourlastor

  • London, UK
Block or report user

Report or block fourlastor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fourlastor / viewer.html
Created Feb 17, 2020
Espresso hierarchy dump analyzer
View viewer.html
<!DOCTYPE html>
<meta charset="UTF-8">
<textarea id="hierarchy-text" cols="30" rows="10">
+>DecorView{id=-1, visibility=VISIBLE, width=320, height=470, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=WM.LayoutParams{(0,0)(fillxfill) sim=#3 ty=1 fl=#81810100 pfl=0x20000 wanim=0x10302f6 needsMenuKey=2 colorMode=0}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}
# usage: nordvpn [server=nl21] [protocol=udp|tcp]
nordvpn() {
# folder where you extracted the openvpn config files from
View Curry.kt
operator fun <P1, P2, R> ((P1, P2) -> R).invoke(): (P1) -> (P2) -> R {
return {p1: P1 -> { p2: P2 -> this(p1, p2) } }
operator fun <P1, P2, P3, R> ((P1, P2, P3) -> R).invoke(): (P1) -> (P2) -> (P3) -> R {
return {p1: P1 -> { p2: P2 -> { p3: P3 -> this(p1, p2, p3) }}}
fun add(p1: Int, p2: Int): Int = p1 + p2
fourlastor /
Last active Mar 20, 2016 — forked from rock3r/
Grabs all DNG files from the connected Android device's camera roll
import argparse, os, subprocess
# Grab the script directory to use as default
current_directory = os.path.dirname(os.path.abspath(__file__))
def parse_cli_arguments():
parser = argparse.ArgumentParser(description = 'Grabs all DNG files from the connected Android device\'s camera roll.')
parser.add_argument('--output-path', type = str, help = 'The path to download the DNGs to. Default: {script_path}/raw',
View gist:208c02bcf6e5945a2fe6
* Original requirement:
* if a > b, return 1, if a == b return 0, if a < b return -1
* Day 1
* Paul comes in and does untested code which has a bug
You can’t perform that action at this time.