Skip to content

Instantly share code, notes, and snippets.

View kevinzhang96's full-sized avatar

Kevin Zhang kevinzhang96

View GitHub Profile
@kevinzhang96
kevinzhang96 / id_rsa.pub
Created October 20, 2015 02:07
Macbook Pro 10/19/15 RSA Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDG592AmpyEVvSX4z0uDPtnh0vFgEsGn8T2xeVFAvoDIphdDajPzTup0IOeVMzHYMCbqh2EfgE4Vr0X0a5yDha/yOm0P7v+SDdHwxp0dUUY3at3ZirN+b3chUO88RK+7Axql98K8nIFPjUOw1M/+1DOb7HN3ASkXQgtzwPPKFHRSbLySqmN+tBQ39z0LtPcpxpQIzASjQrgu07DT1iEXp/N+2/YPOy8FhUBf7+c+snX4DhyfzSzZMNqPtwoddgwpqWfN5VStR16Vln8ZIajdwAh5xHU1K+O1tzZYaZwChhUfowjfqf8OZYjIdh/KmLLAi9L2svaD1fJUbqzJ1h/BuOj [email protected]
@kevinzhang96
kevinzhang96 / io61_write.c
Created October 16, 2015 22:49
IO61 Write Function
// io61_write(f, buf, sz)
// Write `sz` characters from `buf` to `f`. Returns the number of
// characters written on success; normally this is `sz`. Returns -1 if
// an error occurred before any characters were written.
ssize_t io61_write(io61_file* f, const char* buf, size_t sz) {
size_t nleft = sz;
int buf_pos = 0;
// continue writing until done
@kevinzhang96
kevinzhang96 / mux v2.v
Created September 25, 2015 04:37
CS141 16:1 Multiplexer
`timescale 1ns / 1ps
`default_nettype none //helps catch typo-related bugs
//////////////////////////////////////////////////////////////////////////////////
//
// CS 141 - Fall 2015
// Module Name: mux
// Author(s): Kevin Zhang
// Description: 16:1 multiplexer
//
//
@kevinzhang96
kevinzhang96 / cs121.tex
Created September 21, 2015 00:27
LaTeX Finite Automata
\usepackage{tikz}
\begin{center}
\begin{tikzpicture}[scale=0.2]
\tikzstyle{every node}+=[inner sep=0pt]
\draw [black] (15.7,-9.8) circle (3);
\draw (15.7,-9.8) node {$q_0$};
\draw [black] (15.7,-9.8) circle (2.4);
\draw (11.7, -8.8) -- (12.7, -9.8) -- (11.7, -10.8);
\end{tikzpicture}
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management