Skip to content

Instantly share code, notes, and snippets.

View elmartinez85's full-sized avatar

Eduardo L. Martinez elmartinez85

View GitHub Profile
@font-face {
font-family: "Museo Sans";
src: url(/font/museo-500-webfont.eot);
src: url(/font/museo-500-webfont.eot?#iefix) format('eot'), url(/font/museo-500-webfont.woff) format('woff'), url(/font/museo-500-webfont.ttf) format('truetype'), url(/font/museo-500-webfont.svg) format('svg');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Museo Sans";
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"font_face": "Ubuntu Mono",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
/* --------------- SUBMISSION FORM ---------------- */
#ccform h2{
font-size: 16px;
margin: 0;
padding: 0;
}
#noticias #mostpopular ol li,
.home #mostpopular ol li{ with: Nathan Cavanagh @ 3:51
jQuery(function () {
var today = new Date(Date.parse('10.14.2011 11:22:22'));
var deadDate = new Date(Date.parse('10.15.2011 10:00:00'));
$('#defaultCountdown').countdown({
until: new Date(deadDate.getFullYear(deadDate), deadDate.getMonth(deadDate), deadDate.getDate(deadDate), 11, 59, 59),
serverSync: function(){
var time = new Date(today.getFullYear(today), today.getMonth(today), today.getDate(today), 12, 0, 0);
return time;
}
<?php
echo $this->Form->input('exp_year', array(
'selected' => $user['Billing']['exp_year'],
'type' => 'date',
'maxYear' => date('Y', strtotime('+ 7 years')),
'minYear' => date('Y'),
'dateFormat' => 'Y',
'label' => false,
'disabled' => 'disabled',
));
public function paginateCount($conditions = null, $recursive = 0, $extra = array()) {
$parameters = compact('conditions', 'recursive');
if (isset($extra['group'])) {
$parameters['fields'] = $extra['group'];
if (is_string($parameters['fields'])) {
// pagination with single GROUP BY field
if (substr($parameters['fields'], 0, 9) != 'DISTINCT ') {
$parameters['fields'] = 'DISTINCT ' . $parameters['fields'];
server {
listen 80;
server_name example.com;
root /var/www/cakephp/app/webroot;
index index.php index.html index.htm;
access_log /var/www/cakephp/app/tmp/logs/access.log;
error_log /var/www/cakephp/app/tmp/logs/error.log;
rewrite_log on;
<?php
App::import('Vendor', 'Upload.S3');
Configure::load('Upload.config');
class UploadComponent extends Object {
// set name of the component
public $name = 'Upload';