A Pen by Himanshu Singh on CodePen.
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
// 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){ |
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 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() |
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
// re is regular expression | |
import re | |
print("Our Magical Calculator") | |
print("Type 'quit' to exit\n") | |
previous = 0 | |
run = True | |
def performMath(): |
NewerOlder