Skip to content

Instantly share code, notes, and snippets.

View marcpope's full-sized avatar

Marc Pope marcpope

View GitHub Profile
function evalCode($code)
{
ob_start();
// comment out. idk what it breaks but it's a fix for now
//eval($code);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
@jasonhuck
jasonhuck / image.lasso
Last active February 24, 2021 13:38
Replacement [image] Type for Lasso 8.x
[//lasso
/*
[Image] type for Lasso 8.x
This is a drop-in replacement for the native [Image] type in Lasso 8.x. This version requires
[OS_Process] and calls the ImageMagick command line utilities rather than relying on the
low-level libraries. Doing so eliminates the need to install an older version of ImageMagick and
its dependencies on the server for compatibility. It is recommended that the ImageMagick module
be removed from LassoModules when using this replacement to avoid startup errors.