Skip to content

Instantly share code, notes, and snippets.

View seanlilmateus's full-sized avatar

Mateus seanlilmateus

View GitHub Profile
@frankrausch
frankrausch / String+Hyphenation.swift
Last active June 15, 2023 16:45
Returns a String with soft hyphens (U+00AD)
import Foundation
extension String {
func hyphenated(languageCode: String) -> String {
let locale = Locale(identifier: languageCode)
return self.hyphenated(locale: locale)
}
func hyphenated(locale: Locale) -> String {
@Pulimet
Pulimet / AdbCommands
Last active April 25, 2025 17:24
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@slaypni
slaypni / pmap.kt
Last active January 9, 2020 11:37
Parallel map for kotlin
import kotlinx.coroutines.experimental.async
import kotlin.coroutines.experimental.CoroutineContext
suspend fun <T, R> Iterable<T>.pmap(context: CoroutineContext, transform: suspend (T) -> R): List<R> {
return this.map {
async(context) {
transform(it)
}
}.map { it.await() }
}
@saantiaguilera
saantiaguilera / service_call_test.py
Last active February 15, 2018 14:40 — forked from ktnr74/service_call_test.py
*update_transaction_codes.py* parses Android services source code to find out transaction codes and saves them in YAML format for later use. *transaction_codes.yaml* is an example of the resulting file. *service_call_test.py* shows how it can be used
#!/usr/bin/python
import os
import sys
import time
import yaml
import subprocess
import re
import struct
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 25, 2025 17:14
Hyperlinks in Terminal Emulators
@Subv
Subv / nintendo_uds_dissector.lua
Created March 17, 2017 20:32
Wireshark dissector for the UDS protocol of the Nintendo 3DS
local TAG_VENDOR_SPECIFIC_IE = 0xDD
local uds = Proto("nin_uds", "Nintendo UDS Protocol")
local oui = ProtoField.new("OUI", "nin_uds.oui", ftypes.UINT24, nil, base.HEX)
local oui_type = ProtoField.new("OUI Type", "nin_uds.oui_type", ftypes.UINT8)
local tag20_data = ProtoField.new("Tag 20 data", "nin_uds.tag20.data", ftypes.UINT24, nil, base.HEX)
-- Tag 21 fields
-- NetworkInfo structure fields
@CodaFi
CodaFi / Proposal.md
Last active October 12, 2023 00:03
@ca0v
ca0v / debounce.ts
Last active April 10, 2025 21:15
Typescript Debounce
// ts 3.6x
function debounce<T extends Function>(cb: T, wait = 20) {
let h = 0;
let callable = (...args: any) => {
clearTimeout(h);
h = setTimeout(() => cb(...args), wait);
};
return <T>(<any>callable);
}
@phansch
phansch / yardoc_cheatsheet.md
Last active April 22, 2025 12:15 — forked from chetan/yardoc_cheatsheet.md
Improved YARD cheatsheet
@anaisbetts
anaisbetts / subscription.rs
Created December 7, 2016 18:40
Rx Subscription in Rust
use std::cell::RefCell;
use std::collections::LinkedList;
use std::sync::atomic::*;
pub trait Subscription {
fn unsubscribe(&mut self);
fn closed(&self) -> bool;
}
/*