We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
| struct Shop: Codable { | |
| struct MapMarker: Codable { | |
| var id: Int | |
| var description: String | |
| var imagePath: String | |
| var created_at: String? | |
| var updated_at: String? | |
| } | |
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
| from pytube import YouTube | |
| links = [ | |
| 'https://www.youtube.com/watch?v=S_0kr_CtdmY', | |
| 'https://youtu.be/1Qwx6PVfzjE', | |
| 'https://www.youtube.com/watch?v=jdAXaXg44S0', | |
| 'https://www.youtube.com/watch?v=DZX5fndRHSg', | |
| 'https://www.youtube.com/watch?v=RxZ3rjQn9dQ', | |
| 'https://youtu.be/4C7sanyeShY', | |
| 'https://youtu.be/T-BOPr7NXME', |
| //Check a +ve Int is 2^n where n is non -ve Int | |
| func check(_ i: Int) -> Bool { | |
| guard i != 1 else { return true } | |
| guard i % 2 == 0 else { return false } | |
| return check(i / 2) | |
| } | |
| print(check(1024)) | |
| print(check(1023)) |
| /* Simple Stepper Motor Control Exaple Code | |
| * | |
| * by Dejan Nedelkovski, www.HowToMechatronics.com | |
| * | |
| */ | |
| // defines pins numbers | |
| const int stepPin = 3; | |
| const int dirPin = 4; | |
| void setup() { |
| # Combine multiple images into one. | |
| # | |
| # To install the Pillow module on Mac OS X: | |
| # | |
| # $ xcode-select --install | |
| # $ brew install libtiff libjpeg webp little-cms2 | |
| # $ pip install Pillow | |
| # | |
| from __future__ import print_function |
| [{ | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "emoji": "🇦🇫", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "emoji": "🇦🇽", |
| import {CustomError} from "./error/custom-error.interface"; | |
| require('dotenv').config(); | |
| import {RequestHandler} from 'express'; | |
| import {MongoClient} from 'mongodb'; | |
| let client: MongoClient; | |
| const connectToClientIfDropped: () => Promise<void> = async () => { | |
| if (client && client.isConnected()) { |
| pipeline { | |
| agent { | |
| docker { | |
| image 'python:3-alpine' | |
| } | |
| } | |
| stages { | |
| stage('build') { | |
| steps { | |
| echo 'build....' |