Remove Mac OSX’s dot underscore files
Author Archives: Prosoxi.com Webmaster
Performs a smooth page scroll to an anchor Jquery
$(function() { $(‘a[href*=”#”]:not([href=”#”])’).click(function() { if (location.pathname.replace(/^\//,”) == this.pathname.replace(/^\//,”) && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $(‘[name=’ + this.hash.slice(1) +’]’); if (target.length) { $(‘html, body’).animate({ scrollTop: target.offset().top }, 1000); return false; } } }); }); source https://css-tricks.com/snippets/jquery/smooth-scrolling/
PHP add and remove Vat from Price
function vat_add($price, $vat) { $nett = $price; $gross = $nett * ($vat / 100) + $nett; return $gross; } function vat_remove($price, $vat) { $gross = $price; $nett = $gross-($gross * ($vat / 100)); return $nett; }
CSS Magnific-Popup Blurred Background
* { transition: filter .25s ease; } .mfp-wrap ~ * { -webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); }
Mac os Analyze Disk Space
To free up disk space, it’s helpful to know exactly what is using disk space on your Mac. A hard disk analysis tool like Disk Inventory X will scan your Mac’s hard disk and display which folders and files are using up the most space. You can then delete these space hogs to free up …
AngularJS-Twig conflict with double curly braces
solution 1 You can change the start and end interpolation tags using interpolateProvider service. One convenient place for this is at the module initialization time. angular.module(‘myApp’, []).config(function($interpolateProvider){ $interpolateProvider.startSymbol(‘{[{‘).endSymbol(‘}]}’); }); Solution 2 You can use too the attribute-based directive <p ng-bind=”yourText”></p> is the same as <p>{{yourText}}</p> Solution 3 Verbatim, is very elegant and readable for several …
Continue reading “AngularJS-Twig conflict with double curly braces”