"Making sense of MVP (Minimum Viable Product) – and why I prefer Earliest Testable/Usable/Lovable" by Henrik Kniberg
Split a file with mulitple classes into separate files.
Installation
git clone git@gist.github.com:594adece80ad1e9ddbce0b207db8ed0c.git split-file
cd split-file
composer install
Usage:
const url = new URL(document.location) | |
const search = new URLSearchParams() | |
const options = { | |
"foo": "hello", | |
"bar":"world" | |
} | |
Object.entries(options).forEach(([key, value]) => { |
There are some great resources out there that document HTML elements.
Such as HTML Elements on MDN and htmlreference.io.
However, for me, most of these resources are either too exhaustive (like MDN) or too brief (like htmlreference.io).
What I want is a list of all available HTML elements, to get an idea of what the element is, without having to click through to another page. But also with enough information to know what the element is used for and how it is used.
[The Five laws of Library Science][1] is a theory that S. R. Ranganathan proposed in 1931, detailing the principles of operating a library system.
- Books are for use.
- Every person his or her book.
- Every book its reader.
- Save the time of the reader.
- A library is a growing organism.
<?php | |
//REQUIREMENTS! | |
//"phpseclib/phpseclib": "^3.0" | |
//"lcobucci/jwt": "^5.0" | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$json = '{ | |
"keys": [ | |
{ |
This gist contains the recipe to make a copy button.
It is activated by adding data-js="add-to-page"
to an element and including the CSS and JS files.
<link rel="stylesheet" href="https://gist.pother.ca/33b4d10024f56ba0610f8e70477687cb/copy-button.css">
<script async src="https://gist.pother.ca/33b4d10024f56ba0610f8e70477687cb/copy-button.js"></script>
<pre data-js="copy">Your Text Goes Here</pre>
In order to help developers and managers gain insight into the plethora of things that can go wrong at different levels in a software project, this list (taken from wikipedia https://en.wikipedia.org/wiki/Anti-pattern) offers a quick print-and-fill questionaire that can aid in discussion and education.
The crude jQuery used to strip down the wiki page is included in this gist.
Live view at: https://gist.pother.ca/2e5817a37b1229ea1930/
Under normal circumstances, a Web Worker should be passed a URL of the script to execute. However, a local function can also be used
This is done by converting a function to a string, converting that string to a Blob, and converting that Blob to an Object URL.
The code to do this would look a bit like this:
When taking part of a Daily Scrum as Scrum Master, I find it handy to take notes. This makes sure I can hand over the role, if need be. It also means I don't have to rememeber everything as I can look things up in my notes later.
Below is the structure I use as format or "template" for taking notes.
Some things of importance: