Port | Command |
---|---|
Unused Port | import portpicker port = portpicker.pick_unused_port() |
Or | |
Custom Port | port = 8000 |
Custom Port | port = 8000 port = 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# url="https://download.developer.apple.com/Developer_Tools/Xcode_10/Xcode_10.xip" | |
# https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_10/Xcode_10.xip | |
# https://developer.apple.com/download/more/ | |
# https://dev.to/jahirfiquitiva/direct-download-any-xcode-385o | |
# https://stackoverflow.com/questions/10335747/how-to-download-xcode-dmg-or-xip-file/10335943#10335943 | |
url="https://download.developer.apple.com/Developer_Tools/Xcode_10/Xcode_10.xip" | |
wget --load-cookies=cookies.txt -c $url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.*; | |
class main{ | |
public static Scanner input = new Scanner(System.in); | |
public static String userInput() { | |
String user = ""; | |
System.out.print(">"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def en_to_bn(n): | |
temp = [ord(x) for x in n] | |
res = ''.join([chr(x+2486) for x in temp]) | |
print(res) | |
# enter some post-code | |
# to english to bangla | |
# sorry to validation check if it's only english digits or not | |
user = input("Enter number:") |
!pip install moviepy
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
from moviepy.editor import *
from IPython.display import HTML
from base64 import b64encode
from os import path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/21782329/generate-n-random-numbers-whose-sum-is-a-constant-k-excel | |
# https://stackoverflow.com/questions/7289136/how-to-make-5-random-numbers-with-sum-of-100 | |
# https://stackoverflow.com/questions/18659858/generating-a-list-of-random-numbers-summing-to-1 | |
# can i call this - Dirichlet distribution like ? | |
from random import random | |
from random import randint | |
def gen(l,h): | |
return round( l + random() * (h-l) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
from matplotlib.pyplot import imshow | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
class draw_object_detection: | |
def __init__(self,file_name): | |
self.file_name = file_name | |
self.file_data = self.read_file() |