Posts
Create web components with typescript
In the last months, I’ve been digging in how to mix two of my favourites “technologies” of recent times. Web components and Typescript.
View moreConfigure subdomain as “CDN” in NGINX (+ WordPress & W3 Total Cache configuration)
UPDATE: CORS (Cross-origin resource sharing) added to the “fake” CDN. Based on: https://gist.github.com/alexjs/4165271 In a typical scenario, you serve your webpage from single domain, that includes all yours “server generated” pages and also the images and assets (javascript, css and other files) of your site.
View moreWordPress NGINX configuration
I’ve been installing some wordpress sites in my new VPS running with NGINX. Install wordpress with Nginx is not as complicated as it might seem but you have to do some configurations to increase security and to make it work with cache plugins.
View moreFamFamFam flags sprite (with compass)
Creating css sprites is an amazing feature in compass. There is a tutorial to use compass to generate css sprites in the compass documentation.
View moreAuto-generated cache.manifest in PHP
If you don’t want to read the entire entry, you can get the code (and propose changes, of course) in github: https://github.
View moreSaas @mixin for change measures for responsive desing
Working in my last project I needed to change the measure of some elements to the 60% to adapt them to mobile browsers.
View moreCapture simple, double, triple, long and right clicks in the same element with jQuery
This is a simple code snippet to capture simple, double, triple, long and right clicks in an element with jquery.
View more