Skip to content

Instantly share code, notes, and snippets.

View kaziko's full-sized avatar
💭
I may be slow to respond.

Krzysztof Z. kaziko

💭
I may be slow to respond.
View GitHub Profile
<?php
//set up pods::find parameters to limit to 5 items
$param = array(
'limit' => 5,
);
//create pods object
$pods = pods('pod_name', $params );
//check that total values (given limit) returned is greater than zero
if ( $pods->total() > 0 ) {
### Keybase proof
I hereby claim:
* I am kaziko on github.
* I am kaziko (https://keybase.io/kaziko) on keybase.
* I have a public key ASB8rsNFjEpQz2rGcOrlXUURwo4EUuLx-BkGNORDopC1dAo
To claim this, I am signing this object:
## Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management
---
### Instructions to Change PHP Installation
---
First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
// clearfix
@mixin clearfix {
&::after {
content: "";
display: block;
clear: both;
}
}
// edit font rendering -> tip: use for light text on dark backgrounds
@kaziko
kaziko / local.xml
Created March 2, 2018 10:48 — forked from Maksold/local.xml
Magento XML - local.xml boilerplate
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->
@kaziko
kaziko / gist:9a0ba63c83b3bbd854f4aa9cf2345d67
Created September 17, 2016 01:46 — forked from learncodeacademy/gist:5f84705f2229f14d758d
Getting Started with Vagrant, SSH & Linux Server Administration
@kaziko
kaziko / magento-code-snippets.md
Last active August 14, 2016 12:39 — forked from arosenhagen/magento-code-snippets.md
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name