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
/** | |
* Name: Matthew Longley | |
* Lecture Instructor: Kriangsiri Malasri | |
* Lecture Section: COMP 1900-002 | |
* Assignment: Programming Assignment 4, Connect Four | |
* Date: 26 April 2010 | |
*/ | |
import java.util.*; |
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
bool isEven(int a) { | |
return !(a & 1); | |
} |
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
#!/usr/bin/python | |
# Name: Matthew Longley | |
# Date: 2012/09/25 | |
# Course: COMP 3825-001 | |
# Project #1 - Mail Client | |
import base64, getpass, socket, ssl | |
# Function - getServerAddr |
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
#!/usr/bin/python | |
# Name: Matthew Longley | |
# Date: 2012/09/25 | |
# Course: COMP 3825-001 | |
# Project #1 - Mail Client | |
# NOTE: This program uses Python 3 | |
import base64, getpass, socket, ssl, sys |
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
#!/usr/bin/python | |
# Name: Matthew Longley | |
# Date: 2012/09/25 | |
# Course: COMP 3825-001 | |
# Project #1 - Mail Client | |
# NOTE: This program uses Python 3 | |
import base64, getpass, socket, ssl, sys |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v2.0.18 (GNU/Linux) | |
mQENBFDDvB0BCADI/gZCM+I1g/X1EOiGxgyq9KAIaSADmYh0uyZpjatRsHUBNHHp | |
jf//E9hiYoETih/QrSpjV4SETgCGg52Wkp4cnlTf81tan8F42i6eCyiUH4kcDLTf | |
eldbBm9CfMtFV2pYkT02611s5Dy+b3Q1wvkIaQaGTFMAKLPTHjw4o5FkoGJmPV/t | |
U7xEHJZx+sloTKh6y9HC+F/A3TyUT+zY74+J//5X83Mc9K1zzwdu4p8s273a8qcz | |
PWrjl5j6JekZcqIKQ00+UZQJzaytc/lvr7lIszmAxHFwo7kLg0tvuQMu7NkYlJiy | |
a/Cs/0svU0ou6cuPXK4XqAJg7gLN1RPiclxZABEBAAG0VU1hdHRoZXcgV2FkZSBM | |
b25nbGV5IChEZXZlbG9wZXIsIENTIFN0dWRlbnQgYXQgVS4gTWVtcGhpcykgPHJh |
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
;;;; Script Name: epractivity.el | |
;;;; By: MWL | |
;;;; Date: 07 October 2012 | |
;;;; Purpose: Generate Programmer Activity Status Report using emacs | |
;; Open the file 'programmer' into a buffer. | |
;; Set that buffer as the current buffer. | |
(set-buffer (find-file "programmer")) | |
;; Convert the buffer into a string, then split that string | |
;; into a list containing each line as a separate string |
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> | |
int main(void) | |
{ | |
int i; | |
for (i = 0; i < 10; ++i) { | |
puts("Hello, world!"); | |
} |
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
(C)<Year>, <Author(s)> [of <Organization>] | |
All lefts, rights, ups and downs reversed. | |
This code may be modified and/or redistributed, as long as the conditions of | |
the UnSX License for Software v2 are met: | |
1. Redistributed packages must retain this LICENSE file and any | |
documentation that was included in the original. This is also true for | |
precompiled binary distributions. | |
2. In the event of a redistribution of code or a binary package, the |
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
ORG 0 | |
START RWD . Read input | |
STA START . Some men just want to watch the world burn | |
LDA ZERO . Init ACC to 0 | |
LDX START,2 | |
SQRE LDX START,1 . START = number to square | |
MULT ADD START . Add START to itself START times | |
TDX MULT,1 . errbody in the club gettin' tipsy | |
RSUM TDX CSUM,2 . Decrement ir2. When ir2 == 0, gratz. | |
WWD . DELICIOUS I/O OM NOM NOM |
OlderNewer