Skip to content

Instantly share code, notes, and snippets.

View vuthaihoc's full-sized avatar
🤒
ke ke ặc ặc

Stupid Dev vuthaihoc

🤒
ke ke ặc ặc
View GitHub Profile
@vuthaihoc
vuthaihoc / mamp_additional_php_versions.md
Created August 1, 2018 07:53
MAMP Additional PHP versions
@vuthaihoc
vuthaihoc / test.php
Last active September 17, 2018 17:36
Tiny Problems
- Problem 1: Cho mảng nhiều chiều
[
a => 1,
b => 2,
c => [
d => 4,
e => 5,
f => [ g => 6]
]
]
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
<?php
/**
* Created by PhpStorm.
* User: hocvt
* Date: 1/4/19
* Time: 15:05
*/
ini_set( 'display_errors', 1);
@vuthaihoc
vuthaihoc / ww.html
Created February 15, 2019 10:47
Web worker count down
<!DOCTYPE html>
<html>
<body>
<button onclick="startWorker()">Start Count</button>
<p>Count down <span id="number_view"></span></p>
<script>
var w;
@vuthaihoc
vuthaihoc / list.md
Created March 1, 2019 08:01
Một số class được thiết kế để tương tác với db

Đọc để học cách thiết kế, các hàm nên có đối với class tương tác db dùng chung cho nhiều vị trí trong project. Đọc cách sử dụng để thấy khi sử dụng thì có những cách truyền biến, truyền yêu cầu nào, cách nào là hợp lý hơn trong project

@vuthaihoc
vuthaihoc / common dns servers.md
Last active March 3, 2019 13:42
Check ip of a domain with specific dns server

DNS Google

8.8.8.8
8.8.4.4

DNS Singapore

165.21.83.88
165.21.100.88
@vuthaihoc
vuthaihoc / questions.md
Last active July 12, 2019 04:11 — forked from amitmerchant1990/questions.md
Questions
1) What is Asynchronous call?
  • A function that enables processing to continue without waiting for function to return the value.
2) What is Full-text search ?
  • In this we can match a word or phrase in multiple columns and fetch rows accordingly. The Full-text searches are supported for MyISAM tables only ex. : SELECT * FROM articles WHERE MATCH (title,body) AGAINST ('database');
@vuthaihoc
vuthaihoc / Readme.md
Created July 12, 2019 09:22
Demo parse.php file

Readme.md