Skip to content

Instantly share code, notes, and snippets.

@OldMetalmind
OldMetalmind / main.dart
Last active April 30, 2024 16:30
Small Flutter Example
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
final invoices = [
Invoice(
invoiceId: 'INV-001',
invoiceDate: '2021-10-01',
@OldMetalmind
OldMetalmind / main.dart
Last active October 21, 2023 13:14
Dynamic and Function
dynamic applyA(dynamic x) {
if (x is Function) {
return (dynamic f) {
return (dynamic y) {
return f(x(y));
};
};
} else {
return (dynamic f) {
@OldMetalmind
OldMetalmind / event.md
Last active May 30, 2023 13:31
DevPT #7 Lisboa

Regista já na tua agenda. Temos data para o próximo meet DevPT em Lisboa!

Introdução

Neste Meet DevPT #7 irá acontecer em Lisboa, à semelhança do anterior vamos ter apresentações de temas variados. Poderás desta forma ter em primeira mão contacto com um tópico novo ou aprofundar conhecimento.

De seguida, convidamos-te a juntar-te a nós para jantar.

Agenda

@OldMetalmind
OldMetalmind / OnlineWorkshopScenes.json
Created March 16, 2020 22:51
OBS Scenes used in FlutterPortugal+GDGLisbon Online Workshop
{
"AuxAudioDevice1": {
"balance": 0.5,
"deinterlace_field_order": 0,
"deinterlace_mode": 0,
"enabled": true,
"flags": 0,
"hotkeys": {
"libobs.mute": [],
"libobs.push-to-mute": [],
@OldMetalmind
OldMetalmind / grab_json
Created February 13, 2020 16:21
Grab JSON from source
# Core
import time
import json
# Third-party
import requests
from bs4 import BeautifulSoup
SOURCE = requests.get("<ENDPOINT>")
soup = BeautifulSoup(SOURCE.text, "html.parser")
@OldMetalmind
OldMetalmind / HowToGetGooglePlayTransactionId.md
Created April 4, 2018 14:37
When you need to transfer your app android to another Google Play account.

How to get Google Play Transaction Id

To easily find your Transaction ID for you Google Play Android Account, follow these steps:

  1. Go to your Google Payments page to the Subscriptions and services > Other purchase activity, you can click here: https://payments.google.com/payments/u/0/home#oneTimePurchase

  2. Find the transaction, normally the oldest, with the description "Android" android transaction

Keybase proof

I hereby claim:

  • I am oldmetalmind on github.
  • I am filipebarroso (https://keybase.io/filipebarroso) on keybase.
  • I have a public key whose fingerprint is E43F 80EF 8A99 6F2F DB2F 427F BD21 94A1 2CC7 D1FD

To claim this, I am signing this object:

Tech Talk: Linus Torvalds on git
https://www.youtube.com/watch?v=4XpnKHJAok8
Download GIT
https://git-scm.com/downloads
Software
https://www.gitkraken.com/
https://www.sourcetreeapp.com/
if(_exitApp)
{
finish();
}
else
{
_exitApp = true;
showMessage( FPFContext.getInstance().getResourceManager().getString( R.string.click_to_exit ) );