Skip to content

Instantly share code, notes, and snippets.

View EmmettW's full-sized avatar

Emmett Wesolowski EmmettW

View GitHub Profile
#include <stdio.h>
#include <sys/types.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
// Helpers
void random_sleep(int);
open Math;
type vector = real list;
fun dot(a: vector, b: vector) =
if (null a orelse null b)
then
0.0
else
(hd a) * (hd b) + dot(tl a, tl b)
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
//
// Emmett Wesolowski
// Program 6 CS337
// 11/6/2016
public String toTable() {
return "<tr>\n"
+ "<td>" + title.toString() + "</td>\n"
+ "<td>" + firstName + "</td>\n"
+ "<td>" + lastName + "</td>\n"
+ "<td>" + gender.toString() + "</td>\n"
+ "<td>" + phone + "</td>\n"
+ "<td>" + department + "</td>\n"
+ "</tr>";
}
char* read_file(char* filename) {
char *source = NULL;
FILE *fp = fopen(filename, "r");
if (fp != NULL) {
/* Go to the end of the file. */
if (fseek(fp, 0L, SEEK_END) == 0) {
/* Get the size of the file. */
long bufsize = ftell(fp);
if (bufsize == -1) { /* Error */ }
###########################################################
# Subprogram Description
# partition array
###########################################################
# Arguments In and Out of subprogram
#
# $a0
# $a1
# $a2
# $a3
( ͡° ͜ʖ ͡°)
(ಠ_ರೃ)
ಠ益ಠ
ಠoಠ
¯\_(ツ)_/¯
HudAchievementTracker
{
"ControlName" "EditablePanel"
"fieldName" "HudAchievementTracker"
"xpos" "0"
"NormalY" "0"
"EngineerY" "0"
"wide" "f0"
"tall" "480"
"visible" "1"
"Resource/UI/HudAchievementTrackerItem.res"
{
//crosshair start
xHairCirclePulse
{
"controlName" "CExLabel"
"fieldName" "xHairCirclePulse"
"visible" "1"
"enabled" "1"