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
// Binary Search Algorithm | |
/* | |
1. ask user the size of array | |
2. declare the array | |
3. ask user the limit and range of random numbers | |
4. initialize the array with random numbers | |
5. print the array | |
6. sort the array in ascending order | |
7. print sorted array |
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
// Blur image | |
void blur(int height, int width, RGBTRIPLE image[height][width]) | |
{ | |
float avg1 = 0.00; | |
float avg2 = 0.00; | |
float avg3 = 0.00; | |
RGBTRIPLE temp[height][width]; | |
for (int h = 0; h < height; h ++) |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>HTML Links</h1> | |
<p><a href="https://github.com/Omi98/bs-alerts">Bootstrap Alerts</a></p> | |
<p><a href="https://github.com/Omi98/bs-badges.git">Bootstrap Badges</a></p> |
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
// Detect edges | |
void edges(int height, int width, RGBTRIPLE image[height][width]) | |
{ | |
RGBTRIPLE temp[height][width]; | |
/*creating another temp array and | |
storing all the original pixels in it | |
so that the original image pixels | |
are not changed/altered during the | |
calculations.*/ |
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
def main(): | |
time = input("What time is it? ") | |
# call convert func | |
meal_time = convert(time) | |
# returns and assigns meal_time | |
# print(meal_time) | |
# defining ranges for | |
# - breakfast time |
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
# A simple code in python to generate encoded characters | |
# for your HTML <pre> or <code> block. | |
import html | |
import sys | |
code = sys.stdin.readlines() # Press <ctrl-d> to end input |