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 / Enable_Auto_Arrange_Win7explorer.bat
Last active August 29, 2015 14:07
Enable Auto Align Windows 7
@echo off
:: To reset all folders to default folder views
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
@Longlius
Longlius / Disable_Auto_Arrange_Win7explorer.bat
Last active August 29, 2015 14:07
Disable Auto Align Windows 7
@echo off
:: To reset all folders to default folder views
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
@Longlius
Longlius / cart_prod.m
Created April 2, 2015 11:16
Cartesian product bullshit in Matlab for Ryan
Xbuilder = cell(1, 27);
for x = 1:3
for y = 1:3
for z = 1:3
i = (((x - 1) * 9) + ((y - 1) * 3) + (z - 1)) + 1;
Xbuilder{1,i} = [x 0 0; 0 y 0; 0 0 z;];
end
end
end
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.1-1 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@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 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