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 / GitHub-Forking.md
Last active October 19, 2018 18:41 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

From DigitalOcean:

https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github#create-a-copy-of-the-repository

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitH

@NguyenDa18
NguyenDa18 / brainjs.md
Created September 17, 2018 19:46
Intro to Machine Learning - Brain.js

Machine Learning with JavaScript (Brain.js)

Machine Learning Terminology

  • Neural Network: Artifical neurons connected by layers, usually feed-forward, allowing us to do deep learning.
  • It does this by analyzing training data (data is everything!), data usually hand labelled

Set Up

  • npm init --y
@NguyenDa18
NguyenDa18 / c-cheatsheet.md
Created August 18, 2018 22:19
C Cheatsheet

C Programming Language Cheatsheet

Check installed on Mac / Install on Mac

  • run cc -v
  • if not already installed run xcode-select --install

Pointers: Reference to memory address

int age = 50;
&age // Get memory address of the var
@NguyenDa18
NguyenDa18 / lightning-talk.md
Last active December 25, 2018 08:15
PdxNode Resources

Learning Resources: Web Dev, APIs, DevOps, Machine Learning

Web Learning Resources

@NguyenDa18
NguyenDa18 / shop-deploy.md
Created July 24, 2018 02:10
Shopping App Deployment
@NguyenDa18
NguyenDa18 / cloud9-tips.md
Created July 21, 2018 19:24
QuickStart Cloud9

Cloud9 Quickstart

Reminder: Node is outdated

  • nvm install stable : update to latest Node

Working Angular

  • npm i -g @angular/cli
  • cd app folder
  • ng serve --host 0.0.0.0 --port 8080 --disableHostCheck
  • Preview app
@NguyenDa18
NguyenDa18 / mocha-talk.md
Created July 18, 2018 18:51
Testing Node.js with Mocha

TLDW: Testing NodeJS w/ Mocha

Fundamentals:

  • 6:00: Assertions -comparisons which throw exception upon failure
const assert = value => if (!value) throw new Error('assertion failure!')
  • 6:54: Unit Test -asserts "unit" behaves as intended, "unit" typically a function
@NguyenDa18
NguyenDa18 / ng-service.md
Created July 11, 2018 21:02
Angular Service Manually Generate

Create Service in Angular Manually

  1. Create services/[data].service.ts
import { Injectable } from '@angular/core';

@Injectable()
export class [myData]Service {
  constructor() { }
}
@NguyenDa18
NguyenDa18 / ng-component.md
Last active July 11, 2018 20:55
Angular Component Cheatsheet

Make Angular Component Manually

  1. new [component].ts
import { Component } from '@angular/core'

@Component({
  selector: 'app-[component]',
  templateUrl: 'app-[mycomponent].html',
 styleUrls: []
@NguyenDa18
NguyenDa18 / clojure-ref.md
Last active July 3, 2018 22:32
Clojure Crash Course

Clojure Basics Tutorial - Learning for Cambia ADIF Team

Package file into JAR with Leinengen

  • lein uberjar
  • Execute with: java -jar target/uberjar/<your-code.jar>

Clojure recognizes two kinds of structures:

  1. Literal representations of data structs
  2. Operations