Not Quite Lisp
Execute a bash command for every row of a MySQL response.
A commandline trick to export the result of a MySQL query as a CSV.
A short & easy way to flatten two-dimensional arrays, and a slightly more verbose one to handle arbitrarily nested arrays.
Copy terminal output using xclip
.
Using the env
command, we can simulate the environment cron runs in.
Fetch upstream changes easily, even if you have unstaged changes.
Exploring creative coding options in functional languages.
Private properties can only be accessed by the class that defines the property… right? Actually, PHP has a few ways to circumvent this: reflection, closures and array casting.
If you’re coming from the more mainstream OO languages, the Common Lisp Object System (CLOS) might seem a bit alien. This introduction is intended to get you up to speed with the basic principles of object orientation in Lisp.