Skip to content

Instantly share code, notes, and snippets.

View hsnice16's full-sized avatar
🏠
Working from home

Himanshu Singh hsnice16

🏠
Working from home
View GitHub Profile
// Program to set border in a given image
// SimpleImage class exist in dukelearntoprogram
var image = new SimpleImage("smallpanda.png");
// thickness of border required
var thickness = 10;
// function which set the pixel received to black;
function setBlack(pixel){
from bs4 import BeautifulSoup
import requests
from PIL import Image
from io import BytesIO
import os
def start_search():
search = input("search for: ")
params = {"q": search}
dir_name = search.replace(" ", "_").lower()
@hsnice16
hsnice16 / Calculator.py
Last active July 19, 2020 21:21
My First Python Simple Project.
// re is regular expression
import re
print("Our Magical Calculator")
print("Type 'quit' to exit\n")
previous = 0
run = True
def performMath():