- Login to Azure Portal
- Goto App Register
- Click "New registration"
- Provide name, select "Accounts in any organizational directory (Any Azure AD directory - Multitenant)"
- Now go to app overview section
- clientId <- Copy Application (client) ID
- Go to Certificates & secrets and click on "New client secret"
- Add description and set expire time
- clientSecret <- Copy Value of new client secret. Don't use Secret ID
- tenantId <- Copy Directory (tenant) ID
This file contains hidden or 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
| from random import shuffle | |
| class SUDOKU: | |
| def __init__(self,size=3,level=1): | |
| self.cube_size = size | |
| self.level = level | |
| self.n_min = 1 | |
| self.n_max = size * size | |
This file contains hidden or 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
| from Timeline import * | |
| start_date = '2021-06-27' | |
| end_date = '2024-06-15' | |
| timelines = Timeline(start_date,end_date).run() | |
| print(timelines) |
This file contains hidden or 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 csv | |
| import json | |
| class FileManager(): | |
| def __init__(self): | |
| pass | |
| def validate(self,filename,data): |
This file contains hidden or 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 json | |
| def read_json(filename): | |
| file = open(filename) | |
| return json.load(file) | |
| def dump_json(filename, data): | |
| base_path = "mock_json" | |
| filename = base_path + "/" + filename |
Step 1: Create project using spring.io
curl https://start.spring.io/starter.tgz -d type=gradle-project \
-d language=java \
-d bootVersion=2.6.5 \
-d baseDir=helloG \
-d groupId=com.example.hello \
-d artifactId=helloG \
-d description=Demo%20project%20for%20Spring%20Boot \
-d packageName=com.example.hello.helloG \
This file contains hidden or 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
| ``` | |
| !pip install pyzbar | |
| !apt-get install python-zbar | |
| ``` | |
| from pyzbar.pyzbar import decode | |
| from PIL import Image | |
| from IPython.display import Image as myImg | |
| from IPython.display import display |
- Goto
cd ~/.local/share/applications/
- Create .desktop file. Ex: charles-proxy.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=[application name. Ex: Charles Proxy]
This file contains hidden or 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
| FROM khipu/openjdk17-alpine | |
| VOLUME /tmp | |
| EXPOSE 8080 | |
| ARG JAR_FILE=Bank-0.0.1-SNAPSHOT.jar | |
| COPY ${JAR_FILE} Bank.jar | |
| ENTRYPOINT ["java","-jar","Bank.jar"] |
file1="https://wallpaperaccess.com/full/1371433.jpg"
file2="https://i.giphy.com/media/KztT2c4u8mYYUiMKdJ/giphy.gif"
file3="https://i.giphy.com/media/UVk5yzljef0kGiayL1/giphy.mp4"
VMedia(file1).img()
VMedia(file2).gif()
VMedia(file3).video()
NewerOlder