A short document about docker and docker-compose

March 7, 2018

Please visit: https://github.com/nazmulb/docker

Advertisements

How to setup swagger and generate api and client from spec

August 10, 2017

How to setup swagger editor and UI:
https://github.com/nazmulb/swagger

How to generate your api and client from swagger spec:
https://github.com/nazmulb/swagger/tree/master/api


Simple way to setup nightwatch.js and some test code

August 10, 2017

Very simple way to setup nightwatch.js:
https://github.com/nazmulb/nightwatch.js

Some test code: https://github.com/nazmulb/nightwatch.js/tree/master/tests/learning


Step by step learning: Redux-Saga

April 5, 2017

I hope, it will be useful for beginners in `redux-saga` that I come with a small doc.

Please visit: https://github.com/nazmulb/react.js#redux-saga


Step by step learning: Webpack, React.js & Redux

March 10, 2017

For Webpack: https://github.com/nazmulb/webpack

For React & Redux: https://github.com/nazmulb/react.js

React & Redux Lifecycle:

React & Redux Lifecycle

React & Redux Lifecycle


Step by step learning with a small project: node.js, express.js & mongodb

January 4, 2017

https://github.com/nazmulb/node.js

– Please use https://github.com/nazmulb/node.js/blob/master/Setup.txt to setup your environment.
– Please use https://github.com/nazmulb/node.js/tree/master/learning for step by step learning.
– Please use https://github.com/nazmulb/node.js/tree/master/projects/myapp to see the project.

FYI: I used ES6 instead of raw javascript.

Thanks and happy learning 🙂


How to show top selling products on home page in Megento

May 17, 2010

<?php
$visibility = array(
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
);

$storeId = Mage::app()->getStore()->getId();
$_productCollection = Mage::getResourceModel(‘reports/product_collection’)
->addAttributeToSelect(‘*’)
->addOrderedQty()
->addAttributeToFilter(‘visibility’, $visibility)
->setOrder(‘ordered_qty’, ‘desc’);
?>
<?php foreach ($_productCollection as $_product): ?>
<!– show as you want name, image, etc –>
<a href=”<?php echo $_product->getProductUrl() ?>” title=”<?php echo $this->htmlEscape($_product->getName()) ?>”><?php echo $this->htmlEscape($_product->getName()) ?></a><br />
<?php endforeach ?>