Skip to content

Instantly share code, notes, and snippets.

@huongnhdh
huongnhdh / reset.css
Created August 5, 2016 06:45 — forked from kohutiv/reset.css
RESET
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@huongnhdh
huongnhdh / simple-modal.html
Created September 9, 2017 16:01
Creating simple modal with sample html, css, javascript (Traversy Media chanel)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Simple Modal</title>
<!-- <link rel="stylesheet" href="style.css" /> -->
<style>
@huongnhdh
huongnhdh / encrypt_decrypt_example.js
Created January 25, 2018 10:01 — forked from erans/encrypt_decrypt_example.js
Example of encryption and decryption in node.js
var crypto = require("crypto")
function encrypt(key, data) {
var cipher = crypto.createCipher('aes-256-cbc', key);
var crypted = cipher.update(text, 'utf-8', 'hex');
crypted += cipher.final('hex');
return crypted;
}
@huongnhdh
huongnhdh / nodejs-custom-es6-errors.md
Created January 25, 2018 20:40 — forked from slavafomin/nodejs-custom-es6-errors.md
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js

//React.js#5.State và Lifecycle-vòng đời của một React component
import React from 'react';
import ReactDOM from 'react-dom';
class Counter extends React.Component {
constructor(props){
super(props)
this.state = {seconds: 10}
}
@huongnhdh
huongnhdh / cloudSettings
Last active July 18, 2021 13:31 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
{"lastUpload":"2021-07-18T13:32:11.948Z","extensionVersion":"v3.4.3"}
@huongnhdh
huongnhdh / beautiful-aurora-footer-lights.markdown
Created July 24, 2018 04:34
Beautiful Aurora Footer Lights
@huongnhdh
huongnhdh / docker-help.md
Created August 17, 2018 14:23 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@huongnhdh
huongnhdh / RoR_checklist_enhancement_code_quality.md
Created October 10, 2018 02:29
RoR check list gem for Quality control source code of you has quality

Coverage code

Guard

Bendmark

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: