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
var instantSearchTemplate = InstantSearchResultBlock.prototype.getTemplate; | |
InstantSearchResultBlock.prototype.getTemplate = function(tempType) { | |
if (['products', 'collections'].indexOf(tempType) === -1) return instantSearchTemplate.call(this, tempType); | |
return '<li class="{{class.searchSuggestionGroup}} ' + tempType + '" data-group="{{type}}" aria-label="{{label}}">' + | |
'<ul class="default">' + | |
'<li class="{{class.searchSuggestionHeader}}-{{type}} {{class.searchSuggestionHeader}}" aria-label="{{label}}">{{label}}</li>' + | |
'{{resultItems}}' + | |
'</ul>' + |
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
{ | |
"Responsive Font Post CSS": { | |
"scope": "css, scss, postcss", | |
"prefix" : ["responsive-font"], | |
"body": ["font-size: responsive ${1:min}px ${2:max}px;\nfont-range: 320px 1024px;"], | |
"description": "Responsive font Post CSS" | |
}, | |
"Media Query Max Width": { | |
"scope": "css, scss, postcss", | |
"prefix" : ["media-max-width"], |
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
{% for p in line.properties %}{% unless p.last == blank %} - {{ p.first }}: {{ p.last }}{% endunless %}<br>{% endfor %} |
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
module.exports = { | |
mode: 'development', | |
entry: { | |
js: path.resolve('zrc/main.js'), | |
"css-base": path.resolve('zrc/styles/_bundles/base.css'), | |
}, | |
stats: 'minimal', | |
watchOptions: { | |
ignored: /node_modules/, | |
}, |
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
{% capture email_title %}Gracias por tu compra! {% endcapture %} | |
{% capture email_body %} | |
{% if requires_shipping %} | |
Hola {{ customer.first_name }}, vamos a preparar tu pedido de acuerdo a tus especificaciones. Deberás recibir tus anteojos en un lapso no mayor a 10 días hábiles. Por este medio, te notificaremos el servicio de paquetería que utilizaremos y el número de rastreo.. | |
{% endif %} | |
{% endcapture %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |
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
function today() { | |
var todaysDate = new Date(); // Gets today's date | |
var year = todaysDate.getFullYear(); // YYYY | |
var month = ("0" + (todaysDate.getMonth() + 1)).slice(-2); // MM | |
var day = ("0" + todaysDate.getDate()).slice(-2); // DD | |
var today = (year +"-"+ month +"-"+ day); // Results in "YYYY-MM-DD" for today's date | |
return today; |
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
(function($){ | |
$.fn.extend({ | |
numAnim: function(options) { | |
if ( ! this.length) | |
return false; | |
this.defaults = { | |
endAt: 2560, | |
numClass: 'autogen-num', | |
duration: 5, // seconds |
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
jQuery.validator.addMethod("extension", function (value, element, param) { | |
param = typeof param === "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; | |
return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); | |
}, "Please enter a value with a valid 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
<?php | |
/* | |
Author: Mukesh Jakhar | |
Description: Rename file while uploading in codeigniter (Controller) | |
*/ | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Image extends CI_Controller { | |
function __construct() { | |
parent::__construct(); | |
} |
NewerOlder