Stratagem 25 - Use dotenv to read secrets 🤫 ➡️ Don't store usernames, passwords, api keys in your code directly and commit into git. Store them in a separate file and add the file in .gitignore ✅ dotenv package is a very light python package that looks for .env file and loads the information as environment variables 📝 Check out the notebook here - https://lnkd.in/eJdvZ_MF ✨ Stratagems Collection - https://lnkd.in/gYEgpQfg #StratagemGIS
StratagemGIS Solutions’ Post
More Relevant Posts
-
#day2 update of #100daysofcode : with some conventional programs, my day was awesome including Armstrong, the sum of array, max in an array, and the most interesting "FizzBuzz" exercise. Need help if someone can, I am facing challenge in pushing my commits into gitHub, some authentication issue with git in PyCharm. I have pushed changes forcefully using the terminal. but, need a proper solution. Maybe I will try to solve this by tomorrow. however, helping with this issue will be highly appreciated. The code is available on GitHub with comments in each program file, see you tomorrow with some new challenges and lines of code. https://lnkd.in/dnX9Nnxj #codenewbie #100daysofcodechallenge #pythonprogramming #python #pythoncoding
To view or add a comment, sign in
-
The views and opinions expressed in my posts are solely my own and do not necessarily reflect the official policy or position of any company, organization, or individual I am associated with.
#!/bin/bash # Install required dependencies sudo apt-get update sudo apt-get install -y git python3 python3-pip # Clone the repository git clone https://lnkd.in/gZNacKng # Enter the repository directory cd LTE-Cell-Scanner # Install Python dependencies pip3 install -r requirements.txt # Run the script python3 lte_cell_scanner.py
To view or add a comment, sign in
-
My puppy friend is getting smart...generatively smart! (that's not a word, but so what) Puppy is a CLI tool that generates isolated #python #environments via pixi and uv, in complete isolation from your system - everything lives in one folder. Here's the commands it learned so far: pup --help Usage: pup.py [OPTIONS] COMMAND [ARGS]... Commands: fetch Fetch (install) packages with uv. kernel Interactively create new ipython kernel linked to 🐶's... list List packages. new Create a new virtual environment in <WHERE> folder. which Show 🐶's current home. And now... play Launch jupyter notebook with added code cells. Puppy will generate, execute, and open your Jupyter notebooks, and even populate them with external scripts. Are you thinking what I'm thinking? Link to 🐶 in the comments!
To view or add a comment, sign in
-
AWS AI/ML Global Top 500 Scholar (2023-24) | Deep Learning Specialization - Deeplearning.ai | AI/ML - Safaricom X Huawei Cohort 2 (2024) | Computer Science
could this be the solution to having AI access to the entire code base?
Let's build a "Chat with your code" RAG application, step-by-step! We'll be using: - LlamaIndex for orchestration - Ollama for serving LLMs locally - Streamlit for the UI - Lightning AI⚡️Studios for development & hosting Everything in just ~170 lines of Python code! 🔥 You will find all the code & everything you need to run it! Clone the studio now & take it for a spin: https://lnkd.in/dfSCXcbu Check this out👇
To view or add a comment, sign in
-
IMOS has created a series of Python Jupyter Notebooks to help users access, visualise, and work with IMOS data. These interactive tools allow users to combine text, code, and visualisations in a single document, as well as extract data specific to user requirements. A total of 10 Notebooks are available, each with GitHub and interactive versions. Explore all Notebooks here 🔗 bit.ly/47ZlIMe #NCRISImpact
To view or add a comment, sign in
-
In this code snippet, we create a tkinter window with the title "Radio Button" and a fixed size. The background color is set to yellow, and the window is made non-resizable to maintain its layout. We use the IntVar class to create a variable V for storing the selected radio button's value. Then, we create two radio buttons for "Male" and "Female" options using the Radiobutton widget and pack them into the window. To explore this code further, check out my GitHub repository: https://lnkd.in/ed3XusjS #python #gui #tkinter #backend #github
To view or add a comment, sign in
-
#day_202 #hard #leetcode_76 - Minimum Window Substring (https://lnkd.in/grSCGGaH) Given: Two strings To do: Write a code to find the substring with minimum length. Approach: Use Sliding Window, Two Pointers and Hash-map My Solution: 1. Count how many times each character in the target string appears. 2. Start with a window that expands by moving the right pointer along the string first string. When a character from the target string is found in the window, mark it as matched. 3. Once all characters in the target string are matched in the current window, try to shrink the window from the left to find the smallest possible substring that still contains all characters of the target string. 4. Each time a valid window (a substring containing all characters of the target string) is found, compare its size to the smallest one found so far. If it's smaller, update the smallest window. 5. After checking all possible windows, return the smallest one found. If no valid window is found, return an empty string. Time Complexity : O(n) Space Complexity : O(n) my solution link - https://lnkd.in/gWXGs9t6 #leetcode #python #datastructuresandalgorithms #timecomplexity #spacecomplexity #github #string #slidingwindow #twopointers #hashmap #hashset #interviewpreparation #problemsolving #softwaredeveloper
To view or add a comment, sign in
-
CSE '27| AIML tech lead at Microsoft Azure Developers Club |Machine Learning | Deep Learning | DevOps | MLOps | ARTPARK | IISC
So the famous median of two strings question which falls under hard category of LeetCode problems. Which is just a program related to extend() func in python3 and just if-else, it falls under the area of Binary Search. Here is how it can be done with a low run time of time complexity of O(log(m+n)) and minimal memory space.
To view or add a comment, sign in
-
Excited to share my latest project: "Weather Dashboard Generator" - a Python-based application that creates dynamic Excel dashboards with 24-hour weather forecasts: https://lnkd.in/dF_8EG_Y Utilizing the SMHI API, this tool fetches weather data for specified locations and leverages openpyxl for seamless Excel operations. It's designed with a user-friendly menu that allows you to: - Add new locations to the dashboard. - Update the dashboard with the latest weather data. - Exit the application. #Python #DataEngineer #ETL #WeatherForecast #ExcelDashboard #Programming
To view or add a comment, sign in
401 followers