Skip to content

Instantly share code, notes, and snippets.

View mharis's full-sized avatar

Haris Zulfiqar mharis

View GitHub Profile
@mharis
mharis / date.format.js
Created October 31, 2022 20:39 — forked from kubiqsk/date.format.js
PHP date() formatting in JavaScript
/*
# this will create new .format() function for Date object
# there is auto localization from Intl, but you can also set language as a 2nd argument
# all possible values were tested and compared on Apache server with PHP 8 date() function
# you can find minified version in the first comment
# examples:
new Date().format('d.m.Y H:i:s') // 25.07.2022 09:11
@mharis
mharis / functions.php
Created November 4, 2022 12:01 — forked from danieliser/functions.php
EDD Subscription Cancellation UX using Gravity Forms & WP Fusion
<?php
/**
* Assumptions:
* - Form ID is #28
* - Page ID is 406200
* - Fields include radio for reason & extra details where needed.
*/
@mharis
mharis / 0-intro.md
Created February 28, 2023 22:10 — forked from dwayne/0-intro.md
My notes from the book "Authority by Nathan Barry".

A Step-By-Step Guide To Self-Publishing

Become an expert, build a following, and gain financial independence.

by Nathan Barry

Table of Contents