Skip to content

Instantly share code, notes, and snippets.

View adrianoalves's full-sized avatar
😊

Adriano Alves adrianoalves

😊
  • Allright
  • Sao Paulo
View GitHub Profile
@adrianoalves
adrianoalves / Dockerfile
Last active March 14, 2023 23:21
Debian Dockerfile for PWA/SPA/SSR frontend development using Quasar Framework
FROM debian:bullseye
WORKDIR /var/www
SHELL ["/bin/bash", "-l", "-euxo", "pipefail", "-c"]
# installing minimum packages to get it started
RUN apt-get update; \
apt-get full-upgrade -y; \
apt-get install -y --no-install-recommends \
ca-certificates \
@adrianoalves
adrianoalves / gist:1205339
Last active April 10, 2017 16:42
WideImage: instanciando e inserindo legenda com sombreado e marca d'agua
<?php
// testando manipulacao de imagens com API WideImage
$image = WideImage_Image::load( APPLICATION_PATH.'/../public/img/front/icon/64/image.jpg' )->resize(null, 500);
$waterMark = WideImage_Image::load( APPLICATION_PATH.'/../public/img/front/icon/64/php.png' )->resize(100);
// obtendo o canvas da imagem para escrever sobre ela
$canvas = $image->getCanvas();
$canvas->useFont('fonts/GOTHIC.TTF', 18, $image->allocateColor(100, 100, 115) );
$canvas->writeText('center', 'bottom-10', 'legenda para a imagem');