One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| /** | |
| * Export all data from an IndexedDB database | |
| * | |
| * @param {IDBDatabase} idbDatabase The database to export from | |
| * @return {Promise<string>} | |
| */ | |
| export function exportToJson(idbDatabase) { | |
| return new Promise((resolve, reject) => { | |
| const exportObject = {} | |
| if (idbDatabase.objectStoreNames.length === 0) { |
| Eliminate All Blocks from Editor | |
| wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
| How to Use WordPress Block Builder to Create Custom Page Layouts Easily | |
| https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/ | |
| How to Extend or Create Variations for WordPress Blocks | |
| https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/ | |
| How to disable and lock Gutenberg blocks |
| >>> import pytz | |
| >>> | |
| >>> for tz in pytz.all_timezones: | |
| ... print tz | |
| ... | |
| ... | |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| 'use strict'; | |
| module.exports = function (element, callback) { | |
| var allImgsLength = 0; | |
| var allImgsLoaded = 0; | |
| var allImgs = []; | |
| var filtered = Array.prototype.filter.call(element.querySelectorAll('img'), function (item) { | |
| if (item.src === '') { | |
| return false; |
| <?php | |
| /** SHOW RELATED POSTS BY TAG, TAG IS INDICATED BY CUSTOM PROPERTY keyword => tag **/ | |
| /** check for custom property **/ | |
| $key = 'keyword'; | |
| $keyword = get_post_meta($post->ID, $key, true); | |
| if ($keyword != '') { | |
| /** set max number of posts **/ | |
| $num_posts = '4'; | |
| /** setup the query array **/ |