Skip to content

Instantly share code, notes, and snippets.

View nhtranngoc's full-sized avatar

Nam Tran Ngoc nhtranngoc

View GitHub Profile
@nhtranngoc
nhtranngoc / substitution_cipher.c
Last active October 28, 2019 01:56
Quick C program to solve Prof. Mus' cipher
/*
ECE4802 - Cryptography
Homework 1
Part 1
Nam Tran Ngoc
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

B5 Literature Mid-term

90 minutes, closed-book, closed-notes

1) Summarize the events that leads up to The Odyssey in 200 words or less.

................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

B5 Literature Mid-term

90 minutes, closed-book, closed-notes

1) Summarize the events that leads up to The Odyssey in 200 words or less.

................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

B5 Mid-term Review Questions

Literary Works

The Odyssey

  • What is the background of The Odyssey? Of the Trojan War?
  • Can you name the Twelve Olympians? Which theological system did the Ancient Greeks follow? What makes the Greek Gods and Goddesses stand out from other religions?
  • Can you summarize each of the 24 books? Can you give a rough description of the journey of the titular hero?
  • What is an epic poem? How is this different from Frost's The Road Not Taken?
  • What are the themes of this work?
  • Who was the author? Was it one person or multiple people?
  • What influence did The Odyssey have on Western culture? Why had this work last so long?

Gary Provost

This sentence has five words. Here are five more words. Five-word sentences are fine. But several together become monotonous. Listen to what is happening. The writing is getting boring. The sound of it drones. It’s like a stuck record. The ear demands some variety. Now listen. I vary the sentence length, and I create music. Music. The writing sings. It has a pleasant rhythm, a lilt, a harmony. I use short sentences. And I use sentences of medium length. And sometimes, when I am certain the reader is rested, I will engage him with a sentence of considerable length, a sentence that burns with energy and builds with all the impetus of a crescendo, the roll of the drums, the crash of the cymbals–sounds that say listen to this, it is important.

Chuck Palahniuk

In six seconds, you’ll hate me. But in six months, you’ll be a better writer.

Preliminary English Test 5

Test 1

Question 6

You want to borrow your English friend Sam's bicycle.

Write an email to your English friend Sam. In your email, you should

Preliminary English Test 5, Sample Writing

Test 1

Sample A (Question 6: Email to Sam)

Hello Sam,

How are you? I want to give me a favor. I want to borrow you bicycle because you know that I like all about it and I don't have a bicycle. I will need it for only 5 day. Please I really need it, as soon I finished I will return it, ok? Please I need your answer. Bye take care kisses.

@nhtranngoc
nhtranngoc / pythonListing.tex
Last active March 16, 2023 20:48
LaTex settings for embedding Python with Monokai theme
\usepackage{listings}
\usepackage{fontspec}
\setmonofont{Consolas}
\definecolor{background}{RGB}{39, 40, 34}
\definecolor{string}{RGB}{230, 219, 116}
\definecolor{comment}{RGB}{117, 113, 94}
\definecolor{normal}{RGB}{248, 248, 242}
\definecolor{identifier}{RGB}{166, 226, 46}
#!/bin/bash
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.cm commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
function PID = discretePID (x)
%The array parameter should be in this form (kp, ki, kd, deltaT, prevErr, desired)
%x(1)-x(3) kp, ki, kd coefficients
%x(4)delta time needed to perform integration and differentiation
%x(5) previous error
%x(6) desired setpoint value
%prevErr should be a global variable
err = x(6)- x(5); %Error equals difference between desired setpoint and previous error
integral += err*x(4);