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
# create websites.txt, place in same directory as script. Fill with list of splitlines | |
# create empty file results.txt | |
# run python ping.py | |
import urllib2 | |
import subprocess | |
def readFile(): | |
array = [] | |
with open('./websites.txt') as file: |
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
Update clock synch | |
sudo ntpdate pool.ntp.org | |
Install ntp daemon | |
sudo apt-get install ntp | |
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
grep -i "whatever" ./* | |
searches for thing in current directory | |
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
lives in ~/.ngrok2/ngrok.yml | |
authtoken: (authtokenhere) | |
tunnels: | |
trove-assistant-zcollins: | |
addr: api-assistant.lift.dev:80 | |
proto: http | |
host_header: rewrite | |
bind_tls: true | |
subdomain: trove-assistant-zcollins |
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
// ES7 Observables + WHATWG Streams | |
// | |
// https://github.com/jhusain/asyncgenerator | |
// https://github.com/whatwg/streams | |
// | |
// Continuation from file: | |
// https://github.com/jhusain/asyncgenerator/blob/master/src/observable.js | |
Observable.fromStream = function(readable) { | |
return new Observable(function(generator) { |
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 Bipartite | |
{ | |
private int colors = 2; | |
private int n; | |
/** | |
* Check to ensure that we can move to the desired position within the adjacency matrix | |
* |
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 Bipartite | |
{ | |
private int colors = 2; | |
private int n; | |
/** | |
* Check to ensure that we can move to the desired position within the adjacency matrix | |
* |
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
/* | |
* Zachary Collins | |
* Discrete 314 | |
* November 29 | |
* Lab 3 | |
*/ | |
import java.util.*; | |
import java.lang.*; | |
import java.io.*; |
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
/** | |
* | |
* Testing all java operators to experience how they work | |
* bitwise: designating an operator in a programming language that manipulates the individual bits in a byte or word. | |
* | |
*/ | |
public class Driver { | |
public static void main(String[] args) { |
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
/** | |
* Zachary Collins | |
* Lab 2 | |
* 314 | |
*/ | |
import java.util.Scanner; | |
/** Class Warshall **/ | |
public class Warshall |