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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.yuklia.docker_localhost_alias</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>ifconfig</string> | |
<string>lo0</string> |
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: | |
build: ./php | |
volumes: | |
- ./../:/var/www | |
environment: | |
- XDEBUG_CONFIG=remote_host=10.254.254.254 | |
- PHP_IDE_CONFIG=serverName=plumbus.com # for console debugging | |
links: | |
- db |
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
FROM php:7-fpm | |
MAINTAINER yuklia | |
# upgrade the container | |
RUN apt-get update && \ | |
apt-get upgrade -y | |
RUN apt-get install -y --force-yes curl git nano zlib1g-dev \ | |
&& docker-php-ext-install zip pdo pdo_mysql \ |
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
<ul class="nav navbar-nav navbar-right"> | |
<!-- Authentication Links --> | |
@if (Auth::guest()) | |
<li><a href="{{ url('/login') }}">Login</a></li> | |
<li><a href="{{ url('/register') }}">Register</a></li> | |
@else | |
<li class="dropdown"> | |
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> | |
{{ Auth::user()->name }} <span class="caret"></span> | |
</a> |
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
import React, {Component} from 'react'; | |
import generateRandomString from '../../../helpers/generateRandomString'; | |
import WrappedComponent from './Component'; | |
import {connect} from 'react-redux'; | |
import { change } from 'redux-form'; | |
import {CHANGE_PASSWORD_FORM} from '../FormWrapper'; | |
function FormFooterHOC(WrappedComponent) { | |
return class extends React.Component { |
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
import React, { PropTypes } from 'react'; | |
import EditableTodoContainer from '../containers/EditableTodoContainer'; | |
import DefaultTodoContainer from '../containers/DefaultTodoContainer'; | |
class TodoListItem extends React.Component{ | |
constructor(props) { | |
super(props); | |
this.state = { | |
inputItemId: null |
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 | |
namespace VOID\GiftCards\Model\Quote; | |
/** | |
* Class Discount | |
* @package VOID\GiftCards\Model\Quote | |
*/ | |
class Discount extends \MageWorx\GiftCards\Model\Quote\Discount | |
{ | |
<<<<<<< de6854e41a98cad112625f2c152bae357e1c6623 |
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
protected function _serializeField(DataObject $object, $field, $defaultValue = null, $unsetEmpty = false) | |
{ | |
$value = $object->getData($field); | |
if (empty($value) && $unsetEmpty) { | |
$object->unsetData($field); | |
} else { | |
if (is_string($value)) { | |
$object->setData($field, $value ?: $defaultValue); | |
} else { | |
$object->setData($field, serialize($value ?: $defaultValue)); |
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
public function addOrderItem($orderItem, $qtyFlag = null) | |
{ | |
/* @var $orderItem \Magento\Sales\Model\Order\Item */ | |
if ($orderItem->getParentItem() === null) { | |
$storeId = $this->_storeManager->getStore()->getId(); | |
try { | |
$product = $this->productRepository->getById($orderItem->getProductId(), false, $storeId); | |
} catch (NoSuchEntityException $e) { | |
return $this; | |
} |
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
<models> | |
<yukliazenstore> | |
<class>Yuklia_Zenstore_Model</class> | |
<resourceModel>yukliazenstore_resource</resourceModel> | |
</yukliazenstore> | |
<yukliazenstore_resource> | |
<class>Yuklia_Zenstore_Model_Resource</class> | |
<entities> | |
<table_yukliazenstore> |