I hereby claim:
- I am zaigham on github.
- I am zaigham (https://keybase.io/zaigham) on keybase.
- I have a public key ASC9GHD4HGay74R4HPu6TY_2fHeFhkSILheH4bGoOSJERwo
To claim this, I am signing this object:
| <?php | |
| // Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
| // http://youtu.be/dQw4w9WgXcQ | |
| // http://www.youtube.com/embed/dQw4w9WgXcQ | |
| // http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/v/dQw4w9WgXcQ | |
| // http://www.youtube.com/e/dQw4w9WgXcQ | |
| // http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
| <?php | |
| $docs = $modx->getCollection('modDocument'); | |
| $pattern = '/www.xxx.com/(\d+)/'; | |
| $replacement = '[[~$1]]'; | |
| $count = 0; | |
| foreach ($docs as $doc) { | |
| $content = $doc->getContent(); | |
| $hash1 = sha1($content); |
I hereby claim:
To claim this, I am signing this object:
| <article class="col-sm-6 col-md-6 col-lg-6"> | |
| <div><a href="[[+url]]?ref=[[+ref]]"><img class="img-responsive" src="[[+live_preview_url]]" alt="[[+item]]"></a></div> | |
| <div style="min-height: 6em;"><h4><a href="[[+url]]?ref=[[+ref]]">[[+item]]<br/><small>USD$[[+cost]]</small></h4></a></div> | |
| </article> |
| @mixin breakpoint($point) | |
| @if $point == lg | |
| @media (min-width: 1200px) | |
| @content | |
| @else if $point == md | |
| @media (min-width: 992px) and (max-width: 1199px) | |
| @content | |
| @else if $point == sm |
Everything is a component.
<br> instead of <br/>, it won’t work. Make sure to put / on self-closing tags.| <script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
| <script type="text/javascript"> | |
| var max = 0; | |
| $(".col").each(function(){ | |
| if ($(this).height() > max) { | |
| max = $(this).height(); | |
| } | |
| }); |
| <?php | |
| // AROUND LINE 3909 in phpthumb.class.php: added >>>> header('Cache-Control:'); <<<< to the logic. | |
| if (function_exists('ImageTypes')) { | |
| $imagetypes = ImageTypes(); | |
| if ($imagetypes & IMG_PNG) { | |
| header('Content-Type: image/png'); | |
| header('Cache-Control:'); | |
| ImagePNG($gdimg_error); |
| jQuery(document).ready(function ($) { | |
| var $tagcloudArticles = $('#tagcloudArticles'); | |
| $tagcloudArticles.imagesLoaded(function(){ | |
| $tagcloudArticles.masonry({ | |
| // options | |
| itemSelector : '.brick', | |
| columnWidth : 230 | |
| }); |
| var $container = $('#container'); | |
| $container.imagesLoaded(function(){ | |
| $container.masonry({ | |
| itemSelector : '.item', | |
| columnWidth : 240 | |
| }); | |
| }); |