Skip to content

Instantly share code, notes, and snippets.

View ThePredators's full-sized avatar
🎯
Focusing

Sbe-ng ThePredators

🎯
Focusing
View GitHub Profile
@ThePredators
ThePredators / AndroidWorkerInjection.java
Last active December 30, 2021 03:27
[Dagger] integration with workers (For Java People)
public class AndroidWorkerInjection {
public static void inject(Worker worker) {
checkNotNull(worker, "worker");
Object application = worker.getApplicationContext();
if (!(application instanceof HasWorkerInjector)) {
throw new RuntimeException(
String.format(
"%s does not implement %s",
application.getClass().getCanonicalName(),

⭐ Manipulate Audio/Video with FFmpeg

Install

brew install ffmpeg

How to use ?

Android (CheatSheet)

Developer Option

Huawei

Xiaomi

@ThePredators
ThePredators / readme-ruby.md
Last active July 21, 2023 14:20
[macOS] Ruby Install

🔥 Ruby Version Manager (CheatSheet)

  • ✅ Run the following script on your mac :
# without proxy
curl -L https://get.rvm.io | bash -s stable

🔥 Node Version Manager (CheatSheet)

Install :

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash

Usage :

## List available versions

🔥 Badges (CheatSheet)

This is easiest way to get this nice badge !

## url : https://img.shields.io/badge/version-1.0.0-green.svg
- static url : https://img.shields.io/badge/
- any text (can contain _) : version

🔥 Query tools (CheatSheet)

HTML

Instal

brew install htmlq

Usage