🤓 Code Snippets

Share and store your most common code snippets. Use our snippet explanation generator to use AI to try and explain the code.

Flutter Env Paths

plaintext
export FLUTTER_PATH="/opt/flutter_linux_2.2.1-stable/flutter/bin"
              export ANDROID_HOME="/home/amar-nix/Documents/androidSdk"
              export ANDROID_TOOLS="/home/amar-nix/Documents/androidSdk/tools"
              export ANDROID_PLATFORM_TOOLS="/home/amar-nix/Documents/androidSdk/platform-tools"
              export ANDROID_COMMAND_LINE_TOOLS="/home/amar-nix/Documents/androidSdk/cmdline-tools/latest/bin"
              export PATH="$PATH:/usr/bin/java"
              export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"

Ahmad Iqbal

2 years ago

document.addEventListener("DOMContentLoaded", function(){
  // Handler when the DOM is fully loaded
});

Tony Lea

2 years ago

1
window.addEventListener('scroll', function() {
    console.log('scrolling');
});

// Alternative version
window.onscroll = function() {
    console.log('scrolling');
};

Tony Lea

2 years ago

1

Tony Lea

2 years ago

docker run -d  --name mongo-on-docker  -p 27888:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=secret mongo

Bobby Iliev

2 years ago

Load More