Skip to content

Instantly share code, notes, and snippets.

@ArianK16a
ArianK16a / gist:4720c51a80ddb7c4207ff677c53b987c
Last active February 19, 2026 11:13
compare_auto_brightness.py
import xml.etree.ElementTree as ET
from pathlib import Path
import matplotlib.pyplot as plt
import bisect
XML_CONFIGS = [
("overlay/Frameworks/res/values/config.xml", "unicorn", False),
("config.xml", "unicorn - old", False),
# ("../cupid/overlay/Frameworks/res/values/config.xml", "cupid"),
# ("pantah/panther/overlay/frameworks/base/core/res/res/values/config.xml", "pantah"),
@ArianK16a
ArianK16a / generate_rro.sh
Created May 26, 2022 17:16
Generate buildable RRO package from prebuilts
#!/usr/bin/bash
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEBUG=0
if [[ ${DEBUG} != 0 ]]; then
log="/dev/tty"

How to build abl.elf for TP1803

  1. Initialize the tree: # repo init -u https://source.codeaurora.org/quic/la/la/system/manifest.git -b release

  2. Specify the system manifest you want to use: I wanted to use the LA.QSSI.11.0.r1-13000.02-qssi.0 tag, so i added .repo/manifest.xml with the following content:

import java.util.Arrays;
public class PCP {
final static int MAX_SIZE = 999999;
public static void main(String[] args) {
Tupel stein1 = new Tupel("11", "0", "a");
Tupel stein2 = new Tupel("11", "111", "b");
Tupel stein3 = new Tupel("1001", "1", "c");
breitensuche(stein1, stein2, stein3);
def collatz(n, methoden):
if n == 1:
print(methoden)
return
if n % 4 == 3:
collatz((n + 1) / 4, methoden=methoden + "1")
if n % 4 == 2:
return
seq = "ATAGCTGCCGATCGAGTAACCTAGAACGATCGATCGATCGGATACTAGGAATTCTAGCTAGCCGTAGCTAGGGATCGCCTAAAGTCGATGCTAATTAGCTATAACGGCTGAATTCTAGCTAGCCTTAAGCTAGCATAGCTAACTAGTAGCTAGAATTCTAGGGCTAATAGCTAGCTAGTAGCTTTATAACGCGATCGGATCG"
pattern = "GAATTC"
seq1 = [char for char in seq]
pattern1 = [char for char in pattern]
list = []
match_streak = 0
first_hit = []
#!/bin/bash
set -e
source "build/envsetup.sh";
# frameworks/base
changes=(
314580 # core: Spoof build fingerprint for Google Play Services
)
repopick -f -P frameworks/base ${changes[@]}&
#!/bin/bash
#
# Copyright (C) 2019-2021 ArianK16a
#
# SPDX-License-Identifier: Apache-2.0
#
export USERNAME=arian
export HOSTNAME=server
LOCAL_PATH="$(pwd)"
import codescape.Dogbot;
public class MyDogbot extends Dogbot {
public void run() {
// move(), turnLeft() und turnRight() werden benötigt
// Die Energiezellen sind ohne weitere Kenntnisse noch nicht erreichbar
// Dein Code hier:
int moves = 0;
#!/usr/bin/env python3
for i in range(1, 100):
if i % 15 == 0:
print("FizzBuzz")
elif i % 5 == 0:
print("Buzz")
elif i % 3:
print("Fizz")
else: