Skip to content

Instantly share code, notes, and snippets.

View Longlius's full-sized avatar

Matthew Longley Longlius

View GitHub Profile
// 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 / 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
@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 / 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 / gpstestsketch2.ino
Created March 9, 2016 23:57
Arduino-based GPS logger code
#include <SD.h>
#include <TinyGPS.h>
#include <SoftwareSerial.h>
SoftwareSerial shield(2,3); // configure software serial port
// Create an instance of the TinyGPS object
TinyGPS gps;
void setup()
{
@Longlius
Longlius / protocolsiojson.json
Created February 16, 2017 15:57
An example of protoocls.io json output
{
"api_version": "1",
"is_new_mode": "0",
"protocol_name": "Construction of microarrays and their application to virus analysis",
"last_modified": "1485996809",
"type_id": "1",
"link": "http://www.aslo.org/books/mave/MAVE_034.pdf",
"fork_id": "",
"public_fork_note": "",
"number_of_steps": "0",