Skip to content

Instantly share code, notes, and snippets.

@viniciusfbb
viniciusfbb / Skia.TextShadow.pas
Created January 22, 2023 14:07
Text shadow example using the Skia4Delphi library
uses
Skia, Skia.FMX.Graphics;
procedure TForm1.SkPaintBox1Draw(ASender: TObject; const ACanvas: ISkCanvas;
const ADest: TRectF; const AOpacity: Single);
var
LTextLayout: TSkTextLayout;
LPaint: ISkPaint;
begin
LTextLayout := TSkTextLayout.Create;

Android ADB over wifi

Some notes from my successes and failures.

Definitions

From the official docs

It is a client-server program that includes three components: >

@BurakDizlek
BurakDizlek / CountryFlags.java
Last active December 31, 2024 00:23
Get to flag unicode as String and use it anywhere.
public class CountryFlags {
private static String A = getEmojiByUnicode(0x1F1E6);
private static String B = getEmojiByUnicode(0x1F1E7);
private static String C = getEmojiByUnicode(0x1F1E8);
private static String D = getEmojiByUnicode(0x1F1E9);
private static String E = getEmojiByUnicode(0x1F1EA);
private static String F = getEmojiByUnicode(0x1F1EB);
private static String G = getEmojiByUnicode(0x1F1EC);
private static String H = getEmojiByUnicode(0x1F1ED);
private static String I = getEmojiByUnicode(0x1F1EE);
@EduardoGrtt
EduardoGrtt / uHTTPStatus.pas
Created November 8, 2018 18:03
[Delphi] http status code and descriptions. Copy from: https://github.com/gleisonpauloc/DelphiEasyRest
//HTTP status code from: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
unit uHTTPStatus;
interface
const
StatusContinue = 100; //[RFC7231, Section 6.2.1]
StatusSwitchingProtocols = 101; //[RFC7231, Section 6.2.2]
StatusProcessing = 102; //[RFC2518]
@lopspower
lopspower / README.md
Last active March 15, 2026 13:45
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: