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/bin/env python3 | |
import os | |
import re | |
import sys | |
from pathlib import Path | |
from typing import Set, List, Tuple | |
from dataclasses import dataclass | |
@dataclass | |
class InjectClass: |
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
import androidx.compose.animation.core.CubicBezierEasing | |
import androidx.compose.animation.core.LinearEasing | |
import androidx.compose.animation.core.RepeatMode | |
import androidx.compose.animation.core.animateFloat | |
import androidx.compose.animation.core.animateFloatAsState | |
import androidx.compose.animation.core.infiniteRepeatable | |
import androidx.compose.animation.core.rememberInfiniteTransition | |
import androidx.compose.animation.core.tween | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.Box |
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/bin/env python3 | |
import subprocess | |
import shutil | |
import os | |
import argparse | |
from pathlib import Path | |
# Global dry run flag | |
DRY_RUN = False |
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
import os | |
import subprocess | |
from typing import Dict, Set | |
import re | |
# Constants | |
EVENTS_MODULE = "mover" | |
def checkout_core_repo() -> str: | |
"""Clone and checkout the core repository with shallow clone (no history), return its path""" |
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 | |
# Extract consumer ProGuard rules from all dependencies and generate an HTML report | |
# Author: Jan Rabe | |
set -e | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
cd "$SCRIPT_DIR" |
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
sudo killall mds && sudo mdutil -i on && sudo mdutil -E |
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
import os | |
import shutil | |
import argparse | |
def get_dir_size(dir_path): | |
"""Calculate the total size of a directory in bytes.""" | |
total_size = 0 | |
for dirpath, dirnames, filenames in os.walk(dir_path): | |
for filename in filenames: | |
file_path = os.path.join(dirpath, filename) |
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
import android.R | |
import android.app.Activity | |
import android.graphics.Rect | |
import android.view.View | |
import android.view.ViewTreeObserver | |
import android.widget.FrameLayout | |
class AndroidBug5497Workaround private constructor(activity: Activity) { | |
private val mChildOfContent: View |
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 ThreadsWatchDogInitializer: Initializer<Unit> { | |
@Inject lateinit var threads : ThreadsRepository | |
override fun create(context: Context) { | |
C24CoreApplication.inject(this) | |
threads.start() | |
} |
NewerOlder