A custom Oh My Posh theme configuration for a clean terminal prompt.
Use this theme with any shell supported by Oh My Posh, including Bash, Zsh, Fish, and PowerShell.
A custom Oh My Posh theme configuration for a clean terminal prompt.
Use this theme with any shell supported by Oh My Posh, including Bash, Zsh, Fish, and PowerShell.
| import requests | |
| from decouple import config | |
| import urllib | |
| def shortURL(URL): | |
| key = config('CUTTLY_TOKEN') | |
| parsedURL = urllib.parse.quote(URL) | |
| r = requests.get('http://cutt.ly/api/api.php?key={}&short={}'.format(key, parsedURL)) | |
| data = r.json() |
| import requests | |
| from pathlib import Path | |
| # Download an image off unsplash without the api using python | |
| def downloadimages(search_term, resolution, amount): # Define the function to download images | |
| print(f"https://source.unsplash.com/random/{resolution}/?"+str(search_term)+", allow_redirects=True") # State the URL | |
| path = Path('YourLocalPathForSaveFile') | |
| # Loop for chosen amount of times | |
| for x in range(int(amount)): |
How to Use Views and Stored Procedures in MySQL
goto chrome://flags/ the press f12 and paste code then run backup() or restore()
function saveFile(filename, data) {
return new Promise(resolve => {
const blob = new Blob([data], { type: 'octet/stream' });
const url = window.URL.createObjectURL(blob);
const dom = document.createElement('a');Install Xampp from https://www.apachefriends.org/index.html