Skip to content

Instantly share code, notes, and snippets.

View strrife's full-sized avatar

Alexander Mikhalchenko strrife

View GitHub Profile
@strrife
strrife / wp-shortcode-function.php
Last active March 17, 2016 20:02
Call custom function from shortcode
add_shortcode( 'call_function', 'custom_function_call' );
/**
* @param $attributes
* $attributes['name'] - function name to call
* $attributes['args'] - arguments to be passed
* @return string
*/
function custom_function_call( $attributes ) {
$pattern = false;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <iostream>
#include "mpi.h"
unsigned long micros = 0;
float millis = 0.0;
clock_t start, end;