Skip to content

Instantly share code, notes, and snippets.

View ducntq's full-sized avatar
🏠
Working from home

Duc Nguyen ducntq

🏠
Working from home
  • Ho Chi Minh City, Vietnam
View GitHub Profile
@ducntq
ducntq / gist:8ce1a81d4e92f4d549c539296776e1be
Created August 17, 2016 15:15
nginx configuration for ghost
upstream ghost_doiqua {
server 127.0.0.1:2368;
keepalive 64;
}
proxy_cache_path /var/run/cache levels=1:2 keys_zone=STATIC:75m inactive=24h max_size=128m;
server {
listen 80;
server_name doiqua.co;
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\DS1-KnowledgeBase_{postfix}]
"Driver"="C:\\Program Files\\MySQL\\Connector ODBC 5.2\\myodbc5w.dll"
"SERVER"="77.245.67.98"
"UID"="resalesuser1"
"PWD"="sqlpwd2lv"
"DATABASE"="KnowledgeBase_{postfix}"
"PORT"="3306"
"FOUND_ROWS"="1"
"BIG_PACKETS"="1"
"MULTI_STATEMENTS"="1"
function myFunction()
{
var gSalary = 12000000; // gross salary
var sInsurance = 8; // social insurance
var hInsurance = 1.5;
var uInsurance = 1;
var iDeduction = 9000000;
var ifPit;
var pRate = 5;
var finalResult;