This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
<?php | |
/* | |
Plugin Name: Shoestrap Custom Templates | |
Plugin URI: http://shoestrap.org | |
Description: This plugin replaces the default templates with our custom ones using the hooks provided by the <a href="http://shoestrap.org/downloads/shoestrap">Shoestrap</a> theme | |
Version: 1.00 | |
Author: Aristeides Stathopoulos | |
Author URI: http://aristeides.com, http://shoestrap.org/forums/topic/template-actions-file, https://gist.github.com/aristath/5496734, https://gist.github.com/payingattention/5689514 | |
*/ |
// send text email | |
sendEmail({ | |
subject: "Hello, World!", | |
text: "This mail has been sent from the frontend", | |
to: "joe@exam.pl" | |
}) | |
// send multipart text / html email | |
sendEmail({ | |
subject: "Hello, World!", |
device('192.168.2.2') | |
.do( 'coffee' ) | |
.then( wakeMeUpCallback ) |
// convert a dom element to a PDF and download it | |
convert( $('.invoice') ).to( 'invoice.pdf' ).download() | |
// convert another website to a png and show it on the page | |
convert( $('.invoice') ).to( 'invoice.pdf' ).prependTo( $('.screenshots') ) |
// sign up | |
account.signUp('joe@example.com', 'secret'); | |
// sign in | |
account.signIn('joe@example.com', 'secret'); | |
// sign in via oauth | |
account.signInWith('twitter'); | |
// sign out |
<?php | |
/* | |
Plugin Name: Post Meta Revisions | |
Description: Revisions for the 'foo' post meta field | |
Version: 1.0 | |
Author: John Blackbourn | |
Plugin URI: http://lud.icro.us/post-meta-revisions-wordpress | |
*/ | |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer