Skip to content

Instantly share code, notes, and snippets.

@tech-andgar
tech-andgar / main.dart
Created June 30, 2024 21:59 — forked from TahaTesser/main.dart
MatrixTransition demo with rotateX, rotateY, & rotateZ matrices
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:window_manager/window_manager.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
const WindowOptions windowOptions = WindowOptions(
/**
* Print Stylesheet fuer Deinewebsite.de
* @version 1.0
* @lastmodified 16.06.2016
*/
@media print {
/* Inhaltsbreite setzen, Floats und Margins aufheben */
/* Achtung: Die Klassen und IDs variieren von Theme zu Theme. Hier also eigene Klassen setzen */
@tech-andgar
tech-andgar / ublock
Created April 21, 2024 21:57 — forked from jaydorsey/ublock
uBlock for LinkedIn
# Block things on LinkedIn with uBlock Origin that LinkedIn won't let you block
# Choose "Options" in uBlock Origin with a right-click, and add these to
# "My filters"
# ADDING YOUR OWN FILTERS
#
# Using Linkedin.com as an example
#
# 1. Open up the webpage
# 2. Find some text you want to block
@tech-andgar
tech-andgar / github_bitbucket_multiple_ssh_keys.md
Created March 26, 2024 13:44 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@tech-andgar
tech-andgar / main.dart
Created February 13, 2023 15:51 — forked from justinmc/main.dart
Flutter Forward 2023: Example of adding a custom button to a TextField's context menu on all platforms.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@tech-andgar
tech-andgar / main.dart
Created February 13, 2023 15:13 — forked from flutterdevrelgists/main.dart
Adaptive UI Talk LayoutBuilder Example
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Flutter code sample for [LayoutBuilder].
import 'package:flutter/material.dart';
void main() => runApp(const LayoutBuilderExample());
@tech-andgar
tech-andgar / main.dart
Created February 13, 2023 14:26 — forked from justinmc/main.dart
Flutter Forward 2023: An example of adapting to window size using MediaQuery.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@tech-andgar
tech-andgar / main.dart
Created February 13, 2023 14:26 — forked from flutterdevrelgists/main.dart
Adaptive UI Talk FocusableActionDetector Example
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
@tech-andgar
tech-andgar / main.dart
Created February 13, 2023 14:20 — forked from flutterdevrelgists/main.dart
Adaptive UI Talk: Example of handling light mode and dark mode in Cupertino.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart' show Icons;
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@tech-andgar
tech-andgar / analysis_options.yaml
Created November 21, 2021 01:15 — forked from rydmike/analysis_options.yaml
RydMike lints v1.2.6 - Personal preferences and my starting point for my Dart & Flutter linter rules setup
# RydMike LINTER Preferences v1.2.6
# This gist: https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
# Include and activate all lint rules, later below we disable the not used or desired ones.
# You can find a list of all lint rules to put in your all_lint_rules.yaml file here:
# https://dart-lang.github.io/linter/lints/options/options.html
# For a comparison of all lint rules settings in rule styles listed below, please see this
# sheet: https://docs.google.com/spreadsheets/d/1Nc1gFjmCOMubWZD7f2E4fLhWN7LYaOE__tsA7bf2NjA
include: all_lint_rules.yaml
analyzer:
exclude: