Skip to content

Instantly share code, notes, and snippets.

@nguyenhoangsin
nguyenhoangsin / faq.html
Last active June 29, 2018 04:56
Template FAQ
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet">
<style>
.wrapper {
padding: 0;
margin: 0;
@nguyenhoangsin
nguyenhoangsin / template.html
Created June 27, 2018 10:01
Template notice
<!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>Document</title>
<style>
.wrapper {
<div class="panel-group">
<div class="jsCollapseItem panel panel-default">
<div class="panel-heading">
<a class="jsCollapseItemHead accordion">
<h4 class="panel-title">
Collapsible Group Item #1
<i class="material-icons">keyboard_arrow_down</i>
</h4>
</a>
</div>
var currencyValidator = {
format: function (number) {
return (Math.trunc(number * 1000000000000) / 1000000000000).toFixed(2)
},
parse: function (newString, oldNumber) {
var CleanParse = function (value) {
return { value: value }
}
var CurrencyWarning = function (warning, value) {
return {
"use strict";
const webpack = require('webpack-stream');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const runSequence = require('run-sequence');
const browserSync = require('browser-sync').create();
const del = require('del');
const gulp = require('gulp');
const $ = require('gulp-load-plugins')({
scope: [
'devDependencies'
@nguyenhoangsin
nguyenhoangsin / convention.css
Last active March 2, 2018 10:12 — forked from geoffreyhale/CSS Property Order - Box Model Convention
CSS Property Order - Box Model Convention
display: ;
visibility: ;
float: ;
clear: ;
position: ;
top: ;
right: ;
bottom: ;
left: ;
@nguyenhoangsin
nguyenhoangsin / checkPrimeNumber.js
Last active August 30, 2017 17:11
Node.js basic
var yargs = require('yargs');
function checkPrimeNumber(n) {
var flag = true;
if (isNaN(n)) {
flag = false;
} else if (n < 2) {
flag = false;
} else if (n > 2) {
for (var i = 2; i <= 7; i++) {
@nguyenhoangsin
nguyenhoangsin / 3d-css.html
Last active August 24, 2017 09:53
Small tips with javascript
<html>
<body>
<style>
div.block1 {
margin: 100px;
border: 1px solid #0000cc;
height: 200px;
width: 200px;
animation: chuyenDong 5s infinite linear;
@nguyenhoangsin
nguyenhoangsin / laravellocal.md
Created August 24, 2017 04:44 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci