Skip to content

Instantly share code, notes, and snippets.

View zeljkoprsa's full-sized avatar

Željko Prša zeljkoprsa

View GitHub Profile
@zeljkoprsa
zeljkoprsa / git-ignore-file-mode.txt
Created January 16, 2015 14:42
Ignore file mode (chmode) changes. Tip: Remove -- global for local folder only.
git config --global core.fileMode false
<?php
// Get store data
Mage::app()->getStore();
// Store Id
Mage::app()->getStore()->getStoreId();
// Store code
Mage::app()->getStore()->getCode();

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {