Skip to content

Instantly share code, notes, and snippets.

@carlosleonam
carlosleonam / adianti-framework-order-datagrid-column-by-relation-field.md
Created April 13, 2024 16:24
Adianti Framework - TDATAGRID - Ordenação de Coluna por Campo Relacionado

TDATAGRID - Ordenação de Coluna por Campo Relacionado

No criação do Datagrid adicionar:

$order_fk_FOR_CODIGO_FOR_NOME = new TAction(array($this, 'onReload'));
$order_fk_FOR_CODIGO_FOR_NOME->setParameter('order', 'fk_FOR_CODIGO->FOR_NOME');
$column_fk_FOR_CODIGO_FOR_NOME->setAction($order_FOR_CODIGO);

Na onReload() abaixo de:

@MazeW
MazeW / nanodisplaytest.md
Last active April 20, 2024 01:20
Connecting an IPS TFT display (ST7789) to an arduino nano and testing image output.

Guide on connecting a ST7789 display to an Arduino Nano.

I recently decided to order an arduino nano and a tft display from AliExpress. When I looked up online it took me some time to find a clear guide how to connect the display to the arduino, either the display had different pins or it was a slightly different model, but with some trial and error, I managed to get it to work.

What you'll need for this:

  • 1x Arduino Nano
  • 1x AdaFruit 1.3" 240x240 ST7789 display
  • 6x jumper wires or whatever else you can use to connect

Connecting display to the arduino

@scriptdev
scriptdev / .php
Last active April 20, 2024 01:18
LINK DOWNLOAD DO ARQUIVO NO DATAGRID
<?php
/*
COMPONENTE : TFile
TIPO DE GRAVAÇÃO : Armazenar o conteúdo e nome do arquivo na tabela
COLUNA PARA ARMAZENAR OS DADOS : campo: base64_dados
COLUNA PARA ARMAZENAR O NOME DO ARQUIVO : campo: nome_arquivo
*/
$column_conteudo_arquivo_transformed->setTransformer(function($value, $object, $row)
@Laoruii
Laoruii / nanodisplaytest.md
Created April 20, 2024 01:16 — forked from MazeW/nanodisplaytest.md
Connecting an IPS TFT display (ST7789) to an arduino nano and testing image output.

Guide on connecting a ST7789 display to an Arduino Nano.

I recently decided to order an arduino nano and a tft display from AliExpress. When I looked up online it took me some time to find a clear guide how to connect the display to the arduino, either the display had different pins or it was a slightly different model, but with some trial and error, I managed to get it to work.

What you'll need for this:

  • 1x Arduino Nano
  • 1x AdaFruit 1.3" 240x240 ST7789 display
  • 6x jumper wires or whatever else you can use to connect

Connecting display to the arduino

@jsomers
jsomers / android-websters.md
Last active April 20, 2024 01:15
Instructions for using Webster's 1913 on Android

To use Webster's 1913 dictionary on Android, install Colordict 3, an app that accepts this StarDict format. https://play.google.com/store/apps/details?id=com.socialnmobile.colordict

Next download James's S3 archive. https://s3.amazonaws.com/jsomers/dictionary.zip

You will need to extract the .dict file from inside three containers - .dz, .tar, .bz2 from innermost to outermost. 7zip handles all of these formats.

Place the .dict, .idx and .ifo files in the dictdata directory on your sdcard or local storage root. This is where colordict looks for dictionaries.

When the files are in the right place, you can run Colordict and tap the folder icon in the top right to see the dictionaries installed and set the dictionary priority. I put the 1913 dictionary above the defaults "Wordnet" and "Wikipedia." When you look up a word, ColorDict shows the definition, if available, from these multiple sources.

@saeziae
saeziae / custom.css
Created April 19, 2024 15:23
Visuwual Stuwudio Cowode
.editor-group-watermark > .letterpress{
background-image: url(https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png) !important;
opacity: .75;
}
@journeymanavi
journeymanavi / production-web-server-setup-and-deployment-guide.md
Last active April 20, 2024 01:12
A runbook for setting up a Linux based secure, production web server, for serving static web content as well as deploying Node.js based web applications.
@techcoder20
techcoder20 / commands.md
Last active April 20, 2024 01:09
WinApps Installation Commands

Before Creating VM Debian:

sudo apt-get install -y freerdp2-x11 virt-manager
git clone https://github.com/Fmstrat/winapps.git

Arch:

# Installing Dependencies