This file contains 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
class Game: | |
def __init__(self, t1, t2, dog, flags): | |
self.t1 = t1 | |
self.t2 = t2 | |
self.dog = dog | |
self.flags = flags | |
class TeamGame: | |
def __init__(self, name, is_home, score): | |
self.name = name |
This file contains 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
import bs4 | |
from urllib.request import urlopen as uReq | |
from bs4 import BeautifulSoup as soup | |
import time | |
import sys | |
if len(sys.argv) != 2: | |
print('Input Invalid! Please provide search URL.') | |
exit() |
This file contains 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
package hw3; | |
import org.ujmp.core.DenseMatrix; | |
import org.ujmp.core.Matrix; | |
import org.ujmp.core.collections.composite.SortedListSet; | |
import org.ujmp.core.util.io.BufferedRandomAccessFile; | |
import pixeljelly.scanners.Location; | |
import pixeljelly.scanners.RasterScanner; | |
import javax.imageio.ImageIO; |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRcqbgjkce5xgzaurVV3yKcgicxjBVTv8Xgc5rMFbo6Z0iS4G9YjlkdKPPoK7tfCQ2TAqIX2ITMYiY5+EozzcQvhKY1Oehcex3LM+LFhXt3wta7QAFKeRCXJTU0oCmao+WSY+Pdq7/+OI1SMD3sgQYXy51K0YiHUdMj2R72PNJg3UGx7hPcPDr3wm1XrrI6wnFA/1iwASTtJuoYwtY7MELPiPWNgL30Qq3zQjEAvY7h2ZdHYnYQOKAPkAHtHdJ3pG09/T+PBl+brNq6RkmAYkeb7TfOt8J1d04q5SXGuo1TKbhXQATnzEzuMNNipzj9lKmyZ20NgpGKQQLiMAiQcIk7sCmvC4bUYCk/yIIHJLPt4D1ZhffFYIblhux12u/RK61d5nQVglk64Ni/vUez94iJBqBkttB/1vquNFrjOiOh0Sd7o6DwN42Lv+lGeAhMIukUmDIDMs5GiXfQcY5a8OhnHFDFNES+TOhwsRTLV0TarwgIa3D4ci0S+3cVQ4K1LM= zipper@localhost.localdomain |
This file contains 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
import java.util.Scanner; | |
public class GoodnessString { | |
public static void main(String[] args) { | |
var scanner = new Scanner(System.in); | |
var test_cases = scanner.nextInt(); | |
for (int i = 0; i < test_cases; i++) { | |
var string_length = scanner.nextInt(); |
This file contains 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
import java.io.*; | |
import java.util.*; | |
public class DirectedGraph { | |
private class VertexNode { | |
private String name; //the name of the vertex. Vertex names are unique | |
private VertexNode nextV; //reference to the next vertex in the vertex list | |
private EdgeNode edges; //the head of the list of edges coming out of the vertex | |
private VertexNode(String n, VertexNode v) { |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "list.h" | |
int main(int argc, char * argv[]) { | |
int n1[] = {2,4,6,8,10,12,14,16}; | |
int n2[] = {256, 128, 64, 32, 16, 8, 4, 2, 1}; | |
int n3[] = {40, 30, 2, 7, 55, 7, 99}; | |
List *x = createList(n1, 8); | |
List *y = createList(n2, 9); |
This file contains 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
import java.util.*; | |
public class SymbolTable <T>{ | |
private int primeIndex, tableSize, numItems; | |
private static final double LOAD_FACTOR = .75; // Added const to change as needed. | |
private Node<T>[] table; | |
private final int[] primes = {7, 23, 59, 131, 271, 563, 1171, 2083, 4441, 8839, 16319, 32467, 65701, 131413}; | |
public SymbolTable(int s){ | |
primeIndex = 0; |
This file contains 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
#Quinn Zipse H3.asm CS270 | |
.data | |
prompt1: .asciiz "Enter up to 20 integers (-1 to quit): " | |
nums: .word 0 : 64 | |
prompt2: .asciiz " " | |
.text | |
la $a0, prompt1 | |
la $a1, nums | |
li $a2, 20 | |
jal readArray |
This file contains 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
.data | |
prompt1: .asciiz "Please enter a positive number: " | |
incorrectPrompt: .asciiz "Invalid number, please try again.\n" | |
prompt2: .asciiz "The " | |
prompt3: .asciiz " fib number is: " | |
newLine: .asciiz "\n" | |
.text | |
la $a0, prompt1 | |
la $a1, incorrectPrompt | |
jal readNonNegInt |
NewerOlder