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
<snippet> | |
<content><![CDATA[ | |
echo '<pre>'; var_dump(\$${1:variable_name_here}); echo '</pre>'; exit(); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>dd</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.php</scope> | |
</snippet> |
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
using System; | |
using System.IO; | |
public class Logger | |
{ | |
private string LogFilePath { get; set; } | |
private string FileExtension { get; set; } | |
private string FilePrefix { get; set; } | |
public Logger(string path, string filePrefix = "Log", string fileExtension = ".txt") |
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 responsive_oembed_filter($markup, $url, $attr, $post_ID) { | |
return '<div class="video-container">' . $markup . '</div>'; | |
} | |
add_filter( 'embed_oembed_html', 'responsive_oembed_filter'); |
NewerOlder