Skip to content

Instantly share code, notes, and snippets.

View jonasermert's full-sized avatar
🎯
Focusing @ Flutter

Jonas jonasermert

🎯
Focusing @ Flutter
View GitHub Profile
@jonasermert
jonasermert / humpday_2024-08-28_1.dart
Created April 2, 2025 17:07 — forked from slightfoot/humpday_2024-08-28_1.dart
Animated Scrolling Custom Bottom Sheet - by Simon Lightfoot - Humpday Q&A :: 28th August 2024 #Flutter #Dart https://www.youtube.com/watch?v=AibrECd4gpg
// MIT License
//
// Copyright (c) 2024 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@jonasermert
jonasermert / animated_partial_height_sheet.dart
Created April 2, 2025 16:47 — forked from slightfoot/animated_partial_height_sheet.dart
Animated Partial Height Sheet - by Simon Lightfoot - Humpday Q&A - 01/11/2023 - https://www.youtube.com/watch?v=S9C496aj1cA
// MIT License
//
// Copyright (c) 2023 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@jonasermert
jonasermert / html_widget.dart
Created February 21, 2025 09:55
HTML WIdget
import 'dart:html' as html;
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
final Map<int, HtmlElementWidgetState> _widgetRef = {};
@jonasermert
jonasermert / humpday_2024-09-11_1.dart
Created September 12, 2024 13:24 — forked from slightfoot/humpday_2024-09-11_1.dart
Max Cross Axis Wrap Example - by Simon Lightfoot - Humpday Q&A :: 11th September 2024 #Flutter #Dart - https://www.youtube.com/watch?v=LbpboHb49PM
import 'package:flutter/material.dart';
void main() {
runApp(const WrapApp());
}
class WrapApp extends StatelessWidget {
const WrapApp({super.key});
@override
@jonasermert
jonasermert / SendingMailWithGolang.go
Created January 28, 2022 01:03
Sending mail with Goland Standard Library
package mail
from := "Your email adress"
auth := smtp.PlainAuth("Username", from, "", "Serveradress")
err = smtp.SendMail("Server:Port", auth, from, []string{"emailOfRecipient"}, []byte{"Your email content"})
if err != nil {
log.Println(err)
}
/*
author: Jonas Ermert
year: 2022
*/
package main
import (
"fmt"
"golang.org/x/crypto/bcrypt"
import java.io.FileInputStream;
import java.util.Properties;
public class ReadPropertiesFile {
public static void main(String[] args) {
FileInputStream fis = new FileInputStream("Path to file");
Properties prop = new Properties();
prop.load(fis);
@jonasermert
jonasermert / hover-button-animation-with-transition-2.markdown
Created October 29, 2021 22:58
hover button animation with transition #2
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git
@jonasermert
jonasermert / String in String suchen PHP
Created October 22, 2017 08:12
String in String suchen PHP
function outputStringPositionsFunctionNew2($longText, $searchTexts){
foreach ($searchTexts as $searchText){
$tmpArray = array();
if(preg_match(‚/‘.$searchText.’/s‘,$longText,$tmpArray,PREG_OFFSET_CAPTURE))
echo $tmpArray[0][1].“\n“;
}
}