This file contains hidden or 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
add_filter( 'preprocess_comment', 'nyt_preprocess_comment' ); | |
function nyt_preprocess_comment($comment) { | |
if ( strlen( $comment['comment_content'] ) > 5000 ) { | |
wp_die('Comment is too long.'); | |
} | |
return $comment; | |
} |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
from cStringIO import StringIO | |
from argparse import ArgumentParser | |
from pptx import Presentation | |
from pptx.enum.shapes import MSO_SHAPE |