Skip to content

Instantly share code, notes, and snippets.

View PareshRadadiya's full-sized avatar
👨‍💻
Working from home

Paresh Radadiya PareshRadadiya

👨‍💻
Working from home
View GitHub Profile
@PareshRadadiya
PareshRadadiya / gist:5867c8929ab1ca72af5c2dc521bcdaa3
Created September 19, 2019 19:01
WP_Query with fields test
<?php
add_action('init', 'test_wp_query');
function test_wp_query() {
$time_start = microtime(true);
$query = new WP_Query([
'nopaging' => true,
'post_type' => 'post',
@PareshRadadiya
PareshRadadiya / 0_reuse_code.js
Created May 15, 2016 05:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@PareshRadadiya
PareshRadadiya / gist:360f5601381ec214f395
Last active August 29, 2015 14:27
Dummy view generator
CREATE DEFINER=`root`@`localhost` PROCEDURE `dummy_data`(IN `start_date` DATETIME)
NO SQL
BEGIN
DECLARE x INT;
DECLARE y INT DEFAULT 1;
DECLARE rand_no INT;
DECLARE view_date DATETIME;
SET x = 1;
SET view_date = start_date;
REPEAT
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="WordPress">
<option name="USE_SAME_INDENTS" value="true" />
<option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" />
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="4" />
<option name="USE_TAB_CHARACTER" value="true" />