Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
brew install fish
curl -L https://get.oh-my.fish | fish
# ---------------------------------- | |
# Colors | |
# ---------------------------------- | |
NOCOLOR='\033[0m' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
ORANGE='\033[0;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' | |
CYAN='\033[0;36m' |
// UPDATE: In 2023, you should probably stop using this! The narrow version of Safari that | |
// does not support `nomodule` is probably not being used anywhere. The code below is left | |
// for posterity. | |
/** | |
* Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will | |
* load <script nomodule> anyway. This snippet solve this problem, but only for script | |
* tags that load external code, e.g.: <script nomodule src="nomodule.js"></script> | |
* | |
* Again: this will **not** prevent inline script, e.g.: |
Node.js v18 introduces test runner support. This currently experimental feature gives developers the benefits of a structured test harness for their code without having to install a third party test framework, like Mocha or Jest, as a dependency. Using the test runner produces [TAP] output.
The [online reference] provides the most up-to-date, authoritative reference and have plenty of good testing examples. However, there are a few points that might not be immediately obvious from the reference, so those are highlighted here.
/** | |
* @fileOverview Generates "Lorem ipsum" style text. | |
* @author rviscomi@gmail.com Rick Viscomi, | |
* tinsley@tinsology.net Mathew Tinsley | |
* @version 1.0 | |
*/ | |
/** | |
* Copyright (c) 2009, Mathew Tinsley (tinsley@tinsology.net) | |
* All rights reserved. |
<?php | |
$wp_locale_conversion = array( | |
'af' => array( | |
'name' => 'Afrikaans', | |
'code' => 'af', | |
'wp_locale' => 'af' | |
) , | |
'ak' => array( | |
'name' => 'Akan', | |
'code' => 'ak', |
const arr1 = [1,2,3] | |
const arr2 = [4,5,6] | |
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
import { useFormikContext } from 'formik'; | |
import debounce from 'lodash/debounce'; | |
import React, { useCallback, useEffect, useState } from 'react'; | |
import isEqual from 'react-fast-compare'; | |
type AutoSaveFieldsStates = 'changed' | 'saved' | undefined; | |
export type AutoSaveFieldsStatusRenderer = ( | |
state: 'submitting' | AutoSaveFieldsStates | |
) => React.ReactNode; |