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 <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); |
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
| 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) |
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 <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 |
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
| 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>"; | |
| } |
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
| 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 */ } | |
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
| ########################################################### | |
| # Subprogram Description | |
| # partition array | |
| ########################################################### | |
| # Arguments In and Out of subprogram | |
| # | |
| # $a0 | |
| # $a1 | |
| # $a2 | |
| # $a3 |
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
| ( ͡° ͜ʖ ͡°) | |
| (ಠ_ರೃ) | |
| ಠ益ಠ | |
| ಠoಠ |
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
| ¯\_(ツ)_/¯ |
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
| HudAchievementTracker | |
| { | |
| "ControlName" "EditablePanel" | |
| "fieldName" "HudAchievementTracker" | |
| "xpos" "0" | |
| "NormalY" "0" | |
| "EngineerY" "0" | |
| "wide" "f0" | |
| "tall" "480" | |
| "visible" "1" |
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
| "Resource/UI/HudAchievementTrackerItem.res" | |
| { | |
| //crosshair start | |
| xHairCirclePulse | |
| { | |
| "controlName" "CExLabel" | |
| "fieldName" "xHairCirclePulse" | |
| "visible" "1" | |
| "enabled" "1" |
NewerOlder