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 / ml4all.md
Last active May 29, 2018 23:14
ML4ALL Day 1

Document of talks at ML4ALL

Machine Learning Can Increase Health Insurance Enrollments - Ricky Hennesssy

Obamacare

  • Make affordable health insurance available
  • Expand Medicaid to cover low income adults
  • Support Medicare delivery methods designed to lower costs
  • Important provisions and solutions
  1. Insurance Mandates
@NguyenDa18
NguyenDa18 / barcode_detection.py
Created May 24, 2018 20:22
Refactored Python Barcode Reader
# USAGE
# python detect_barcode.py --image images/barcode_<num>.jpg
# import the necessary packages
import numpy as np
import argparse
import cv2
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
@NguyenDa18
NguyenDa18 / typescript_101.md
Last active May 22, 2018 23:57
TypeScript Basics

TypeScript 101 - From Dylan Israel (CodeTutorials360)

Getting started

  • Run npm i -g typescripton terminal

  • Create a new TypeScript file: .ts

  • Run tsc <file>.ts to get the compiled javascript version of code

  • Use the annotation: '@ts-check' to have the javascript file be checked like TypeScript

Examples: Primary types

@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
@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 / medium-web.md
Last active May 26, 2018 07:25
Medium Bookmarks - Web Development
@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 / 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