$ docker
<?php | |
$stringToBool = (preg_match('/yes|true|(?<!-)[1-9]/i', $value)) ?: 0; | |
$value = ["yes","1","true","0","false","no",1,"NO","No","YES","Yes",false,true,"no",-1,0,6 ]; | |
foreach ($value as $v) { |
How can you tell if your CSS code smells? What are the signs that the code is sub-optimal, or that the developer hasn't done a good job? What do you look for in the code to determine how good or bad it is?
- Styles that undo styles
- Magic Numbers -
header.menu { margin: 12px 37px 9px 6px; }
- Complex Selectors -
header.top-header .nav-bar nav.menu ul.main-nav > li a.link-item { font-weight: bold; }
- Increasing Specificity Needlessly -
body.cms-home-page .footer-block .footer-title { font-size:35px; }
- "!important" - !important should only ever be used proactively, not reactively. -
.footer-block .footer-title { font-size:33px !important; }
Quick sampling of some of the domains that make me rofl.
This list makes me LOL at how much money is wasted on less-than-intelligent tech "investments." Clearly they are picking from the bottom of the barrel. It's clear to me why I never see anything related to this stuff on the internet. I think their tech workers are secretly sabotaging the internet presence. So funny.
click windows start icon, type: cmd
, then right click on the "best match" command prompt, select "run as administrator"
when the command prompt window opens, paste the following line and hit enter.
reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v Enabled /t REG_DWORD /d 1 /f
Reboot your computer.
<?php | |
/** | |
* External Script for listing categories levels and the quantity of various product types and | |
* | |
* @copyright Copyright (c) 2016 Chris Snedaker | |
* @author Chris Snedaker <[email protected]> | |
* | |
*/ | |
// This file is placed in a sub-directory of Magento's root. |
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// Bootstrap Sass (v3.3.6) | |
// Bourbon (v4.2.6) | |
// Neat (v1.6.0) | |
// ---- | |
@import "bourbon/bourbon"; | |
@import "neat/neat"; |