TODO: Write a project description
TODO: Describe the installation process
// Add to your theme's comments.php | |
<?php | |
$comment_args = array( | |
'class_submit' => 'btn btn-default submit', | |
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" class="form-control" cols="45" rows="8" aria-required="true" required="required"></textarea></p>', | |
'fields' => array( | |
'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . | |
'<input id="author" name="author" class="form-control" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . ' /></p>', | |
'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . | |
'<input id="email" name="email" class="form-control" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_auth |
# Source: http://www.marketingpilgrim.com/2014/08/tips-for-blocking-semalt-and-botnet-attacks.html | |
# Block SEMalt botnet | |
SetEnvIfNoCase Referer fbdownloader.com spammer=yes | |
SetEnvIfNoCase Referer descargar-musicas-gratis.com spammer=yes | |
SetEnvIfNoCase Referer baixar-musicas-gratis.com spammer=yes | |
SetEnvIfNoCase Referer savetubevideo.com spammer=yes | |
SetEnvIfNoCase Referer srecorder.com spammer=yes | |
SetEnvIfNoCase Referer kambasoft.com spammer=yes | |
SetEnvIfNoCase Referer semalt.com spammer=yes |
@-moz-document domain("twitter.com") { | |
p[class*="TweetTextSize--"] { | |
margin-bottom: 0; | |
font-size: 16px !important; | |
line-height: 1.333 !important; } | |
} |
remove_action('wp_head', 'wp_generator'); |
I have marked with a * those which I think are absolutely essential | |
Items for each section are sorted by oldest to newest. Come back soon for more! | |
BASH | |
* In bash, 'ctrl-r' searches your command history as you type | |
- Input from the commandline as if it were a file by replacing | |
'command < file.in' with 'command <<< "some input text"' | |
- '^' is a sed-like operator to replace chars from last command | |
'ls docs; ^docs^web^' is equal to 'ls web'. The second argument can be empty. | |
* '!!:n' selects the nth argument of the last command, and '!$' the last arg |
This looks like a good way to limit the height of a dynamic image (perhaps user submitted).
A Pen by Trippnology on CodePen.
<script> | |
function openDir( form ) { | |
var newIndex = form.blogviewselect.selectedIndex; | |
if ( newIndex == 0 ) { | |
alert( "Please select a view" ); | |
} | |
else { | |
cururl = form.blogviewselect.options[ newIndex ].value; | |
window.location.assign( cururl ); | |
} |
<script type="text/javascript"> | |
//<![CDATA[ | |
(function() { | |
document.write('<fb:like width="200"></fb:like>'); | |
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'http://connect.facebook.net/en_US/all.js#xfbml=1'; | |
s1.parentNode.insertBefore(s, s1); | |
})(); |
// http://responsivenews.co.uk/post/18948466399/cutting-the-mustard | |
if('querySelector' in document | |
&& 'localStorage' in window | |
&& 'addEventListener' in window) { | |
// bootstrap the javascript application | |
} |