#Mac OS X
This file contains 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
UCLASS(config=Game) | |
class AMultiThreadingCharacter : public ACharacter | |
{ | |
GENERATED_BODY() | |
/** Camera boom positioning the camera behind the character */ | |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) | |
class USpringArmComponent* CameraBoom; | |
/** Follow camera */ |
This file contains 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
// Additional includes: | |
#include "Voice.h" | |
#include "OnlineSubsystemUtils.h" | |
// New class member: | |
TSharedPtr<class IVoiceCapture> voiceCapture; | |
// Initialisation: | |
voiceCapture = FVoiceModule::Get().CreateVoiceCapture(); | |
voiceCapture->Start(); |
This file contains 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
" call plug#begin() | |
" Make sure you use single quotes | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
"VIM customizations | |
" General Config { |
This file contains 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'; |
This file contains 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
#this selects configurable products that don't have any simple products associated with them | |
select entity_id from `catalog_product_entity` where 'type_id' = 'configurable' AND entity_id NOT IN (SELECT DISTINCT parent_id FROM catalog_product_super_link); | |
#this selects simple products not associated with a configurable one | |
select entity_id, sku from catalog_product_entity where type_id = 'simple' AND entity_id NOT IN (SELECT DISTINCT product_id FROM catalog_product_super_link); |
This file contains 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
sudo chown -R ubuntu:www-data install-dir | |
sudo find . -type f -exec chmod 640 {} \; | |
sudo find . -type d -exec chmod 750 {} \; | |
sudo find var/ -type f -exec chmod 660 {} \; | |
sudo find media/ -type f -exec chmod 660 {} \; | |
sudo find var/ -type d -exec chmod 770 {} \; | |
sudo find media/ -type d -exec chmod 770 {} \; |
This file contains 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"}} |
This file contains 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
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$productArr = []; | |
$tmpFilename = $_FILES["docname"]["tmp_name"]; | |
$csv = new Varien_File_Csv(); | |
$data = $csv->getData($tmpFilename); | |
$skuArr = array(); | |
foreach ($data as $value) { | |
$skuArr[] = $value[0]; | |
$attributeColorCode = 'color'; |