What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 10:25:39
maven executable jar
<!-- Thanks to the community and IAdapter https://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven --> <build> <plugins> <plugin> <artifactId>maven-assembly-plug... Add solution -
Javascript 2022-01-29 21:01:16
set width screen angular
@HostListener('window:resize', ['$event']) onResize(event?) { this.screenHeight = window.innerHeight; this.screenWidth = window.innerWidth; } //https://stackoverflow.com/questions/39888768/how-to-get-height-and-width-of-device-display-in-... Add solution -
Shell/Bash 2022-01-23 09:50:47
iodbc doesn't work on macos high sierra
#!/bin/bash # https://github.com/openlink/iODBC/issues/29 # https://bugs.mysql.com/bug.php?id=89931 base_src_dir="/usr/local" mysql_odbc_name=$(ls "$base_src_dir" | grep -m 1 "mysql-connector-odbc") odbc_dir="/Library/... Add solution -
Other 2022-01-23 08:42:06
No MediaQuery widget ancestor found.
Its because, the showModalBottomSheet tries to access the ancestor of type MaterialApp from the given context. Use Builder widget to get new context with MaterialApp ancestor or Separate your MaterialAapp and Scaffold widgets into separate widgets. Us... Add solution -
Kotlin 2022-01-23 06:46:47
android send email intent with chooser
class MailToExample{ private val url = "https://your_site_addres.xyz" @SuppressLint("SetJavaScriptEnabled") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.... Add solution