Skip to content

Instantly share code, notes, and snippets.

View NguyenDa18's full-sized avatar
🎧
Listening to Funny Podcasts

Danh Nguyen NguyenDa18

🎧
Listening to Funny Podcasts
View GitHub Profile
@NguyenDa18
NguyenDa18 / neuralnet.py
Last active January 7, 2018 20:14
Simple Neural Network
import numpy as np
# X = (hours sleeping, hours studying), y = score on test
X = np.array(([2, 9], [1, 5], [3, 6]), dtype=float)
y = np.array(([92], [86], [89]), dtype=float)
# scale units
X = X/np.amax(X, axis=0) # maximum of X array
y = y/100 # max test score is 100
@NguyenDa18
NguyenDa18 / Free O'Reilly Books.md
Created January 11, 2018 01:39 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@NguyenDa18
NguyenDa18 / jest.js
Last active April 21, 2018 21:33
Jest 101
/// functions.js ////
const functions = {
add: (num1, num2) => num1 + num2,
isNull: () => null,
checkValue: x => 4,
createUser: () => {
const user = { firstName: 'Deku' };
user['lastName'] = 'Midoriya';
return user;
}
@NguyenDa18
NguyenDa18 / java_start.md
Created May 16, 2018 04:21
Starting/Learning with Java

Java Setup

  • Download JDK (software development kit for Java), includes JRE (Java Runtime Environment) with JVM (Java Virtual Machine), from Oracle
  • An IDE (think IntelliJ)

Java 9 Feature: JShell -immediate results from line of code, lives in terminal

@NguyenDa18
NguyenDa18 / netflix-overview.md
Created May 16, 2018 07:09
Netflix_Overview

Netflix Overview

  • AWS: Compute and Storage
  • Akamai: UI & Small Assets
  • Netflix Open Connect CDN: All Video Bits
  1. Homebuilt caching infrastructure given to a provider (ISP) to use - decentralize the way video is streamed WOW
  • Microservices Infrastructure (hundreds)
  • No data centers: completely cloud based
@NguyenDa18
NguyenDa18 / medium-web.md
Last active May 26, 2018 07:25
Medium Bookmarks - Web Development
@NguyenDa18
NguyenDa18 / sql_notes.md
Last active May 22, 2018 21:49
SQL Notes/Cheatsheet

SQL Notes from DataCamp

SELECT cols & basic counts

  • SELECT col1, col2, col3 FROM table; // Select multiple rows
  • SELECT col1 FROM table LIMIT 5; // Limit results to first 5
  • SELECT DISTINCT language FROM table; // Select only unique values from col
  • SELECT COUNT(*) FROM table; // Return number of rows in table
  • SELECT COUNT(col) FROM table; // Return number of NON-MISSING column values in table
  • SELECT COUNT(DISTINCT col) FROM table; // Count number of distinct non-missing vals in col
@NguyenDa18
NguyenDa18 / MacOS_Install_OpenCV.py
Last active May 19, 2018 00:19 — forked from vishwanath79/MacOS_Install_OpenCV.py
Install OpenCV on Mac OS Sierra on Python 3.5
# Installing OpenCV globally on Anaconda
- [https://www.codingforentrepreneurs.com/blog/install-opencv-3-for-python-on-mac/]
# 1. Download and install the latest Anaconda distribution from https://www.continuum.io/downloads#macos
# 2. Create a new Python environment. Make sure you choose python 3.5 as your python version for the virtual environment:
conda create -n myenv python=3.5