I hereby claim:
- I am mchelen on github.
- I am mchelen (https://keybase.io/mchelen) on keybase.
- I have a public key ASDJLpuXNtVCcDhcu__HUqvkFkFgokGpGG6j4kVk0JcNIgo
To claim this, I am signing this object:
<?php | |
// assumes fieldName is a text field with 1 value | |
function FilterNodesByRegex($nids, $fieldName, $regex) { | |
$nodes = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($nids); | |
return array_filter($nodes, function($node) use ($regex, $fieldName) { | |
return preg_match( | |
$regex, | |
$node->get($fieldName)->getString() | |
); |
sudo apt install backport-iwlwifi-dkms |
I hereby claim:
To claim this, I am signing this object:
greet({ | |
greeting: "Hello", | |
firstName: "Jane", | |
lastName: "Smith", | |
title: "Dr." | |
}); | |
function greet({ greeting, firstName, lastName, title }) { | |
console.log(`${greeting}, ${title} ${firstName} ${lastName}`); | |
} |
greet({ | |
greeting: 'Hello', | |
firstName: 'Jane', | |
lastName: 'Smith', | |
title: 'Dr.', | |
}); | |
function greet({ | |
greeting, | |
firstName, |
/* | |
How to remove a string prefix based on a delimiter, without knowing the length of the prefix. | |
#1 substr() + indexOf() | |
#2 string.split() + array.join() | |
#3 string.replace() + regex | |
*/ | |
// example input | |
const inputString = "search_field:http://www.example.com/welcome:_visitor/index.html" |
> react-scripts build | |
There might be a problem with the project dependency tree. | |
It is likely not a bug in Create React App, but something you need to fix locally. | |
The react-scripts package provided by Create React App requires a dependency: | |
"babel-eslint": "10.0.3" |
#!/bin/sh | |
# if i pass CLI options to index.js like this: | |
npm run test -- optA | |
# currently results in: | |
echo | bunyan "optA" |
# setup code
mkdir ~/tmp
cd ~/tmp
npx create-react-app my-app
cd my-app
# confirm tests pass
CI=true npm run test -- --no-cache