Skip to content

Instantly share code, notes, and snippets.

View akosijose's full-sized avatar

Jose Gerald akosijose

View GitHub Profile
/// <summary>
/// Calculates the SHA-256 hash of a string.
/// </summary>
/// <param name="inputString">String to be hashed.</param>
/// <returns>A SHA-256 string.</returns>
public static string GetSHA256String(string inputString) {
StringBuilder result = new StringBuilder();
questions = ["You went to a party last night and when you arrived to school the next day, everybody is talking about something you didn't do. What will you do?",
"What quality do you excel the most?",
"You are walking down the street when you see an old lady trying to cross, what will you do?",
"You had a very difficult day at school, you will maintain a attitude",
"You are at a party and a friend of yours comes over and offers you a drink, what do you do?",
"You just started in a new school, you will...",
"In a typical Friday, you would like to..",
"Your relationship with your parents is..."]
letter_a = []
@akosijose
akosijose / senderMail.py
Created June 17, 2022 04:35
python using smtplib outlook
# final sender mail
import smtplib
def send_email(subject, body):
server = smtplib.SMTP(host='smtp-mail.outlook.com', port=587)
server.ehlo()
server.starttls()
server.login('[email protected]', 'Sm@rtd00rb3ll@345*')
message = f'Subject: {subject}\n\n{body}'
@akosijose
akosijose / lockingSystem.md
Created June 16, 2022 15:21
arduino code for locking system
@akosijose
akosijose / index.html
Created May 30, 2022 02:03
particles.js demo
<!-- particles.js container --> <div id="particles-js"></div> <!-- stats - count particles --> <div class="count-particles"> <span class="js-count-particles">--</span> particles </div> <!-- particles.js lib - https://github.com/VincentGarreau/particles.js --> <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <!-- stats.js lib --> <script src="http://threejs.org/examples/js/libs/stats.min.js"></script>
@akosijose
akosijose / index.html
Created May 30, 2022 02:02
particles.js demo
<!-- particles.js container --> <div id="particles-js"></div> <!-- stats - count particles --> <div class="count-particles"> <span class="js-count-particles">--</span> particles </div> <!-- particles.js lib - https://github.com/VincentGarreau/particles.js --> <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <!-- stats.js lib --> <script src="http://threejs.org/examples/js/libs/stats.min.js"></script>
@akosijose
akosijose / index.html
Last active March 1, 2022 18:42
calculator-glass
<!doctype html>
<html>
<head>
<title>Glass Calculator</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
@akosijose
akosijose / source.md
Created March 26, 2021 04:31
Resources for students/ researcher

📌 Here are some sites where you can find sources and references for your Review of Related Literature (RRL) in research and the most powerful academic search engines for references:

🔹PDFDrive 205 million books for direct download in all disciplines PDF. https://www.pdfdrive.com/

🔹Global ETD Search Global ETD Search Engine over 4 million PDF studies. http://search.ndltd.org/index.php

@akosijose
akosijose / convert_raindrops.py
Last active November 19, 2024 02:23
Your task is to convert a number into a string that contains raindrop sounds corresponding to certain potential factors. A factor is a number that evenly divides into another number, leaving no remainder. The simplest way to test if a one number is a factor of another is to use the modulo operation. The rules of raindrops are that if a given num…
```
Your task is to convert a number into a string that contains raindrop sounds corresponding to certain potential factors. A factor is a number that evenly divides into another number, leaving no remainder. The simplest way to test if a one number is a factor of another is to use the modulo operation.
The rules of raindrops are that if a given number:
has 3 as a factor, add 'Pling' to the result.
has 5 as a factor, add 'Plang' to the result.
has 7 as a factor, add 'Plong' to the result.
does not have any of 3, 5, or 7 as a factor, the result should be the digits of the number.
Examples
28 has 7 as a factor, but not 3 or 5, so the result would be "Plong".
30 has both 3 and 5 as factors, but not 7, so the result would be "PlingPlang".
#payroll
def computepay(h,r):
if h > 40:
p = 1.5 * r * (h - 40) + (40 *r)
else:
p = h * r
return p