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 */

Keybase proof

I hereby claim:

  • I am tech-andgar on github.
  • I am tech_andgar (https://keybase.io/tech_andgar) on keybase.
  • I have a public key whose fingerprint is 405D 3C62 108E BFB9 333D FEFE 4ABB 7505 8BD1 4F12

To claim this, I am signing this object:

@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 / readme.md
Created November 24, 2023 01:59
Fix huge memory process Logi Options + in Mac OS. Solved it with scheduling auto-killing the process every hour:

Open Terminal

Run EDITOR=nano crontab -e

0 * * * * killall "Logi Bolt"
#or
0 * * * * pkill -1 "logioptionsplus_agent"
@tech-andgar
tech-andgar / new_widget.dart
Created November 8, 2023 21:40
bug render flutter
import 'package:flutter/material.dart';
class NewWidget extends StatefulWidget {
const NewWidget({super.key});
@override
State<NewWidget> createState() => _NewWidgetState();
}
class _NewWidgetState extends State<NewWidget> {
ffmpeg \
-i input_video.mov \
-i spa.m4a -i eng.m4a \
-i spa.srt -i eng.srt \
-map 0:v -map 1:a -map 2:a -map 3:s -map 4:s \
-c:v copy -c:a:0 aac -c:a:1 aac -c:s mov_text -c:a copy \
-metadata:s:s:0 language=spa -metadata:s:s:1 language=eng \
-metadata:s:a:0 language=spa -metadata:s:a:1 language=eng \
-y output_video.mp4
void main() {
var ages = [33, 15, 27, 40, 22, 19, 32, 76, 45];
ages.sort();
print('La edad mayor es: ${ages.last}');
print('La edad menor es: ${ages.first}');
print('La edad promedio es: ${ageAvg(ages)}');
}
double ageAvg(List<int> ages) =>
(ages.reduce((value, element) => value + element)) / ages.length;
@tech-andgar
tech-andgar / checkGenericType.dart
Created March 27, 2023 18:18
Check Generic Type Dart
void main() {
checkGenericType<String>('Hello');
}
checkGenericType<T>(T value) {
print(T.toString());
if (T is String) {
print('l');
}