put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
| This XML file does not appear to have any style information associated with it. The document tree is shown below. | |
| <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> | |
| <channel> | |
| <title>Example - Online Store</title> | |
| <link>http://www.example.com</link> | |
| <description> | |
| This is a sample feed containing the required and recommended attributes for a variety of different products | |
| </description> | |
| <!-- | |
| First example shows what attributes are required and recommended for items that are not in the apparel category |
| <?php | |
| define('CLIENT_ID', 'YOUR_CLIENT_ID'); | |
| define('API_KEY', 'YOUR_API_KEY'); | |
| define('TOKEN_URI', 'https://connect.stripe.com/oauth/token'); | |
| define('AUTHORIZE_URI', 'https://connect.stripe.com/oauth/authorize'); | |
| if (isset($_GET['code'])) { // Redirect w/ code | |
| $code = $_GET['code']; |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Bootstrap Stripe.js example form</title> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-12 text-center"> | |
| <h1>A simple Bootstrap Stripe.js payment form</h1> |
| <php | |
| // Rewrite of "get_the_post_thumbnail" for compatibility with jQuery LazyLoad plugin | |
| function my_get_the_post_lazyload_thumbnail( $post_id = false, $size = 'full' ) { | |
| if ( $post_id ) { | |
| // Get the id of the attachment | |
| $attachment_id = get_post_thumbnail_id( $post_id ); | |
| if ( $attachment_id ) { | |
| $src = wp_get_attachment_image_src( $attachment_id, $size ); | |
| if ($src) { | |
| $img = get_the_post_thumbnail( $post_id, $size, array( |
| /** | |
| * Check if a given ip is in a network | |
| * @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
| * @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
| * @return boolean true if the ip is in this range / false if not. | |
| */ | |
| function ip_in_range( $ip, $range ) { | |
| if ( strpos( $range, '/' ) == false ) { | |
| $range .= '/32'; | |
| } |
put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
| bootbox.dialog({ | |
| /** | |
| * @required String|Element | |
| */ | |
| message: "I am a custom dialog", | |
| /** | |
| * @optional String|Element | |
| * adds a header to the dialog and places this text in an h4 | |
| */ |