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
# With newer systemd, eth0 can get renamed to ens3 or similar. | |
# Strangely the renaming doesn't always happen, but when it does it breaks Digital Ocean's default setup. | |
sudo su | |
pacman -Rsc netcfg ifplugd | |
systemctl disable netcfg.service | |
systemctl disable net-auto-wired | |
systemctl enable systemd-networkd.service | |
cat > /etc/systemd/network/ens3.network |
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
# Install required libraries and fonts | |
sudo pacman -S libcups fontconfig libxrender libxtst gtk2 ttf-dejavu | |
export DISPLAY=:1.0 | |
cd simulations; sbt compile; scala -cp target/scala-2.10/classes simulations.gui.EpidemyDisplay |
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
package quickcheck | |
import common._ | |
import org.scalacheck._ | |
import Arbitrary._ | |
import Gen._ | |
import Prop._ | |
import Math._ |
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
''' | |
Coursera: | |
- Software Defined Networking (SDN) course | |
-- Module 7 Programming Assignment | |
Professor: Nick Feamster | |
Teaching Assistant: Muhammad Shahbaz | |
''' | |
################################################################################ |
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
''' | |
Coursera: | |
- Software Defined Networking (SDN) course | |
-- Module 6 Programming Assignment | |
Professor: Nick Feamster | |
Teaching Assistant: Muhammad Shahbaz | |
''' | |
################################################################################ |
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
''' | |
Coursera: | |
- Software Defined Networking (SDN) course | |
-- Module 4 Programming Assignment | |
Professor: Nick Feamster | |
Teaching Assistant: Muhammad Shahbaz | |
''' | |
from pox.core import core |
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
''' | |
Coursera: | |
- Software Defined Networking (SDN) course | |
-- Module 3 Programming Assignment | |
Professor: Nick Feamster | |
Teaching Assistant: Muhammad Shahbaz | |
''' | |
from mininet.topo import Topo |
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
#include <wb.h> | |
// Check ec2-174-129-21-232.compute-1.amazonaws.com:8080/mp/6 for more information | |
#define wbCheck(stmt) do { \ | |
cudaError_t err = stmt; \ | |
if (err != cudaSuccess) { \ | |
wbLog(ERROR, "Failed to run stmt ", #stmt); \ | |
return -1; \ |
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
// MP 5 Scan | |
// Given a list (lst) of length n | |
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ... + lst[n-1]} | |
// Due Tuesday, January 22, 2013 at 11:59 p.m. PST | |
#include <wb.h> | |
#define BLOCK_SIZE 512 //@@ You can change this | |
#define wbCheck(stmt) do { \ |
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
// MP 4 Reduction | |
// Given a list (lst) of length n | |
// Output its sum = lst[0] + lst[1] + ... + lst[n-1]; | |
// Due Tuesday, January 15, 2013 at 11:59 p.m. PST | |
#include <wb.h> | |
#define BLOCK_SIZE 512 //@@ You can change this | |
#define wbCheck(stmt) do { \ |
NewerOlder