Skip to content

Instantly share code, notes, and snippets.

View rain1024's full-sized avatar
🏠
Working from home

Vu Anh rain1024

🏠
Working from home
View GitHub Profile
@rain1024
rain1024 / ac.md
Last active August 29, 2015 14:05
uml

Association

image

public class Customer {
    private String name;
    private String address;
    private String contactNumber;
    }
 
@rain1024
rain1024 / load.py
Created August 18, 2014 04:12
Sklearn
import numpy as np
f = open("filename.txt")
# skip the header
f.readline()
data = np.loadtxt(f)
# select columns 1 through end
X = data[:, 1:]
# select column 0, the stock price
@rain1024
rain1024 / intro.md
Last active August 29, 2015 14:05
ubuntu

Ubuntu is a Debian-based Linux operating system, with Unity as its default desktop environment (GNOME was the previous desktop environment). It is based on free software and named after the Southern African philosophy of ubuntu (literally, "human-ness"), which often is translated as "humanity towards others" or "the belief in a universal bond of sharing that connects all humanity".

image

@rain1024
rain1024 / intro.md
Last active August 29, 2015 14:05
Python

Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. The language provides constructs intended to enable clear programs on both a small and large scale.

@rain1024
rain1024 / 00 intro.md
Last active August 29, 2015 14:05
angularjs

image

AngularJS is an open-source web application framework, maintained by Google and community, that assists with creating single-page applications, one-page web applications that only require HTML, CSS, and JavaScript on the client side. Its goal is to augment web applications with model–view–controller (MVC) capability, in an effort to make both development and testing easier.

1, 2, 3

# create project
yo angular
# install dependecny
npm install
@rain1024
rain1024 / ml.md
Last active August 29, 2015 14:05
machine learning

Machine learning is a subfield of computer science (CS) and artificial intelligence (AI) that deals with the construction and study of systems that can learn from data, rather than follow only explicitly programmed instructions. Besides CS and AI, it has strong ties to statistics and optimization, which deliver both methods and theory to the field. Machine learning is employed in a range of computing tasks where designing and programming explicit, rule-based algorithms is infeasible. Example applications include spam filtering, optical character recognition (OCR), search engines and computer vision. Machine learning, data mining, and pattern recognition[citation needed] are sometimes conflated.

@rain1024
rain1024 / ubuntu.md
Created August 21, 2014 03:13
Developer Tools in Ubuntu

Ubuntu is a Debian-based Linux operating system, with Unity as its default desktop environment (GNOME was the previous desktop environment). It is based on free software and named after the Southern African philosophy of ubuntu (literally, "human-ness"), which often is translated as "humanity towards others" or "the belief in a universal bond of sharing that connects all humanity".

@rain1024
rain1024 / 1 test.py
Last active August 29, 2015 14:05
Python
import random
import unittest
class TestSequenceFunctions(unittest.TestCase):
def setUp(self):
self.seq = range(10)
def test_shuffle(self):
# make sure the shuffled sequence does not lose any elements
@rain1024
rain1024 / 0 design-pattern.md
Last active March 9, 2024 22:47
design pattern

Design Pattern

  • name
  • intent
  • problem/motivation
  • solution
  • structure
  • code
  • consequences & trade-offs

Creational