Skip to content

Instantly share code, notes, and snippets.

View moafzalmulla's full-sized avatar
😃

Mohamed Afzal Mulla moafzalmulla

😃
View GitHub Profile
@captprice26
captprice26 / notes.txt
Last active June 1, 2021 07:00
Build a Countdown Timer using javascript
AVAILABLE Time Formats
The ISO 8601 format: var deadline = '2015-12-31';
The short format: var deadline = '31/12/2015';
Or, the long format: var deadline = 'December 31 2015';
Each of these formats allows you to specify an exact time (in hours minutes and seconds), as well as a time zone (or an offset from UTC in the case of ISO dates).
For example: var deadline = 'December 31 2015 23:59:59 GMT+0200';
@keithdevon
keithdevon / manual-gravity-forms
Created September 25, 2014 21:05
Manually create entries and send notifications with Gravity Forms
<?php
// Manually create entries and send notifications with Gravity Forms
$form_id = 10;
// add entry
$entry = array(
"form_id" => $form_id,
"1" => "Entry for field ID 1",