- Add the following lines of code to the
composer.json
file:
"leafo/lessphp": "*"
- Run
composer install
https://github.com/cloudhead/less.js/issues/320 |
Insert this into to the bottom of the autoload.php file:
// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)
require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php';
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
Add this to Info.plist
in /System/Library/Spotlight/RichText.mdimporter/Contents/
and Spotlight will search for source code files.
<string>public.c-header</string>
<string>public.c-plus-plus-header</string>
<string>public.c-source</string>
<string>public.objective-c-source</string>
public.c-plus-plus-source
(nicer, more readable version of: http://www.artima.com/weblogs/viewpost.jsp?thread=240845)
In part I, I showed how to use decorators without arguments, primarily using classes as decorators because I find them easier to think about.
If we create a decorator without arguments, the function to be decorated is passed to the constructor, and the __call__()
method is called whenever the decorated function is invoked:
class decoratorWithoutArguments(object):
I hereby claim:
To claim this, I am signing this object: