Skip to content

Instantly share code, notes, and snippets.

View Longlius's full-sized avatar

Matthew Longley Longlius

View GitHub Profile
@Longlius
Longlius / WordGenerator.java
Last active August 29, 2015 13:57
For Caroline~
import java.io.*;
import java.util.*;
public class WordGenerator {
// Filename constants
static final String ONSETS_FILE = "onsets.txt";
static final String VOWELS_FILE = "vowels.txt";
// Program entry point
@Longlius
Longlius / derpybot.lisp
Created August 23, 2013 03:51
excerpt from derpybot
;;;; derpybot.lisp - main program file
(in-package #:derpybot)
;;; TOP-LEVEL DEFINITIONS
;;; *irc-host* - hostname of IRC server to connect to
(defparameter *irc-host* (string "irc.rizon.net"))
;;; *irc-port* - port number of IRC server to connect to
(defparameter *irc-port* 6660)
;;; *irc-nick* - nick for the bot to connect with
(defparameter *irc-nick* (string "DerpyBot"))
@Longlius
Longlius / gist:5794287
Last active October 3, 2020 23:19
Hello world in IBM JCL
//HELLOW JOB
//* The IEBGENER program copies data
//S1 EXEC PGM=IEBGENER
//* Data to be copied
//SYSUT1 DD *
Hello, world!
//* Tells IEBGENER to copy data to the system output
//SYSUT2 DD SYSOUT=A
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
// Name: Matthew Longley
// Due: 2012/04/18
// Course: COMP 3715-001
// Asg: Game project
public class PickNextMoveMatthewLongley implements PickNextMove
{
// Nested class - ChoiceTree
// Description: Represents a search tree for the game
// Members:
@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
@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 / 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 / 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 / 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 / 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