Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
<?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 |
<?php | |
/* | |
* @name DataBase class | |
* @author Miguel Fermín | |
* @copyright 2013 | |
* @license Do whatever you want with this class | |
*/ | |
class DataBase { | |
var $con; |
// Module dependencies | |
var express = require('express'), | |
mysql = require('mysql'); | |
// Application initialization | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', |
/* 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", |
Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
<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) { |
/* | |
* Copyright (C) 2004 Baron Schwartz <baron at sequent dot org> | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU Lesser General Public License as published by the | |
* Free Software Foundation, version 2.1. | |
* | |
* This program is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
<?php | |
/* | |
* Converts CSV to JSON | |
* Example uses Google Spreadsheet CSV feed | |
* csvToArray function I think I found on php.net | |
*/ | |
header('Content-type: application/json'); | |
// Set your CSV feed |
/* | |
* RC4 symmetric cipher encryption/decryption | |
* | |
* @license Public Domain | |
* @param string key - secret key for encryption/decryption | |
* @param string str - string to be encrypted/decrypted | |
* @return string | |
*/ | |
function rc4(key, str) { | |
var s = [], j = 0, x, res = ''; |
<div id="banner"> | |
<div class="wrap-center"> | |
<div class="banner-centered" id="banner-text"> | |
<h2>Hello <strong>We Are Company-Name</strong>, Glad To See You. :-)</h2> | |
</div> | |
</div> | |
</div> |