A Pen by supercode7000 on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const WrapApp()); | |
} | |
class WrapApp extends StatelessWidget { | |
const WrapApp({super.key}); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
author: Jonas Ermert | |
year: 2022 | |
*/ | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/bcrypt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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“; | |
} | |
} |