This file contains hidden or 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
\documentclass[11pt]{article} | |
\usepackage[shortlabels]{enumerate} | |
\usepackage{fullpage, verbatim, amsthm, amsmath, amssymb, amsfonts} | |
% Macros | |
\def\code#1{\texttt{#1}} | |
\def\c#1{\texttt{#1}} |
This file contains hidden or 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
# Github (default) | |
Host github.com | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/github | |
# Gitlab () | |
Host gitlab.com | |
HostName gitlab.com | |
User git |
This file contains hidden or 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
/********************************************** | |
* Last Name: Golovin | |
* First Name: Artem | |
* Student ID: 30018900 | |
* Course: CPSC 457 | |
* Tutorial: <your tutorial sction> | |
* Assignment: 1 | |
* Question: Q4 | |
* | |
* File name: countLines.cpp |
This file contains hidden or 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
/********************************************** | |
* Last Name: Golovin | |
* First Name: Artem | |
* Student ID: 30018900 | |
* Course: CPSC 457 | |
* Tutorial: T05 | |
* Assignment: 1 | |
* Question: Q5 | |
* | |
* File name: myWc.cpp |
This file contains hidden or 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
from math import log2 | |
from itertools import product | |
def h(p): | |
a, b, c, d = p | |
calc = ((a ** 4) + (b ** 3) + (c ** 2) + d) | |
return calc % 100 | |
This file contains hidden or 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 urllib.request | |
import datetime | |
import os | |
if not os.path.exists('images/'): | |
os.makedirs('images/') | |
def dl_jpg(url, file_path, file_name): | |
full_path = file_path + file_name + '.jpg' | |
urllib.request.urlretrieve(url,full_path) |
This file contains hidden or 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
bool Graph::dfs_util(int v, int *colors) { | |
colors[v] = GRAY; | |
for (auto *u : n_map[v]->adj) { | |
if (colors[u->name] == GRAY) { | |
return true; | |
} else if (colors[u->name] == WHITE && dfs_util(u->name, colors)) { | |
return true; | |
} | |
} |
This file contains hidden or 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 math | |
import operator | |
def main(): | |
""" | |
Description | |
:raises: | |
:rtype: |
This file contains hidden or 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
#!/usr/bin/python | |
"""Create a network and configure IP addresses | |
This script is intentionally verbose to show you | |
very simple steps to create and configure a network. | |
You can modify the scripts to create different topologies. | |
The network topology created by this script is shown below: |
This file contains hidden or 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
#!/usr/bin/python | |
"""Create a network and configure IP addresses | |
This script is intentionally verbose to show you | |
very simple steps to create and configure a network. | |
You can modify the scripts to create different topologies. | |
The network topology created by this script is shown below: |