Skip to content

Instantly share code, notes, and snippets.

View kcassam's full-sized avatar
🐵
on duty

Ka (Karim Cassam Chenaï) kcassam

🐵
on duty
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<div id="widget-container-gallery"></div>
<!-- widget begins here -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<div id="widget-container-gallery"></div>
<p><a href = 'https://rawgit.com/kcassam/b93468132e2c700a2b868e8dda05e671/raw/3aeaeb6ebf87c2ae88ee4a75b42b34f8e09b9bcc/widget-banner-headoo.html'>demo</a></p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Visual Commerce</title>
</head>
<body>
<p><a href = 'https://rawgit.com/kcassam/56ebb828d9fb1869a3fd5425e9d02f98/raw/85c648e3cdbccf3077bce886aaa3eacfa8125e51/widget-banner.html'>see here</a></p>
<div id="widget-container-gallery"></div>
@kcassam
kcassam / code quality.yml
Last active January 31, 2017 09:00
Code quality
* https://medium.com/@ondrejmirtes/three-pillars-of-static-analysis-in-php-f3f5d7bfd61b#.6gjeme43d
* https://github.com/squizlabs/PHP_CodeSniffer
* https://github.com/doctrine/coding-standard/blob/master/README.md
* https://medium.com/@ondrejmirtes/phpstan-2939cd0ad0e3#.yb4muy168
@kcassam
kcassam / DoctrineHelper.php
Created January 30, 2017 08:35
Doctrine Utils
<?php
//stackoverflow.com/questions/13069315/how-to-retry-transaction-after-a-deadlock-using-doctrine
//cannot retry : stackoverflow.com/questions/13069315/how-to-retry-transaction-after-a-deadlock-using-doctrine#comment31758644_13150683
//codedump.io/share/rjB45oiwtqwo/1/doctrine2-the-entitymanager-is-closed-how-to-reset-entity-manager-in-symfony2
namespace Headoo\UtilityBundle\Helper;
use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
@kcassam
kcassam / links for a CTO.md
Last active January 19, 2017 13:37
links for a CTO
@kcassam
kcassam / enfant.md
Last active February 27, 2017 11:40
Enfants

Quelques principes concernant les enfants, acquis au cours de 15 ans de parenting

  • Ne pas interrompre si possible un enfant qui dort

  • Ne pas interrompre si possible un enfant qui joue seul

  • De 0 à 28 ans

    • De 0 à 7 ans, les parents sont des intendants
    • De 7 à 14, les parents sont des formateurs
    • De 14 à 21, les parents sont des coachs
  • De 21 à 28, les parents sont des conseillers