Skip to content

Instantly share code, notes, and snippets.

View kkdg's full-sized avatar
🏠
Working from home

Degi Kwag kkdg

🏠
Working from home
View GitHub Profile
@kkdg
kkdg / readme.md
Created March 6, 2021 17:08 — forked from jimmywarting/readme.md
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@kkdg
kkdg / or-example.php
Created February 4, 2021 09:53 — forked from Vinai/or-example.php
SearchCriteria OR Example for Magento 2
<?php
declare(strict_types = 1);
namespace Training5\VendorRepository\Controller\Test;
use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Framework\Api\Filter;
use Magento\Framework\Api\FilterBuilder;
@kkdg
kkdg / configurable_best_sellers.sql
Created December 19, 2018 07:48 — forked from mpchadwick/configurable_best_sellers.sql
Magento Best Sellers - Configurable Products
SELECT
cpf.entity_id,
cpf.name,
cpf.type_id,
(
SELECT SUM(sbam.qty_ordered)
FROM sales_bestsellers_aggregated_monthly sbam
LEFT JOIN catalog_product_super_link cpsl
ON cpsl.product_id = sbam.product_id
WHERE sbam.product_id = cpf.entity_id
@kkdg
kkdg / digix-report.md
Created April 20, 2018 06:29 — forked from loiluu/digix-report.md
Audit report for Digix's smart contract platform
@kkdg
kkdg / slim-redux.js
Created December 6, 2017 12:24 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@kkdg
kkdg / .gitignore
Created March 20, 2017 11:59 — forked from salcode/.gitignore
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@kkdg
kkdg / ddd_cqrs_event-sourcing_in_php.md
Created March 6, 2017 17:36 — forked from jsor/ddd_cqrs_event-sourcing_in_php.md
DDD, CQRS and Event Sourcing in PHP

DDD, CQRS and Event Sourcing in PHP

  • Broadway - Infrastructure and testing helpers for creating CQRS and event sourced applications
  • EventCentric.Core - Event Sourcing and CQRS in PHP
  • LiteCQRS - Small convention based CQRS library for PHP
  • predaddy - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
  • ProophEventSourcing - Provides basic functionality for event-sourced aggregates
  • ProophEventStore - PHP 5.4+ EventStore Implementation
  • ProophServiceBus - PHP Enterprise Service Bus Implementation supporting CQRS and DDD