Skip to content

Instantly share code, notes, and snippets.

View tvqqq's full-sized avatar
💭
Stay Hungry, Stay Foolish

Quyen Tat tvqqq

💭
Stay Hungry, Stay Foolish
View GitHub Profile
@tvqqq
tvqqq / httpd-vhosts.conf
Last active October 11, 2018 02:43
Config vhosts (XAMPP)
# xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost todo.local>
DocumentRoot "C:/xampp72/htdocs/todolist"
ServerName todo.local
<Directory "C:/xampp72/htdocs/todolist">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
@tvqqq
tvqqq / .htaccess
Last active September 14, 2023 20:31
.htaccess - Laravel (remove /public)
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
@tvqqq
tvqqq / chom-sao-cua-tui.js
Created April 21, 2018 04:33
Chòm sao của tui - jQuery
// Khai báo jQuery trong WP, tham số $ trong function như con trỏ this
jQuery(function($) {
$("#thang").on('change', function() {
var thang = this.value;
var htmlNgay = '<option value="0" selected>----Ngày----</option>';
var n = 1;
switch(parseInt(thang)) {
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
n = 31;
break;