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
/*************************************************************************************************************************************************************** | |
* | |
* App framework and settings | |
* | |
* [Description of application] | |
* | |
* @license [url] [description] | |
* @author [author & @email] | |
* @repository [url] | |
* |
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
export PATH=/usr/local/bin:$PATH | |
# promt colors | |
export PS1="\[\033[0;32m\]\w \[\033[0;97m\]\$\[\033[0m\] " | |
# ls alias for color-mode | |
alias ls='ls -lhaG' | |
# cd up | |
alias ..='cd ..' |
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
'use strict'; | |
/******************************************************************************************************* | |
* | |
* FOLDER STRUCTURE | |
* | |
* dev // files in root just move to ./prod/ and *.html files will look for grunt-includes directives | |
* ├── HTMLincludes // HTML snippets included by grunt-includes | |
* │ └── windows.html | |
* ├── fonts // files will simply be moved to ./prod/fonts/ |
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 | |
/*****************************| MYSQL CONNECTION FUNCTION |*****************************/ | |
/** | |
* Simple MySQL abstraction layer for the MySQLi absctration as a replacement | |
* | |
* @param resource $mysqli The MySQLi connection link for upgrade to MySQLi | |
* @param string $query The MySQL query for prepaired statement | |
* @param array $v The parameters to replace ? in $query. First element must be the type | |
* @param integer $o Option for more debug infos [0]=no infos(default) [1]=adding debug infos | |
* |
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
{% comment %} | |
This snippet gets the first image from the parameter text | |
Usage: | |
{% include 'get-image' with page.content %} | |
Return: | |
{{ imageSrc }} is the string of the original image | |
Required: |
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
/**************************************************************| CONVERT VARIANT TO SWATCHES |*/ | |
$(function() { | |
if($(".single-option-selector").length) { | |
$(".single-option-selector").each(function(i) { | |
var $thisSelect = $(this); | |
var $newClass = "js-option-selector-" + i; | |
var $newOptions = '<ul class="new-variant-swatchs">'; | |
var $currentOption = $thisSelect.val(); |
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
{% comment %} | |
This snippet displays sizes | |
Usage: | |
{% include 'show-sizes' with product %} | |
Return: | |
no return | |
Required: |
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.fn.animateHeightAuto = function(speed, callback) { | |
var height; | |
return this.each(function(i, $element) { | |
var $this = $( $element ); | |
var heightBackup = $this.css('height'); | |
$this.css({ |