This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-moz-border-radius: 5px; /* Firefox */ | |
-webkit-border-radius: 5px; /* Safari and Chrome */ | |
border-radius: 5px; /* Opera 10.5+, future browsers, and now also Internet Explorer 6+ using IE-CSS3 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-moz-box-shadow: 0 3px 8px 6px rgba(64, 87, 115, 0.5); /* Firefox */ | |
-webkit-box-shadow: 0 3px 8px 6px rgba(64, 87, 115, 0.5); /* Safari and Chrome */ | |
box-shadow: 0 3px 8px 6px rgba(64, 87, 115, 0.5); /* Opera 10.5+, future browsers, and now also Internet Explorer 6+ using IE-CSS3 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
width: 100%; overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// Source: http://www.devthought.com/2009/06/09/fix-ereg-is-deprecated-errors-in-php-53/ | |
// | |
// To migrate ereg(): | |
ereg('\.([^\.]*$)', $this->file_src_name, $extension); | |
// becomes | |
preg_match('/\.([^\.]*$)/', $this->file_src_name, $extension); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySQL DATE_FORMAT() Letter Representations | |
Specifier Description | |
%a Abbreviated weekday name (Sun..Sat) | |
%b Abbreviated month name (Jan..Dec) | |
%c Month, numeric (0..12) | |
%D Day of the month with English suffix (0th, 1st, 2nd, 3rd, …) | |
%d Day of the month, numeric (00..31) | |
%e Day of the month, numeric (0..31) | |
%f Microseconds (000000..999999) | |
%H Hour (00..23) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// From Googling, update: 2012-10-01 | |
// | |
var disableContextMenu = function(){ | |
return this.each(function(){ | |
$(this).bind('contextmenu', function(){return false}) | |
$(this).mousedown(function(){return false}) | |
$(this).click(function(){return true}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DbLogger { | |
private $table_name; | |
private $db; | |
private $queries; | |
private $errors; | |
private $result; | |
private $safe; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Paginator { | |
var $per_page; | |
var $total; | |
var $list; | |
var $period; | |
public function __construct( $per_page, $total ) { | |
$this->per_page = $per_page; | |
$this->total = $total; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.$on('$viewContentLoaded', function() { | |
$scope._style = document.createElement('link'); | |
$scope._style.type = 'text/css'; | |
$scope._style.href = 'application/Invoice/Resource/single.css'; | |
$scope._style.rel = 'stylesheet'; | |
$scope._style = document.head.appendChild($scope._style); | |
}); | |
$scope.$on('$destroy', function() { |
OlderNewer