Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@akki2825
Created January 28, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akki2825/52bc067faccc2a72d304e0be165735b5 to your computer and use it in GitHub Desktop.
Save akki2825/52bc067faccc2a72d304e0be165735b5 to your computer and use it in GitHub Desktop.
from __future__ import print_function
import tensorflow as tf
hello = tf.constant('Hello, Tensorflow!')
sess = tf.session()
print(sess.run(hello))
sess.close()
wp_embed_register_handler( 'gist', '/https?:\/\/gist\.github\.com\/([a-z0-9]+)(\?file=.*)?/i', 'bhww_embed_handler_gist' );
function bhww_embed_handler_gist( $matches, $attr, $url, $rawattr ) {
$embed = sprintf(
'<script src="https://gist.github.com/%1$s.js%2$s"></script>',
esc_attr($matches[1]),
esc_attr($matches[2])
);
return apply_filters( 'embed_gist', $embed, $matches, $attr, $url, $rawattr );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment