I hereby claim:
- I am silverben10 on github.
- I am bensilverman (https://keybase.io/bensilverman) on keybase.
- I have a public key ASD6prf_pW8RxojsOkkUuGgc4WDHvlp5i0lquPDxpSyraQo
To claim this, I am signing this object:
inpName = str(input("What is your name? ")) | |
inpAge = int(input("How old are you? ")) | |
currentYear = 2018 | |
print("Hello "+inpName+"! You will turn 100 in "+str(currentYear + (100 - inpAge))+".") | |
inpNumber = int(input("Please give another number! ")) | |
for i in range(inpNumber): | |
print("Hello " + inpName + "! You will turn 100 in " + str(currentYear + (100 - inpAge)) + ".\n") |
inpNumber = int(input("Please enter a number: ")) | |
if inpNumber % 4 == 0: | |
print("This number is divisible by 4.") | |
elif inpNumber % 2 == 0: | |
print("This number is even!") | |
else: | |
print("This number is odd.") | |
num = int(input("Please enter another number: ")) |
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
for item in a: | |
if item < 5: | |
print(item) | |
b = [] | |
for item in a: | |
if item < 5: | |
b.append(item) |
I hereby claim:
To claim this, I am signing this object:
''' | |
FCFS Algorithm: | |
- Take process from front of priority queue. | |
- Let it execute until process terminates (i.e. for duration of process) | |
- Pop it from the queue and add to list of completed tasks. | |
- Repeat until zero processes left. | |
''' | |
def fcfs(queue, verbose=False): | |
completed = [] |
# Colors (PearDarkBlue) | |
colors: | |
# Default colors | |
primary: | |
background: "#222226" | |
foreground: "#ffffff" | |
# Normal colors | |
normal: | |
black: "#b4b4b4" # Uses grey instead. |
I hereby claim:
To claim this, I am signing this object:
const sleepSort = async (arr) => { | |
const sorted = []; | |
const max = Math.max(...arr); | |
const min = Math.min(...arr); | |
for (let item of arr) { | |
setTimeout(() => sorted.push(item), item - min); | |
} | |
await new Promise((resolve) => setTimeout(resolve, max)); |
/*global browser*/ | |
import React, { useState } from "react"; | |
import "./App.css"; | |
function App() { | |
const [currentURL, setCurrentURL] = useState(""); | |
const grabURL = async () => { | |
const tabs = await browser.tabs.query({ |
I hereby claim:
To claim this, I am signing this object: