{% set imgBase %}/img/post-directory/{% endset %}

{% set imgBase %}/img/post-directory/{% endset %}

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| #!/bin/bash | |
| curl -X POST "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \ | |
| -H "X-Auth-Email: {$EMAIL}" \ | |
| -H "X-Auth-Key: {$API_KEY}" \ | |
| -H "Content-Type: application/json" \ | |
| --data '{"purge_everything":true}' |
| /*Contact form 7 remove span*/ | |
| add_filter('wpcf7_form_elements', function($content) { | |
| $content = preg_replace('/<(span).*?class="\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^"]+)?\s*"[^\>]*>(.*)<\/\1>/i', '\2', $content); | |
| $content = str_replace('<br />', '', $content); | |
| return $content; | |
| }); |
| if (Mage::getSingleton('customer/session')->isLoggedIn()) { | |
| // Load the customer's data | |
| $customer = Mage::getSingleton('customer/session')->getCustomer(); | |
| $customer->getPrefix(); | |
| $customer->getName(); // Full Name | |
| $customer->getFirstname(); // First Name | |
| $customer->getMiddlename(); // Middle Name |
| # | |
| # Ubuntu Node.js Dockerfile | |
| # | |
| # https://github.com/dockerfile/ubuntu/blob/master/Dockerfile | |
| # https://docs.docker.com/examples/nodejs_web_app/ | |
| # | |
| # Pull base image. | |
| FROM ubuntu:14.04 |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0-modified | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, |
| $.ajax( | |
| 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts?api_key=<your_key>', | |
| { | |
| dataType: 'jsonp', | |
| success: function (d) { | |
| console.log(d); // On success log the data to the console | |
| }, | |
| } | |
| ); |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso