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.removeClassRegEx = function(regex) | |
{ | |
return this.each(function() | |
{ | |
var classes = $(this).attr('class'); | |
if( !classes || !regex){ return false; } |
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.hasClassRegEx = function(regex) | |
{ | |
var classes = $(this).attr('class'); | |
if(!classes || !regex){ return false; } | |
classes = classes.split(' '); | |
var len = classes.length; |
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
// Allows random intervals that do not start with 1. So you can get a random number from 10 to 15 for example. | |
function randomIntFromInterval(min,max) | |
{ | |
return Math.floor( Math.random()* ( max - min + 1 ) + min ); | |
} |
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
.trucate{ | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
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
// Math.random() will give you a random decimal number between 0 and 1 | |
// Just check if the number is greater than 0.5 | |
// And apply -1 or 1 depending on the result | |
Math.random() < 0.5 ? -1 : 1; | |
// Math.random() will give you a random decimal number between 0 and 1 | |
// Math.rand() of a Math.random() will give you an integer 0 or 1 | |
// Use 0 or 1 as a result of a condition to use -1 or 1 | |
Math.round(Math.random()) ? -1 : 1; | |
// /!\ NOTE : Can be used for any other values like 9 or 37 ; -2 or 2... |
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 string_to_slug = function (str) | |
{ | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuuncescrzyuudtn------"; | |
for (var i=0, l=from.length ; i<l ; i++) |
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
.sidebar_newsletter_sign_up, | |
.sidebar_subscribe, | |
.sign-up-form-single, | |
.signup-form--header, | |
.signup-with-checkboxes, | |
.skinny-sign-up, | |
.slidedown-newsletter, | |
.small-newsletter, | |
.social-link-mail, | |
.social_newsletter_box, |
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
npm uninstall gulp-sass node-sass --save-dev | |
npm install gulp-sass node-sass --save-dev |
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
.row{ | |
&.full-width{ | |
width: 100%; | |
max-width: 100%!important; //might be needded depending on your settings | |
&>.column:first-child, | |
&>.columns:first-child{ | |
padding-left: 0; | |
} | |
&>.column:last-child, | |
&>.columns:last-child{ |
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
cd path/to/the/sql/ | |
mysql -p mysqlUser -p | |
use dbName | |
source file.sql |
OlderNewer