Skip to content

Instantly share code, notes, and snippets.

View tiendq's full-sized avatar
🌳
Code for a Living

Tien Do tiendq

🌳
Code for a Living
View GitHub Profile
@tiendq
tiendq / jquery.ui.datepicker-vi-VN.js
Created March 27, 2013 08:01
Vietnamese localization for the jQuery UI date picker plugin. Tested with jQuery UI 1.10.2
/* Vietnamese localization for the jQuery UI date picker plugin. */
/* Written by Tien Do (tiendq@gmail.com) */
jQuery(function ($)
{
$.datepicker.regional["vi-VN"] =
{
closeText: "Đóng",
prevText: "Trước",
nextText: "Sau",
var cmd = "MSBuild";
var sourcePath = "C:\\Store.Web\\";
var profile = "Release";
var buildPath = "C:\\Build";
// Temporary folder must ends with slash.
var tempPath = buildPath + "\\Temp\\";
var outputPath = buildPath + "\\Output\\Store.zip";
FOR /F "tokens=1-4 delims=/ " %%I IN ('DATE /t') DO SET CurrentDate=%%L%%J%%K
@tiendq
tiendq / getFileSize
Created August 14, 2012 10:03
Get file size of file in file input control.
// file: file input control e.g. $("#file")[0]
function getFileSize(file)
{
if (0 === file.value.length)
return 0;
// Non-IE browsers
if (file.files)
{
if (file.files.length > 0)
@tiendq
tiendq / NLogLogger.cs
Created July 2, 2012 03:45
Modified NLogLogger.cs from Castle.Services.Logging.NLogIntegration to include callsite information
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,