🔇 Noise cancelling headphones must of been invented by a parent.
This is not a list of “the top 5 workflows for Alfred” this is instead tips and tricks to become a better Alfred user. It’s easy to setup Alfred and get some really cool workflows going, but it’s just as easy to forget about Alfred and it’s potential in a week or two. However, as … continue reading »
Do One Thing And Do It Well.– Unix philosophy
🤔 I need to think about something – right now in CAD I pay:
- $14.99/month Apple Music (family)
- $12.99/month Netflix (family – 4x screens)
That’s $335.76/year. Almost a $0.92/day a day for media consumption.
- Prime Music (4x devices)
- Prime Video (2x devices)
- Free shipping (on the hundreds I do spend on Amazon)
is $79.00/year, or $0.22/day.
Why aren’t I an Amazon Prime guy yet?
The beautiful function wp_localize_script() was built for l11n, however its found as a method for carrying over server-side values into client-side JS. Your values are now available in your .js file: Currently using this in a React theme I’m building for WordPress. This can also be done with something like:
I’ve just started developing a site using WPRig.io, it’s pretty neat – and it’s really a terrific starter theme that allows modern tooling. It saves a lot of the time with small annoying tasks that typically come with starter-theme development.
- easy browser sync
- progressive and conditional CSS loading
- auto compile, auto image compress
- drag-n-drop in template files (ie: site needs comments.php, just include ins
- built in support for cssnext
- There should be a less repetitive way to combine preloading
wprig_add_body_style(), registering, and printing stylesheets. Currently you need to add a stylesheet in three different locations to load it properly
- Version numbers for register/enqueue are hard coded, and repeated – should be put into a constant so dev’s can hard refresh their visitors resources if needed
- lacks BEM naming
I’ve just started using it, so perhaps I’m being to quick to criticize, so take that with a grain of salt. I will probably submit a pull request for the things I find to help the project grow.
So, if everything continues goes well, I’m considering condensing my starter theme into components for wp-rig’s /dev/pluggable/ folder, and re-creating my personal starter theme with this logic. These will basically serve as helper functions that I expect and need.
I had a project where every single media library image URL needed to be filtered, backend and front end. As far as I’ve found these were the filters for every area: The myplugin_filter_html_image_urls() function peals out images with regex from areas where it’s not just the URL being sent. This function may require verification of … continue reading »