This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERNAME="foo" | |
PASSWORD="bar" | |
for i in `seq 0 60`; do | |
curl --data "username=${USERNAME}&password=${PASSWORD}" https://api.gatekeeper.csh.rit.edu/pop/4 --insecure | |
sleep 5 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am AndrewHanes on github. | |
* I am ahanes (https://keybase.io/ahanes) on keybase. | |
* I have a public key whose fingerprint is FCB8 D980 85D7 3734 26F8 36C0 224D 9156 3C3A 22DC | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class rand { | |
public static void main(String[] args) { | |
ArrayList<Integer> al = new ArrayList<Integer>(); | |
for(int i = 0; i < 10; ++i) { | |
al.add(i); | |
} | |
Random r = new Random(); | |
ArrayList<Integer> result = new ArrayList<Integer>(); | |
for(int i = 0; i < 5; ++i) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
from random import shuffle | |
from random import randint | |
def setup(n): | |
lst = [] | |
for i in range(n): | |
lst.append(i) | |
shuffle(lst) | |
return lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
from random import * | |
import sys | |
""" | |
Generate a prefix expr of maxlength l | |
""" | |
def generateExpression(l): | |
funcs = {'+': lambda a, b: a + b, '-': lambda a, b: a - b, '*': lambda a, b: a * b} | |
isInt = random() | |
if(l == 0): |