Workers to ensure all objects in a S3 bucket have the 'public-read' canned ACL permission. Designed to work with iron.io's IronWorker product to use it's scalable workers to set the permissions quickly and afforably.
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 | |
/** | |
* Open Graph Tags | |
* | |
* Add Open Graph tags so that Facebook (and any other service that supports them) | |
* can crawl the site better and we provide a better sharing experience. | |
* | |
* @link http://ogp.me/ | |
* @link http://developers.facebook.com/docs/opengraph/ | |
*/ |
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 | |
//To use, just call <?php js_excerpt(Charecters that you want); ?> in your theme. Add this bit here to your functions.php file. | |
function js_excerpt($length){ | |
echo substr(get_the_excerpt(), 0, $length); | |
} | |
?> |
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 | |
## Truncate Post | |
function custom_excerpt_length(){ | |
global $excerpt_length; | |
return $excerpt_length; | |
} | |
function custom_excerpt_more(){ | |
global $excerpt_more; |
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
<script> | |
post_ids = <?php echo json_encode(array(185,4,171)); ?>; | |
$(document).ready(function(){ | |
/* Put your jQuery here */ | |
$('.post-'+post_ids[1]).hide(); | |
$('.post-'+post_ids[2]).hide(); | |
$('.click'+post_ids[0]).addClass('active'); | |
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 akv3_query_format_standard($query) { | |
if (isset($query->query_vars['post_format']) && | |
$query->query_vars['post_format'] == 'post-format-standard') { | |
if (($post_formats = get_theme_support('post-formats')) && | |
is_array($post_formats[0]) && count($post_formats[0])) { | |
$terms = array(); | |
foreach ($post_formats[0] as $format) { | |
$terms[] = 'post-format-'.$format; |
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 | |
/** | |
* Trying to grab the parts quantity and the type, but they are missing. | |
* Check this page: http://makeprojects.com/api/0.1/guide/56 and note the parts array. | |
*/ | |
header('Content-Type: text/html; charset=utf-8'); | |
$url = 'http://makeprojects.com/api/0.1/guide/56'; | |
$contents = file_get_contents( $url ); | |
//echo $contents; |
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 | |
$array_name[0] = 'Keith Pelczarski'; | |
$array_name[1] = 'Heather Harding'; | |
$array_bio[0] = 'keith bio'; | |
$array_bio[1] = 'heather bio'; | |
$array_photo[0] = 'url/to/imag.jpg'; |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc
.