create branch from another branch
git checkout -b subbranch_of_b1 branch1
move to different branch
git checkout branch1
git merge branch
git merge branch_to_merge_from
delete branch locally
var _tapPosition; | |
void _showCustomMenu() { | |
var overlay = Overlay.of(context)!.context.findRenderObject() as RenderBox; | |
showMenu( | |
context: context, | |
items: <PopupMenuEntry<int>>[PlusMinusEntry()], | |
position: RelativeRect.fromRect( | |
_tapPosition & const Size(40, 40), // smaller rect, the touch area |
create branch from another branch
git checkout -b subbranch_of_b1 branch1
move to different branch
git checkout branch1
git merge branch
git merge branch_to_merge_from
delete branch locally
import 'package:package_info/package_info.dart'; | |
/// Helper functions for version handling. | |
/// Note: For functions that only manipulate version conversions/formatting | |
class VersionHandler { | |
/// Validates a version object and returns true or false, e.g. major: 1, minor: 0, patch: 1 returns true | |
static bool isValidVersionObject(obj) { | |
return (obj.major is int && obj.minor is int && obj.patch is int && (obj.major != null && obj.minor != null && obj.patch != null) && (obj.major != 0 || obj.minor != 0 || obj.patch != 0)); | |
} |
/// Needed to make a regex that matched my criterias, there are a few regex already made that do not take into acount domais that end in .services | |
/// for international email please have a look at this regex https://rubular.com/r/bqNZ0WT0RMSaGV | |
main() async { | |
_checkEmail("a@a"); // false | |
_checkEmail("[email protected]"); // false | |
_checkEmail("s@asd,com"); // false | |
_checkEmail("[email protected],uk"); // false | |
_checkEmail("[email protected]"); // true | |
_checkEmail("[email protected]"); // true |
/// REF: https://stackoverflow.com/a/58345080/5232022 | |
class MyVerticalText extends StatelessWidget { | |
final String text; | |
const MyVerticalText(this.text); | |
@override | |
Widget build(BuildContext context) { | |
return Wrap( |
create database db3 charset latin1 collate latin1_swedish_ci; |
private void Notas_Load(object sender, EventArgs e) | |
{ | |
ClassBD classBD = new ClassBD(); // link a classDB | |
//SqlDataReader dataReader = classBD.ObterDadosCodigos(); // Obter os dados para popular a tabela | |
//DataTable table = new DataTable(); | |
//table.Load(dataReader); // Carrega os dados para a datatable | |
DataTable table = classBD.ObterDadosCodigos2(); | |
dataGridView1.DataSource = table; // Mostra valores na grid |
create database db21 charset latin1 collate latin1_swedish_ci; | |
create database db23 charset latin1 collate latin1_swedish_ci; | |
mysql -u root db22 < C:/Users/danie/Documents/Universidade/university/Databases/MariaDbDatabases/db4.sql | |
mysql -u root db22 > C:/Users/danie/Documents/Universidade/university/Databases/MariaDbDatabases/db55.sql | |
C:/Users/danie/Documents/Universidade/university/Databases/MariaDbDatabases/db-hp-calc-input.csv | |
-- insert products CSV |
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: db2 | |
-- ------------------------------------------------------ | |
-- Server version 10.4.13-MariaDB-1:10.4.13+maria~bionic | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8mb4 */; |
--- run mysql XAAMP >> mysql -u root mysql | |
------------------------------------------------------------------------ | |
-- DB 3 | |
------------------------------------------------------------------------ | |
create database db3 charset latin1 collate latin1_swedish_ci; | |
CREATE TABLE IF NOT EXISTS products ( | |
productID INT UNSIGNED NOT NULL AUTO_INCREMENT, | |
productCode CHAR(3) NOT NULL DEFAULT '', |