Skip to content

Instantly share code, notes, and snippets.

View baikaresandip's full-sized avatar
🎯
Focusing

Baikare Sandip baikaresandip

🎯
Focusing
View GitHub Profile
@baikaresandip
baikaresandip / list_treestructure_terms.php
Created August 29, 2017 14:07
List the terms with tree structure
<?php
/**
* list the taxonomy of custom post type with tree structure
* @param string $taxonomy name of taxonomy
* @param integer $parent parent term_id of term
* @return string generate the list of taxonomy
*/
function custom_taxonomy_walker( $taxonomy, $parent = 0 ){
$terms = get_terms($taxonomy, array('parent' => $parent, 'hide_empty' => false, 'orderby' => 'name'));
//If there are terms, start displaying
@baikaresandip
baikaresandip / README.md
Created April 13, 2018 11:13 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@baikaresandip
baikaresandip / function.php
Last active July 18, 2018 11:01
Wordpress add short description on the custom post type page: The filter views_{$this->screen->id} is fired just after the title of post edit screen has been print to screen, so it's a safe place to just echo what you want. So you can simply do:
<?php
function post_type_desc( $views ){
$screen = get_current_screen();
$post_type = get_post_type_object($screen->post_type);
if ($post_type->description) {
printf('<h4>%s</h4>', esc_html($post_type->description)); // echo
}
@baikaresandip
baikaresandip / template-product.php
Last active September 6, 2020 19:21
Custom Woocommerce Product template with pagination
<?php
/**
* @author Baikare Sandeep
*
* Template Name: Product
*/
get_header(); ?>
@baikaresandip
baikaresandip / count-branches.sh
Created March 25, 2019 08:39
Count the number of branches in your local repository
git branch | wc -l
@baikaresandip
baikaresandip / count-branches.sh
Created March 25, 2019 08:39
Count the number of branches in your local repository
git branch | wc -l
@baikaresandip
baikaresandip / count-branches-all.sh
Created March 25, 2019 08:41
Count the number of branches in your Local + Remote repository
git branch -a | wc -l
@baikaresandip
baikaresandip / inxex.html
Created July 11, 2019 12:25
Check Multiple checkboxes dynamically by ID and classes. You can use this function for multiple times in a single code for different purposes
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Check all Checkboxes</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script src='script.js'></script>
</head>
<body>
@baikaresandip
baikaresandip / github-emoji.md
Created December 9, 2020 18:27
Complete list of GitHub markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@baikaresandip
baikaresandip / technical_skills_list.txt
Last active October 25, 2021 11:30 — forked from LastZactionHero/technical_skills_list.txt
All Technical Skills List required for professional.
.NET
360-degree video
3D Animation
3D Design
3D Model Maker
3D Modelling
3D Printing
3D Rendering
3ds Max
4D