One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array |
import numpy as np | |
EPSILON = 1e-10 | |
def _error(actual: np.ndarray, predicted: np.ndarray): | |
""" Simple error """ | |
return actual - predicted |
""" | |
Tqdm Download Hook | |
Lei Mao | |
University of Chicago | |
Modified from https://github.com/tqdm/tqdm/blob/master/examples/tqdm_wget.py | |
""" | |
import os |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import time | |
import random | |
import sys | |
def print_same_line(text): | |
sys.stdout.write('\r') | |
sys.stdout.flush() |
#!/bin/bash | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 | |
HAS_CAPPED=0x20000 |
let listOfRecentContacts = document.getElementsByClassName("_3j7s9"); | |
console.log("listOfRecentContacts.length = " + listOfRecentContacts.length); | |
var eventToSwitchMessageBox = new MouseEvent('mousedown', { | |
bubbles: true, | |
}); | |
let count =1; | |
let openMessageBox = setInterval(function(){ | |
// if(count>listOfRecentContacts.length) { | |
if(count>5) { | |
console.log("Clearing interval with clearInterval..."); |