Skip to content

Instantly share code, notes, and snippets.

View maximgrynykha's full-sized avatar
🇺🇦
Any sufficiently advanced tech is indistinguishable from magic.

Maxim Grynykha maximgrynykha

🇺🇦
Any sufficiently advanced tech is indistinguishable from magic.
View GitHub Profile
@y2k-shubham
y2k-shubham / ImageTextRenderUtils.php
Created June 26, 2020 17:20
Utility PHP snippet to wrap text (meant to be rendered on image) using pixel width
<?php
namespace Utils;
class ImageTextRenderUtils {
/**
* Returns expected width of rendered text in pixels
@lopspower
lopspower / README.md
Last active July 24, 2024 11:39
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.

Download This sample on Google Play Store

@parmentf
parmentf / GitCommitEmoji.md
Last active July 24, 2024 23:03
Git Commit message Emoji
@johnciacia
johnciacia / border.php
Created November 7, 2010 19:57
Add a border to text using GD
<?php
/**
* Writes the given text with a border into the image using TrueType fonts.
* @author John Ciacia
* @param image An image resource
* @param size The font size
* @param angle The angle in degrees to rotate the text
* @param x Upper left corner of the text
* @param y Lower left corner of the text
* @param textcolor This is the color of the main text