Skip to content

Instantly share code, notes, and snippets.

<style>
/* from http://www.mobilexweb.com/blog/ios-5-1-new-ipad-web-developers */
@media screen and (-webkit-device-pixel-ratio: 2) {
/* retina display */
}
</style>
<script>
// from https://developer.mozilla.org/en/DOM/window.matchMedia
if (window.matchMedia("(-webkit-device-pixel-ratio: 2)").matches) {
/* Vietnamese localization for the jQuery UI date picker plugin. */
/* Written by Tien Do ([email protected]) */
jQuery(function ($)
{
$.datepicker.regional["vi-VN"] =
{
closeText: "Đóng",
prevText: "Trước",
nextText: "Sau",
@salipro4ever
salipro4ever / app.js
Created November 8, 2013 03:29 — forked from clarle/app.js
// Module dependencies
var express = require('express'),
mysql = require('mysql');
// Application initialization
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
<?php
/*
* @name DataBase class
* @author Miguel Fermín
* @copyright 2013
* @license Do whatever you want with this class
*/
class DataBase {
var $con;
<?php
/*
* File: SimpleImage.php
* Author: Simon Jarvis
* Modified by: Miguel Fermín
* Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2