This file contains hidden or 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
COLOR='\033[0;32m' | |
NC='\033[0m' # No Color | |
printf '6\ncs103 trojan\nmidterm\naced\nperfect\nscore\n' > wordbank.txt | |
echo -e "${COLOR}-----use the provided wordbank file, allowing demo of correct guess (30 points)-----${NC}" | |
sed -i "s/int target = rand() % numWords;/int target = numWords - 1;/" scramble.cpp | |
g++ scramble.cpp -o scramble | |
./scramble wordbank.txt <<< "score" | |
echo "" |
This file contains hidden or 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
printf '0 10 10 20 20\n0 25 50 1 150\n1 128 128 50 50\n1 200 200 15 30\n2' | ./shapes | |
mv output.bmp output_1.bmp | |
printf '0 30 -30 60 60\n0 -30 30 60 60\n0 240 30 60 60\n0 30 240 60 60\n2' | ./shapes | |
mv output.bmp output_2.bmp | |
printf '1 30 -30 120 120\n1 -30 30 120 120\n1 240 30 120 120\n1 30 240 120 120\n1 100 100 20 50\n2' | ./shapes | |
mv output.bmp output_3.bmp |
This file contains hidden or 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 os | |
import sys | |
import socket | |
import time | |
import argparse | |
import pickle | |
import datetime | |
import multiprocessing |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#! /usr/bin/env python | |
from Tkinter import * | |
from types import * | |
import math, random, time, sys, os | |
from optparse import OptionParser | |
from decimal import * | |
MAXTRACKS = 1000 |
This file contains hidden or 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 <unistd.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#define N 10 | |
#define TN 3 | |
#define MAX_WTIME 5 |