Skip to content

Instantly share code, notes, and snippets.

View rabbithops's full-sized avatar
💻
🐇 ✌️

Max Avedisian rabbithops

💻
🐇 ✌️
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';
@stevegrunwell
stevegrunwell / gist:11c3e9d370127fa97898
Last active December 27, 2024 21:45
Bulk-upgrade WordPress plugins using WP-CLI, committing each upgrade to Git as we go
#! /bin/bash
# Find available updates for WordPress plugins via WP-CLI, then upgrade theme one at a time.
# After each upgrade, commit the changed files to Git.
#
# Requires that WP-CLI be installed and in your path: http://wp-cli.org/
#
# Currently, it will only work when run from the root of the WordPress installation, and has
# a hard-coded path for wp-content/plugins.
#