Skip to content

Instantly share code, notes, and snippets.

View tinvm's full-sized avatar

Tin Minh tinvm

View GitHub Profile
@tinvm
tinvm / restfull crud application for frontend
Created July 24, 2018 03:42
restfull crud application for frontend
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
https://db.tt/8dwFdSiPIr
@tinvm
tinvm / gist:111fcaea134ba60c61c3337042f6c3e7
Created April 11, 2017 07:52
Địa giới hành chính Việt Nam - Dec23 2016
This file has been truncated, but you can view the full file.
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50625
Source Host : localhost:3306
Source Database : dia_gioi_hanh_chinh
Target Server Type : MYSQL
Target Server Version : 50625
var numCmt = [];
var res = [];
for (var i = 0; i < $("u_jsonp_5_2o").getElementsByClassName("UFICommentBody").length; i++) {
var comment = $("u_jsonp_5_2o").getElementsByClassName("UFICommentBody")[i].innerHTML.substring(6);
var num = comment.substring(0, comment.length - 7);
numCmt.push(parseInt(num));
}
for (var j=0; j<3333333333333; j++) {
if (res.length <= 5) {
if(!numCmt.includes(j)) {