Skip to content

Instantly share code, notes, and snippets.

###
words[2] will be something like:
random(x,y)
where x and y are either 1 or 2 digit integers
###
if "random" in words[2]:
args = words[2].split(",")
for arg in sys.argv:
if arg != sys.argv[0]:
if arg.endswith(".4z"):
debug("Calling interpreter")
if os.path.exists(sys.argv[1]):
output = sys.argv[1].replace(".4z", ".java")
if not os.path.exists(output):
file = open(output, 'w+')
file.close()
@aurorapar
aurorapar / interpreter.py
Last active April 28, 2017 11:32
Interpreter for class
'''
PREFACE
This is probably the worst code I have ever written. The optimiation is non-existant,
the rules have little forethought and planning, and only the minimal of the procedures
that were studied in class were applied.
This software should not be taken as representation of my abilities, but more as
what a caffiene binge throughout the night can produce.
import java.util.*;
class tables
{
public static void main(String[] args)
{
Random rng = new Random();
for(int i = 1; i <= 10; i += 1)
@aurorapar
aurorapar / assignment6.pl
Created April 28, 2017 10:31
motif finder
#not /usr/local/bin/perl
# Reports a match and position of a Motif
#
# Input:
# One motif pattern file
# One sequence file
$patternFile;
$searchFile;
@aurorapar
aurorapar / assignment6.txt
Created April 28, 2017 11:22
Pattern matching one read file in another read file
#not /usr/local/bin/perl
# Reports a match and position of a Motif
#
# Input:
# One motif pattern file
# One sequence file
$patternFile;
$searchFile;
'''
PREFACE
This is probably the worst code I have ever written. The optimiation is non-existant,
the rules have little forethought and planning, and only the minimal of the procedures
that were studied in class were applied.
This software should not be taken as representation of my abilities, but more as
what a caffiene binge throughout the night can produce.
/**
* Client program requesting current date from server.
*
* Figure 3.27
*
* @author Gagne, Galvin, Silberschatz
* Operating System Concepts with Java - Eighth Edition
* Copyright John Wiley & Sons - 2010.
*/
USE acore_auth;
SELECT testOne.username, testTwo.username
FROM account as testOne,
account as testTwo
WHERE
testOne.username=testTwo.username
OR testOne.last_ip=testTwo.last_ip
OR testOne.last_ip=testTwo.last_attempt_ip
OR testOne.last_attempt_ip=testTwo.last_ip
$(document).ready( function() {
$( "#updateForm" ).submit(sendValues);
});
function sendValues(e)
{
data = $( "#updateForm" ).serialize();
var request = $.ajax({
url: "createaccount.php",
type: "POST",