Skip to content

Instantly share code, notes, and snippets.

View Longlius's full-sized avatar

Matthew Longley Longlius

View GitHub Profile
@Longlius
Longlius / ConnectFour.java
Created July 22, 2012 22:33
Connect Four written in babby Java
/**
* 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.*;
@Longlius
Longlius / oddeven.cpp
Created August 11, 2012 07:53
Demonstration Odd/Even function
bool isEven(int a) {
return !(a & 1);
}
@Longlius
Longlius / mailClient.py
Created September 11, 2012 09:53
Babby's first SMTP mail client in python 3
#!/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
@Longlius
Longlius / mailClient.py
Created September 17, 2012 01:16
Babby's first SMTP mail client in python 3 (ver 2 electric boogaloo)
#!/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
@Longlius
Longlius / mailClient.py
Created September 20, 2012 22:03
Babby's first SMTP client in Python 3 (ver 3.1416)
#!/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
@Longlius
Longlius / randomticktock.asc
Created December 9, 2012 05:17
My public key
-----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
@Longlius
Longlius / epractivity.el
Last active December 10, 2015 08:48
Example emacs lisp program to generate programmer activity reports
;;;; 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
@Longlius
Longlius / demo.c
Last active December 14, 2015 03:38
Demo C program for Wes
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i < 10; ++i) {
puts("Hello, world!");
}
@Longlius
Longlius / unsxlic.txt
Created February 24, 2013 08:58
UnSX License
(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
@Longlius
Longlius / sumsqrmad.asm
Last active December 14, 2015 09:19
an example of absolute madness for Wes (assembly programming)
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