I hereby claim:
- I am benslv on github.
- I am bensilverman (https://keybase.io/bensilverman) on keybase.
- I have a public key whose fingerprint is B4CF 4405 FFEA F8CB 8F24 598F F70D F5B0 D73F AA2B
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Switch IIFE vs. Object Lookup benchmark</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
I hereby claim:
To claim this, I am signing this object:
/*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({ |
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)); |
I hereby claim:
To claim this, I am signing this object:
# Colors (PearDarkBlue) | |
colors: | |
# Default colors | |
primary: | |
background: "#222226" | |
foreground: "#ffffff" | |
# Normal colors | |
normal: | |
black: "#b4b4b4" # Uses grey instead. |
''' | |
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 = [] |
I hereby claim:
To claim this, I am signing this object:
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) |
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: ")) |