(ns foo | |
(:import java.util.Collections | |
(org.asciidoctor Asciidoctor$Factory | |
Asciidoctor))) | |
(defn render [doc] | |
(let [^Asciidoctor ad (.. Asciidoctor$Factory create)] | |
(.render ad doc | |
(Collections/emptyMap)))) |
The following excerpt contains the fluid, moderated and opinionated list of some of my preferred tools used in conjunction with Clojure or which greatly increase either productivity, offers key insight and often (related) faster debugging, easier deployment, less errors (many linters can be found here) and so on.
As the entire playing field of what is commonly known as the 'Magento framework' (or system) encompasses a great deal of interwoven components and technologies, when we take a most top-level view of matters, we distinguish these major forms
-
PHP (unique) own implementation of the MVC pattern of software design — Models as code representatives/agents of data; used throughout core code and which touches the edges of the Object Relational Model interoperability tasked objects
############################################ | |
## These options are useful for development | |
#php_flag display_startup_errors on | |
#php_flag display_errors on | |
#php_flag html_errors on | |
#php_flag log_errors on | |
#php_flag log_errors_max_len 0 | |
#php_value error_log /var/www/magento-lite/var/log/php_errors.log | |
############################################ |
<block type="cms/block" name="block_name"> | |
<action method="setBlockId"><id>block_code</id></action> | |
</block> | |
{{block type="cms/block" block_id="block_code"}} | |
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |
# Empty relevant tables | |
DELETE FROM sales_flat_creditmemo; | |
DELETE FROM sales_flat_invoice; | |
DELETE FROM sales_flat_order; | |
DELETE FROM sales_flat_quote; | |
DELETE FROM sales_flat_shipment; | |
DELETE FROM customer_entity; | |
# Reset increment_ids | |
# Beware of store_ids when using multiple stores |
DECLARE E INT DEFAULT 0; | |
DECLARE M TEXT DEFAULT NULL; | |
DECLARE CONTINUE HANDLER FOR 1000 SET E='1000', M="hashchk"; | |
DECLARE CONTINUE HANDLER FOR 1001 SET E='1001', M="isamchk"; | |
DECLARE CONTINUE HANDLER FOR 1002 SET E='1002', M="NO"; | |
DECLARE CONTINUE HANDLER FOR 1003 SET E='1003', M="YES"; | |
DECLARE CONTINUE HANDLER FOR 1004 SET E='1004', M="Can't create file '%s' (errno: %d)"; | |
DECLARE CONTINUE HANDLER FOR 1005 SET E='1005', M="Can't create table '%s' (errno: %d)"; | |
DECLARE CONTINUE HANDLER FOR 1006 SET E='1006', M="Can't create database '%s' (errno: %d)"; |
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
#!/bin/bash | |
# works with a file called VERSION in the current directory, | |
# the contents of which should be a semantic version number | |
# such as "1.2.3" | |
# this script will display the current version, automatically | |
# suggest a "minor" version update, and ask for input to use | |
# the suggestion, or a newly entered value. |
{ | |
name: 'greenwellness/wellnessbon' | |
description: 'Definitie voor Green Wellness Wellnessbon.' | |
license: 'proprietary' | |
'minimum-stability': 'dev' | |
config: |