Create and use a component that takes a friendName
prop and displays the text 'is my friend!' after the name.
Example: this should display "Bob Belcher is my friend!"
<Friend friendName="Bob Belcher" />
#!/bin/bash | |
set -euo pipefail | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' |
import ReactMarkdown from 'react-markdown'; | |
import { stripIndent } from 'common-tags'; | |
import React, { ReactElement } from 'react'; | |
/** | |
* Markdown renderer. This is a wrapper around the ReactMarkdown component. | |
* @param strings the strings to be formatted | |
* @param values the values to be inserted into the strings | |
* @returns A ReactMarkdown component | |
*/ |
{ | |
"fileTypes": [ | |
"antlers.html", | |
"html", | |
"htm", | |
"xhtml" | |
], | |
"name": "Antlers (Statamic Syntax)", | |
"scopeName": "text.html.statamic", | |
"foldingStartMarker": "{{(\\s?)", |
const query = 'Queens of the Stone Age' | |
fetch(`https://musicbrainz.org/ws/2/artist/?query=${query}`, { | |
headers: { | |
'Accept': 'application/json' | |
}, | |
}) | |
.then(res => res.json()) | |
.then(data => { | |
// search results |
find -type f -exec chmod 644 {} \; && find -type d -exec chmod 755 {} \; |
<head> | |
<!-- HTML Meta --> | |
<title>{{title}}</title> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> | |
<meta name="description" content="{{description}}"> | |
<!-- OpenGraph Meta --> | |
<meta property="og:locale" content="en_US"> |
# oh-my-zsh Hellotimber Theme | |
# based off the 'bereau' theme | |
### NVM | |
ZSH_THEME_NVM_PROMPT_PREFIX="%B⬡%b " | |
ZSH_THEME_NVM_PROMPT_SUFFIX="" | |
### Git [±master ▾●] |
SET @oldsite = 'https://oldsite.dev'; /* Old Site URL */ | |
SET @newsite = 'http://newsite.dev'; /* New Site URL */ | |
SET @prefix = 'wp_'; /* Table Prefix - standard is 'wp_' */ | |
SET @st1 = CONCAT ('UPDATE ', @prefix, 'options SET option_value = replace(option_value, \'', @oldsite, '\', \'', @newsite, '\') WHERE option_name = \'home\' OR option_name = \'siteurl\''); | |
PREPARE s_options FROM @st1; | |
EXECUTE s_options; | |
DEALLOCATE PREPARE s_options; | |
SET @st2 = CONCAT ('UPDATE ', @prefix, 'posts SET guid = replace(guid, \'', @oldsite, '\', \'', @newsite, '\')'); |