-
A computer (tested on Windows 10, but I don't see any reason it won't work with macOS or Linux).
-
A LineageOS 16/17 compatible phone (LineageOS 16 is recommended, some users reported random crash on LineageOS 17).
-
Download the minimal ADB from XDA Developers Forum and unzip it.
This file contains hidden or 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
class _Ternary<out T>(val condition: Boolean, val ifTrue: T) | |
infix fun <T> Boolean.then(ifTrue: T): _Ternary<T> = _Ternary(this, ifTrue) | |
infix fun <T> _Ternary<T>.otherwise(ifFalse: T): T = if (condition) ifTrue else ifFalse | |
const val tellMeTheTruth: Boolean = true | |
val result: String = tellMeTheTruth then "I'll believe you" otherwise "I'll never trust you" |
This file contains hidden or 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
#!/bin/bash | |
order=("screenName" "eventCategory" "eventAction" "eventLabel") | |
printf '%s;' ${order[@]} > $1.csv | |
echo >> $1.csv | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
if ! [[ "$line" == *"Passing"* ]]; then continue; fi | |
IFS=',' read -r -a split <<< "$line" |
This file contains hidden or 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
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
This file contains hidden or 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.xwray.vectorbinding; | |
import android.databinding.BindingAdapter; | |
import android.databinding.DataBindingUtil; | |
import android.graphics.drawable.Drawable; | |
import android.os.Bundle; | |
import android.support.graphics.drawable.VectorDrawableCompat; | |
import android.support.v7.app.AppCompatActivity; | |
import android.widget.TextView; |
This file contains hidden or 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
android_binary( | |
name = 'app', | |
manifest = 'AndroidManifest.xml', | |
keystore = ':debug_keystore', | |
use_split_dex = True, | |
primary_dex_patterns = [ | |
'^com/tryroll/roll/AppShell^', | |
'^com/tryroll/roll/debug/AppShell^', | |
'^com/tryroll/roll/BuildConfig^', |
This file contains hidden or 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
/* ftee - clone stdin to stdout and to a named pipe | |
(c) racic@stackoverflow | |
WTFPL Licence */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> |
This file contains hidden or 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
remove mod4 = Super_L | |
add control = Super_L | |
remove control = Control_L | |
add mod4 = Control_L |
This file contains hidden or 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
### colormath is needed to run the script | |
### Ubuntu users can get it by typing the 2 command below - | |
### `sudo apt-get install python-pip` | |
### `sudo pip install colormath` | |
from colormath.color_objects import sRGBColor, LabColor | |
from colormath.color_conversions import convert_color | |
from colormath.color_diff import delta_e_cie2000 | |
# Red Color |
This file contains hidden or 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
#!/usr/local/bin/lua | |
Alah = {} | |
Alah.__index = Alah | |
function Alah:new(latin, arabic, portuguese) | |
o = {} | |
setmetatable(o, self) | |
self.__index = self | |
self.latin = latin |
NewerOlder