Skip to content

Instantly share code, notes, and snippets.

View CSenshi's full-sized avatar
👹
Avoid the Gates of Hell. Use Linux

Saba Pochkhua CSenshi

👹
Avoid the Gates of Hell. Use Linux
View GitHub Profile
# GRADED FUNCTION: L_model_forward
def L_model_forward(X, parameters):
"""
Implement forward propagation for the [LINEAR->RELU]*(L-1)->LINEAR->SIGMOID computation
Arguments:
X -- data, numpy array of shape (input size, number of examples)
parameters -- output of initialize_parameters_deep()
# !/bin/bash
if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 12 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " StandardForm.XXX, ParityCheck.XXX, DecodingTable.XXX, Encode.XXX Decode.xxx"
echo " -t Path to folder which contains public tests(where A,B,C,D,E folders are located)"
echo " -T Path to folder which contains test scriptis (i.e. test_A.py, test_B.py"
echo " -r Path to folder where we should put output for each test"
# !/bin/bash
if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " LZcompress.xxx and LZdecompress.xxx"
echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)"
echo " -r Path to folder where we should put output for each test"
echo " -e Extension of your file (pass with dot exaple: .py)"
# !/bin/bash
if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " LZcompress.xxx and LZdecompress.xxx"
echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)"
echo " -r Path to folder where we should put output for each test"
echo " -e Extension of your file (pass with dot exaple: .py)"
@CSenshi
CSenshi / dv_router.py
Created October 29, 2019 17:33
HW3 - Routing
# coding=utf-8
"""
Your awesome Distance Vector router for CS 168
"""
import sim.api as api
import sim.basics as basics
# We define infinity as a distance of 16.
INFINITY = 16
# !/bin/bash
if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 12 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " SimpleRead.py, SimpleWrite.py, CompleteWrite.py, CompleteRead.py"
echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)"
echo " -T Path to folder which contains test scriptis (i.e. test_C.py, test_d.py"
echo " -r Path to folder where we should put output for each test"
@CSenshi
CSenshi / checker.sh
Last active September 28, 2019 14:30
# !/bin/bash
if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then
echo "Invalid Arguments"
echo "Usage: script requires 3-5 Arguments: "
echo " -s Path to folder which contains following scripts with exact names:"
echo " SimpleRead.py, SimpleWrite.py, CompleteWrite.py, CompleteRead.py"
echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)"
echo " -r Path to folder where we should put output for each test"
echo " -e Extension of your file (pass with dot exaple: .py)"