Skip to content

Instantly share code, notes, and snippets.

View gouvinb's full-sized avatar

Bruno gouvinb

  • AppScho powered by Ready Education
  • France
View GitHub Profile
@mrmike
mrmike / gist:77fe2a6a357e78108115
Last active November 30, 2023 00:20
Remove extra space from Android spannable
private void setText(String html) {
SpannableStringBuilder spanned = (SpannableStringBuilder) Html.fromHtml(html);
spanned = trimSpannable(spanned);
mTextView.setText(spanned, TextView.BufferType.SPANNABLE);
}
private SpannableStringBuilder trimSpannable(SpannableStringBuilder spannable) {
checkNotNull(spannable);
int trimStart = 0;
int trimEnd = 0;
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@Pulimet
Pulimet / AdbCommands
Last active April 21, 2025 18:18
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.
@MichaelCurrin
MichaelCurrin / README.md
Last active March 28, 2025 00:35
Jekyll - how to build a REST API

Jekyll - how to build a REST API

Serve your data as static JSON

How to make a read-only JSON REST API using Jekyll.

This doesn't need any Ruby plugins - you just use some built-in templating features in Jekyll 3 or 4.

You will end up with a single JSON file contains data for all pages on the site, and another JSON file of just posts. Alternatively, you can replace every HTML page and post with a JSON version.