Transforms the data of a given Spreadsheet Sheet to JSON.
- The frozen rows are taken as keys for the JSON.
- The data taken for the values is only that after the frozen rows
exportJSON(Spreadsheet) - transforms the data in the given sheet to JSON.
| /***** | |
| * Title: Same Table Backlinks | |
| * License: MIT | |
| * Author: Openside (Team behind On2Air products and BuiltOnAir community) | |
| * Sites: | |
| * https://openside.com - Openside Consulting Services | |
| * https://openside.com/#products - On2Air Products | |
| * https://builtonair.com - All things Airtable Community | |
| * | |
| * Reach out for all your Airtable needs |
| // as one-liner for bookmarklet | |
| javascript:;(function(){var images=[].slice.call(document.querySelectorAll('img'));try{images.forEach(function(img){downloadResource(img.src)})}catch(e){alert("Download failed.");console.log('Download failed.',e)}function forceDownload(blob,filename){var a=document.createElement('a');a.download=filename;a.href=blob;a.click()}function downloadResource(url,filename){if(!filename)filename=url.split('\\').pop().split('/').pop();fetch(url,{headers:new Headers({'Origin':location.origin}),mode:'cors'}).then(response=>response.blob()).then(blob=>{let blobUrl=window.URL.createObjectURL(blob);forceDownload(blobUrl,filename)}).catch(e=>console.error(e))}}).call(window); |
| 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 |
| <?php | |
| /** | |
| * This function returns a page permalink | |
| * for the current website language. | |
| * | |
| * @author Mauricio Gelves <[email protected]> | |
| * @param $page_slug string WordPress page slug | |
| * @return string|false Page Permalink or false if the page is not found | |
| */ |
| <?php | |
| /** | |
| * Recursive function to generate a unique username. | |
| * | |
| * If the username already exists, will add a numerical suffix which will increase until a unique username is found. | |
| * | |
| * @param string $username | |
| * | |
| * @return string The unique username. | |
| */ |
| /** | |
| * Creates a RegExp from the given string, converting asterisks to .* expressions, | |
| * and escaping all other characters. | |
| */ | |
| function wildcardToRegExp (s) { | |
| return new RegExp('^' + s.split(/\*+/).map(regExpEscape).join('.*') + '$'); | |
| } | |
| /** | |
| * RegExp-escapes all characters in the given string. |
| const header = document.querySelector('.header'); | |
| const pageWrap = document.querySelector('.wrapper'); | |
| var lastScrollTop = 0; | |
| function debounce(func, wait) { | |
| let timeout; | |
| return function(...args) { | |
| const context = this; | |
| clearTimeout(timeout); | |
| timeout = setTimeout(() => func.apply(context, args), wait); |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git