curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"}} |
#Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script is used to clean up unassigned simple products | |
* | |
* @author Alexander Turiak <[email protected]> | |
* @copyright Copyright (c) 2014 HexBrain (http://www.hexbrain.com) | |
*/ | |
require_once 'abstract.php'; |
For use in OS development.
Designed to be assembled with NASM, porting it over to other assemblers should be easy.
You are free to use, modify, distribute and sell this code.
A small message referring to this gist would be nice, though not required.
This implementation uses a custom calling convention.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias l='ls -CF' | |
alias home='cd ~/' | |
alias apt-get='aptget' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
alias o='nautilus .' | |
alias c='xdg-open' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Boiler Plate Code for Windows | |
# By : Kumaran | |
import pymel.core as pm | |
class UI(pm.uitypes.Window): | |
_TITLE = "mkWindow" | |
_LAYOUT = "mkLayout" | |
_DOCKCONTROL = "mkDockCtrl" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WooCommerce Ajax Handlers | |
* | |
* Handles AJAX requests via wp_ajax hook (both admin and front-end events) | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** Frontend AJAX events **************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Instructions: | |
1) Save data when adding to cart | |
When adding an item to your cart, use ld_woo_set_item_data. The best action for this to occur is | |
"woocommerce_add_to_cart". The first parameter for this action contains the "cart_item_key", | |
which is required for the function. |