https://facebook.github.io/react-native/docs/getting-started.html#content https://code.facebook.com/posts/1189117404435352/ https://facebook.github.io/react/blog/2015/02/20/introducing-relay-and-graphql.html https://github.com/reactioncommerce/reaction https://code.facebook.com/posts/622382554568759/ https://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html http://graphql.org/ https://github.com/firebase/reactfire/tree/master/examples/commentsBox https://www.firebase.com/blog/2014-05-01-using-firebase-with-react.html http://maketea.co.uk/2014/04/07/building-robust-web-apps-with-react-part-2.html
This file contains hidden or 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 | |
$productSku = "27609";// the SKU example | |
$productId = Mage::getModel('catalog/product')->getIdBySku( $productSku ); | |
/** @var $product Mage_Catalog_Model_Product */ | |
$product = Mage::getModel('catalog/product')->load($productId); | |
/** @var $option Mage_Catalog_Model_Product_Option */ | |
$option = $product->getOptionById('10190'); | |
foreach ($option->getValues() as $_value) { | |
/** @var $_value Mage_Catalog_Model_Product_Option_Value */ |
This file contains hidden or 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
<pre> | |
<?php | |
error_reporting(E_ALL); | |
require_once 'app/Mage.php'; | |
Mage::app(); |
This file contains hidden or 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 | |
/** | |
* Create Shopping Cart Sales Rule with Specific Coupon Code Programmatically | |
*/ | |
// All customer group ids | |
$customerGroupIds = Mage::getModel('customer/group')->getCollection()->getAllIds(); | |
// SalesRule Rule model | |
$rule = Mage::getModel('salesrule/rule'); |
- CMSmap – Content Management System Security Scanner.
- Droopescan – Plugin Based CMS Security Scanner.
- WPScan – WordPress Security/Vulnerability Scanner.
- Plecost – WordPress Fingerprinting Tool.
- WhatWeb – Identify CMS, Blogging Platform, Stats Packages & More.
- BlindElephant – Web Application Fingerprinter.
- wig – WebApp Information Gatherer – Identify CMS.
- Web-Sorrow – Version Detection, CMS Identification, Enumeration & Server Scanning Tool.
- Wappalyzer – Web Technology Identifier (Identify CMS, JavaScript etc.) - firefox addon.
- GoLISMERO – Web Application Mapping Tool.
No desenvolvimento/discussão em um pull request é comum fazer commits extras para acertar detalhes de implementação, mudar a lógica de negócio ou até para melhorar os testes.
Quando o código está pronto para ser mergeado é interessante fazer no minímo o squash desses commits e gerar apenas um, para facilitar levantamento/estudo das razões que o desenvolver usou alguma gem/pattern para resolver certo problema e assim identificar soluções para problemas futuros gerados por decisões tomadas atualmente.
Uma vez que a branch esta X
commits a frente da master é necessário desfazer esses commits com o seguinte comando:
git reset HEAD~X --soft
Esse comando vai deixar todas as modificações referentes a todos os commits esperando apenas para um novo commit ser gerado:
This file contains hidden or 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
git checkout master | |
git checkout -b my-new-feature | |
git branch | |
git fetch -p | |
git reset --hard origin/homologa | |
git add . | |
git commit -m 'added html file in root path' | |
git push origin ON-3448 | |
git branch -v | |
git log # used for get the commit hash => 7e343cd7d399c39bcdc630e7ec84a200cc9a53d9 |
This file contains hidden or 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 | |
//display all keys in magento registry | |
$class = new ReflectionClass('Mage'); | |
$prop = $class->getProperty('_registry'); | |
$prop->setAccessible(true); | |
$registry = $prop->getValue(); | |
var_dump( | |
array_keys($registry) |