Skip to content

Instantly share code, notes, and snippets.

View hpphat92's full-sized avatar
😀
Working at STS

Phát Hồng hpphat92

😀
Working at STS
  • Ho Chi Minh City, Viet Nam
View GitHub Profile
@hpphat92
hpphat92 / huffman.html
Created February 22, 2017 14:33
Huffman Compression - Encode
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- endbuild -->
</head>
<body>
@hpphat92
hpphat92 / huffman_store_restruction_tree.html
Created February 23, 2017 14:48
Store and Restruction Static Huffman Tree
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- endbuild -->
</head>
<body>
@hpphat92
hpphat92 / unzip_huffman.html
Created February 27, 2017 14:54
Unzip data from static huffman algo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- endbuild -->
</head>
<body>
var Hls = require('hls.js');
module.exports = ['$sce', function ($sce) {
return {
restrict: 'E',
scope: {
thumbnail: '@',
streamingSrc: '@',
fallbacks: '<',
@hpphat92
hpphat92 / INSTALL_SERVER_DEPLOY.MD
Created September 27, 2017 06:27
Guide to connect and deploy AWS Server

Guide to connect and deploy AWS Server

What should we need?

  • PEM file containing private key from AWS server.
  • A domain to server
  • GIT Bash (In Window, can't use command line tool or powershell).

Steps: Step 1: Connect to server: In Window, open GIT Bash and run: ssh -i [Direction to PEM File] [using either root, ubuntu or ec2-user, centos]@[server domain]

@hpphat92
hpphat92 / GUIDELINE_AWS.md
Created September 27, 2017 07:09
Guide to connect and deploy AWS Server

Guide to connect and deploy AWS Server

Preparation

  • PEM file containing private key from AWS server.
  • A domain to server
  • GIT Bash (In Window, can't use command line tool or powershell).

Steps:

Step 1: Connect to server:

RouterModule.forRoot(routes)
<template>
<style>
:host {
display: block;
contain: content;
border: 1px solid rgba(255, 0, 0, .8);
background-color: rgba(255, 0, 0, .4);
border-radius: 4px;
box-shadow: 0 0 10px rgba(128, 100, 38, 0.34);
font-family: sans-serif;
<custom-message>
<span slot="emoji">👋</span>
<span slot="message">A very important message!</span>
</custom-message>