Using PHP Lambda Functions with WordPress add_action() and add_filter() Functions

I’m a fan of anonymous functions and reusable function definitions, like PHP lambda functions in JavaScript.  I’ve used anonymous functions in WordPress development where possible, so for example: add_filter(‘widget_text’, function($html) { if( strpos($html,'<?php’) !== false ) { ob_start(); eval(‘?>’ . $html); // Close the current PHP tag…the contents we’ll get will have <?php ?> tags […]

Continue reading...

“That’s Easy”

I’ve begun my third year of running Nevis Technology full time.  A huge piece of advice in negotiating I’d like to share is not to use words that explain ease or simple solutions.  I don’t mean to take advantage of your clients who may or may not know your technical explanations – it’s more about […]

Continue reading...

2016 Resolution: One Day at a Time

Sometimes I get overwhelmed when I’m thinking about where I’m at with my goals.  Part of it is I get impatient and I want to do better.  For example, at the beginning of each year, I think I of saving a certain amount of money, repairs to my cars, things to do to the house, etc.  I can feel […]

Continue reading...

Angular Snippets for Sublime Text

If you develop AngularJS applications, sometimes you can forget the syntax for the numerous amount of services you can build.  I ran into this situation and finally figured that I would create these Angular snippets for Sublime Text to help me out.  I’ve written them to be inline and chainable, meaning you need to define your “app” […]

Continue reading...

Just to Make a Quick Buck

Learning new things can be fun, but it’s really annoying that when you’ve got things figured out and you’re starting to get some consistency, something changes and you have to start all over again.  So many businesses these days open, and if they don’t make a ton of money really quickly, they close. Same with […]

Continue reading...