Skip to content

Instantly share code, notes, and snippets.

View rishifter's full-sized avatar

Rishi rishifter

  • Mumbai, India
View GitHub Profile
@rishifter
rishifter / days_until_birthday.md
Created May 4, 2021 17:22 — forked from 8bitspixel/days_until_birthday.md
Calculate the days until your next birthday with MomentJS

Next birthday with momentJs:

DaysUntil accepts a momentJS object with a birthday date which returns amount of days left

##Using a momentJS object with the day of your next birthday

function daysUntil(date) {
  var birthday = moment(date);
  var today = moment().format("YYYY-MM-DD");

if (birthday.isSame(today)) {

@rishifter
rishifter / obsidian.templater.quick-capture.js
Created May 14, 2021 11:40 — forked from GitMurf/obsidian.templater.quick-capture.js
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)
@rishifter
rishifter / MindmapInput.md
Created May 14, 2021 11:42 — forked from zsviczian/MindmapInput.md
This is an Obsidian Templater script that genrates a mindmap drawing from a tabulated outline, similar to the sample outline attached.
  • Test 1
    • Test 1.1
  • Test 2
    • Test 2.1
    • Test 2.2
      • Test 2.2.1
      • Test 2.2.2
      • Test 2.2.3
        • Test 2.2.3.1
  • Test 3
@rishifter
rishifter / woocommerce-remove-virtual-billing-fields.php
Created September 20, 2021 13:41 — forked from BFTrick/woocommerce-remove-virtual-billing-fields.php
Remove the billing address fields for free virtual orders in WooCommerce
<?php
/**
* Plugin Name: WooCommerce Remove Billing Fields for Free Virtual Products
* Plugin URI: https://gist.github.com/BFTrick/7873168
* Description: Remove the billing address fields for free virtual orders
* Author: Patrick Rauland
* Author URI: http://patrickrauland.com/
* Version: 2.0
*
* This program is free software: you can redistribute it and/or modify
@rishifter
rishifter / divi-mobile-submenu-toggles.css
Created June 7, 2022 08:46 — forked from Garconis/divi-mobile-submenu-toggles.css
Divi | WordPress Theme | Mobile Menu Collapsible Submenus via Toggles | CSS & jQuery Tweaks in action: https://i.gyazo.com/93557e9ef5d4aad260e22c6d5896de3b.mp4
/* -- HEADER -- */
/* remove pointer event from menu module mobile wrapper */
.et_pb_module.et_pb_menu .et_mobile_nav_menu {
pointer-events: none;
}
/* make menu module hamburger icon and menu links interactive again */
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_menu_bar,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .et_mobile_menu li a {
@rishifter
rishifter / gutenberg-sample-content.html
Created January 5, 2023 12:07 — forked from mailenkno/gutenberg-sample-content.html
WordPress Gutenberg Sample Content
<!-- wp:paragraph {"align":"center","customTextColor":"#000000","backgroundColor":"very-light-gray","fontSize":"small"} -->
<p style="color:#000000;text-align:center" class="has-background has-small-font-size has-very-light-gray-background-color">Gutenberg Sample Content.<br/>Put together with ❤️ by <a href="https://artisanthemes.io/">Artisan Themes</a>.</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":1} -->
<h1>This is a heading (H1)</h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>This is a heading (H2)</h2>
@rishifter
rishifter / Make Multiple Links v 2.applescript
Created March 9, 2025 03:02 — forked from logic2design/Make Multiple Links v 2.applescript
Will make links to files, and mail items
@rishifter
rishifter / Mail Process - Multi Email Links.applescript
Created March 9, 2025 03:04 — forked from logic2design/Mail Process - Multi Email Links.applescript
This will create multiple links to emails Includiing Date, Subject & Sender
@rishifter
rishifter / Mail Process - Contacts.applescript
Created March 9, 2025 03:05 — forked from logic2design/Mail Process - Contacts.applescript
Will create Contact from selected Mail Messages
##############################################
# Title: Create Contact(s) from Mail Message
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 13 April 2022
@rishifter
rishifter / Mail Process - Calendar.applescript
Created March 9, 2025 03:11 — forked from logic2design/Mail Process - Calendar.applescript
Will create Calendar Event from selected Mail Message
##############################################
# Title: Mail Process - Calendar
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 7 August 2022