Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
<?php
/**
*
*
* @category Kirchbergerknorr
* @package Kirchbergerknorr_OrderProcessor
* @author Aleksey Razbakov <ar@kirchbergerknorr.de>
* @copyright Copyright (c) 2016 kirchbergerknorr GmbH (http://www.kirchbergerknorr.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Angular JS

If you are backend or frontend developer and some times you need to implement javascript logic on a website or AJAX calls, then join this presentation and know alternative simple way of doing this.

HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is

@razbakov
razbakov / adds.txt
Last active November 17, 2015 17:08
Шерлох Холмс - гений ли?
Дедукция доступна каждому!
Мафия Мюнхен - плечом к плечу с Шерлоком Холмсом.
---
Прыжок с парашютом.
Давно планируешь прыгнуть?
Слишком опасно? Слишком высоко? Слишком быстро?

StoreSwitcher

Kirchbergerknorr StoreSwitcher redirects a customer to the right store based on his geo-location.

Rewritten block page_switcher to show all active stores from all websites.

Module based on Atwix_Ipstoreswitcher.

Facts

ShadowStocks

Each product in a Magento store has a stock count. This stock count can be updated by vendors by calling a Magento REST API. The warehouse sends amount of each product to the Magento Store.

  • Problem: There could be some products which are sold in the Magento store, but not processed by the warehouse.
  • Solution: The module will find orders being processed and products which have not yet been processed by the warehouse yet. Amount of those products will be substracted from the actual amount from the warehouse. In other words those products are stored in ShadowStocks.
let your colleagues know, that you have website style bug:
description:
when you hover jobs it is getting bold and moving all nav bar
here is a fix:
styles: line 1224:
header .navbar .nav-collapse .nav .nav-jobs a:hover {
color: black;
/* font-weight: bold; */
@razbakov
razbakov / gist:ed1522ee3fbfc148eab0
Last active January 6, 2024 05:45
json format

Which JSON format would you recommend to use?

Full

{
    "name": "kirchbergerknorr/teamalpin",
    "description": "Teamalpin",
    "minimum-stability": "dev",
    "authors": [
echo <<<JS
<script type="text/javascript">
var userIdB = document.getElementById("sf_00ND0000003vleB").value;
ga('set', 'dimension1', userIdB);
console.log("UID fired: "+ userIdB );
</script>
JS;