Skip to content

Instantly share code, notes, and snippets.

{
"events": [
{
"eventid": 1618,
"state": "",
"suburb": "",
"speaker_image": "https://www.bluewealth.com.au/smart2/img/users/Owun_Taylor_1524544028.png",
"type": "princ_property_investment",
"calid": 1,
"bkurl": "https://www.bluewealth.com.au/event/booking/1618",
function copmareRuntime(functionSet= {}, params=[], iterations=10000, averageOf = 1){
const report = {};
report.results = [];
let slowestTime = 0;
let fastestTime = 0;
let slowestTotalTime = 0;
let fastestTotalTime = 0;
let fastestFunction = '';
let slowestFunction = '';
@boospot
boospot / benchmark-concatenation-sprintf-strtr-str_replace.php
Created March 6, 2021 07:12
Simple Benchmark to see performance of string concatenation, sprintf, strtr, and str_replace
$iterations = 1000000;
$name = 'Tom';
$date = '13/09/2009';
$t1 = microtime( true );
for ( $i = 0; $i < $iterations; $i ++ ) {
$str = sprintf( 'Hi %s, you last logged in on %s.', $name, $date );
}
$t2 = microtime( true );
{
"id": "854",
"time": "2021-02-15 20:08:46",
"rates": {
"promedio": {
"venta": "10.22",
"compra": "10.99"
},
"bolsa": {
"venta": "146,14",
<?php
/*
Plugin Name: Post Meta File
Plugin URI:
Description:
Author:
Version:
Author URI:
*/
@boospot
boospot / rooms.dat
Created March 10, 2020 11:02
metabox.io custom fields exported for rooms
a:1:{i:0;s:3388:"Tzo3OiJXUF9Qb3N0IjoyNDp7czoyOiJJRCI7aTo4O3M6MTE6InBvc3RfYXV0aG9yIjtzOjE6IjEiO3M6OToicG9zdF9kYXRlIjtzOjE5OiIyMDIwLTAzLTEwIDEwOjEyOjI3IjtzOjEzOiJwb3N0X2RhdGVfZ210IjtzOjE5OiIyMDIwLTAzLTEwIDEwOjEyOjI3IjtzOjEyOiJwb3N0X2NvbnRlbnQiO3M6NjIyOiJ7InRpdGxlIjoiUm9vbXMiLCJpZCI6InJvb21zIiwicG9zdF90eXBlcyI6WyJyb29tIl0sImNvbnRleHQiOiJub3JtYWwiLCJwcmlvcml0eSI6ImhpZ2giLCJmaWVsZHMiOlt7ImlkIjoicXVhbnRpdHkiLCJ0eXBlIjoibnVtYmVyIiwibmFtZSI6IlF1YW50aXR5IiwiZGVzYyI6IlF1YW50aXR5IG9mIHRoZSByb29tcyBpbiB0aGUgc2FtZSB0eXBlIiwibWluIjoxfSx7ImlkIjoiYWR1bHRzIiwidHlwZSI6Im51bWJlciIsIm5hbWUiOiJOdW1iZXIgb2YgQWR1bHRzIiwiZGVzYyI6Ik9jY3VwYW5jeSJ9LHsiaWQiOiJjaGlsZHJlbiIsInR5cGUiOiJudW1iZXIiLCJuYW1lIjoiTWF4IENoaWxkcmVuIHBlciByb29tIiwiZGVzYyI6Ik9jY3VwYW5jeSJ9LHsiaWQiOiJhZGRpdGlvbmFsX2luZm8iLCJuYW1lIjoiQWRkaXRpb25hbCBpbmZvcm1hdGlvbiIsInR5cGUiOiJ3eXNpd3lnIn0seyJpZCI6ImdhbGxlcnkiLCJ0eXBlIjoiaW1hZ2VfYWR2YW5jZWQiLCJuYW1lIjoiR2FsbGVyeSIsImRlc2MiOiJJbWFnZSBnYWxsZXJ5IG9mIHRoZSByb29tIiwibWF4X2ZpbGVfdXBsb2FkcyI6NCwibWF4X3N0YXR1cyI6ZmFsc2V9LHsiaWQ
add_filter( 'woocommerce_get_breadcrumb', function ( $crumbs ) {
if ( function_exists( 'is_product' ) && is_product() ) {
$my_crumbs = array();
$my_crumbs[] = $crumbs[0];
$my_crumbs[] = end( $crumbs );
return $my_crumbs;
}
add_filter( 'term_description', 'do_shortcode' );
@boospot
boospot / display-fields.css
Last active December 26, 2019 19:51
simple css to indent child schema proprties
.us-field-label {
font-weight: bold;
}
li.us-field-level-2 {
margin-left: 2em;
}
li.us-field-level-3 {
margin-left: 3em;
#, fuzzy
msgid ""
msgstr ""
"POT-Creation-Date: 2019-12-10 11:52+0000\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: Loco https://localise.biz/\n"
"Project-Id-Version: \n"
"Last-Translator: \n"
"Language-Team: \n"