This file contains 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 | |
function findBetween($string, $tag) { | |
$regex = '#{'.$tag.'}(.*?){/'.$tag.'}#'; | |
preg_match($regex, $string, $matches); | |
return isset($matches[1]) ? $matches[1] : null; | |
} | |
$string = '["{mp4}LB_tr2min_w{\/mp4}"]'; | |
$result = json_decode($string); |
This file contains 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
# todo: questions like: Are you using drupal, wordpress, etc and install their CLI | |
# create working dir | |
mkdir developer-tmp | |
# brew | |
echo "Install Brew manager" | |
ruby \ | |
-e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \ |
This file contains 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
function loadBlocks() | |
{ | |
var crosspromoSites = [ | |
'elle', | |
'marieclaire', | |
'apetitonline', | |
'svetzeny' | |
]; | |
var parentElement = document.getElementById('crosspromo'); |
This file contains 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
/** | |
* Merge deep objects | |
* Credit: http://stackoverflow.com/a/20591261/3783469 | |
* @param target | |
* @returns {*} | |
*/ | |
function BD_Extend(target) { | |
for(var i=1; i<arguments.length; ++i) { | |
var from = arguments[i]; | |
if(typeof from !== 'object') continue; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<modification> | |
<id>SVG allow upload, logo</id> | |
<version>0.1</version> | |
<vqmver required="true">2.6.0</vqmver> | |
<author>Michal Landsman</author> | |
<file path="admin/controller/common/filemanager.php"> | |
<operation info="add svg"> | |
<search position="replace"> |
This file contains 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 rebase --interactive HEAD~2 | |
# we are going to squash c into b | |
pick b76d157 b | |
pick a931ac7 c | |
# squash c into b | |
pick b76d157 b | |
s a931ac7 c |
This file contains 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 reset --soft HEAD~7 | |
git commit -m "Add stickyNavbar.js" | |
git push --force | |
REM From https://github.com/jsdelivr/jsdelivr/pull/843 |
This file contains 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 | |
namespace BurdaPraha\composer; | |
use Composer\Script\Event; | |
use Composer\Util\ProcessExecutor; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Finder\Finder; | |
use Symfony\Component\Console\Helper\Table; |
This file contains 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
// | |
// "watter" effects for buttons | |
// | |
@mixin ripple { | |
position: relative; | |
overflow: hidden; | |
transform: translate3d(0, 0, 0); | |
&:after { |
This file contains 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
<!-- | |
je treba na strance vytvorit pozice ve stylu: | |
<div id='branding_1829391' data-bbelements-id="21812.1.2.9"></div> | |
kdy identifikator elementu je vzdy unikatni, nejlepe generovany z CMS | |
--> | |
<script id='ibbTagEngine' src='https://bbcdn-static.bbelements.com/scripts/ibb-async/stable/tag.js'></script> |