⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
<html> | |
<head> | |
<title>DRY CSS through cached/temp placeholders</title> | |
</head> | |
<body> | |
<article> | |
<h1 class="txt-lead">This title should be black</h1> | |
<div class="error">Oops, this is an error!<br>With a red background.</div> | |
<div> | |
<button>Some ugly button</button> |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7 oldie" lang="en"><![endif]--> | |
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 oldie" lang="en"><![endif]--> | |
<!--[if IE 8]><html class="no-js lt-ie9 oldie" lang="en"><![endif]--> | |
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=EDGE; chrome=1"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title> ... </title> |
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 in_comment_post_like($string, $array) { | |
foreach($array as $ref) { if(strstr($string, $ref)) { return true; } } | |
return false; | |
} | |
function drop_bad_comments() { | |
if (!empty($_POST['comment'])) { | |
$post_comment_content = $_POST['comment']; | |
$lower_case_comment = strtolower($_POST['comment']); | |
$bad_comment_content = array( |
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 | |
remove_filter('comment_text', 'make_clickable', 9); | |
?> |
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 em_remove_comment_fields($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','em_remove_comment_fields'); | |
function em_url_spamcheck( $approved , $commentdata ) { | |
return ( strlen( $commentdata['comment_author_url'] ) > 1 ) ? 'spam' : $approved; | |
} |
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 em_remove_comment_fields($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','em_remove_comment_fields'); | |
?> |
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 em_url_spamcheck( $approved , $commentdata ) { | |
return ( strlen( $commentdata['comment_author_url'] ) > 50 ) ? 'spam' : $approved; | |
} | |
add_filter( 'pre_comment_approved', 'em_url_spamcheck', 99, 2 ); | |
?> |
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
<div class="thumb design development "> | |
<div class="thumb-img"> | |
<a class="th" href="#" title="Image for the lightbox" rel="bookmark"> | |
<img src="/wp-content/uploads/2013/07/post-thumbnail-image.jpg" class="attachment-wide-thumb wp-post-image" alt="" /> | |
</a> | |
<div class="caption"> | |
<div> | |
<span>Image caption</span> | |
</div> | |
<div> |
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
<section class="ss-icon"> | |
<a href="#"><article><span>facebook</span></article></a> | |
<a href="#"><article><span>twitter</span></article></a> | |
<a href="#"><article><span>tumblr</span></article></a> | |
<a href="#"><article><span>pinterest</span></article></a> | |
<a href="#"><article><span>behance</span></article></a> | |
<a href="#"><article><span>github</span></article></a> | |
<a href="#"><article><span>linkedin</span></article></a> | |
<a href="#"><article><span>dribbble</span></article></a> | |
<a href="#"><article><span>instagram</span></article></a> |
NewerOlder