Install PHP 7.3 and MySQL 5.1+
First, let’s install the Mac dependency manager “Homebrew”
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# create a data frame | |
user_df <- data.frame( | |
name = c("Alice", "Bob", "Charlie", "Dave"), | |
age = c(25, 32, 47, 19), | |
city = c("New York", "San Francisco", "Los Angeles", "Chicago"), | |
stringsAsFactors = FALSE | |
) | |
# view the data frame | |
user_df |
To setup your SSH key on your computer
touch ~/.ssh/config
import {useEffect, useState} from 'react' | |
import './App.css' | |
export const CounterApp = () => { | |
const storageKeyName = "count"; | |
const retrieveCountValue = () => Number(localStorage.getItem(storageKeyName) || 0); | |
const [count, setCount] = useState(retrieveCountValue()); |
<?php | |
$sDayPrefix = date('D'); | |
$sMessage = match ($sDayPrefix) { | |
'Mon' => 'Hello Monday! Have a great week!', | |
'Tue' => 'Hello Tuesday! Have a great day!', | |
'Wed' => 'Happy hump day all!', | |
'Thu' => 'Almost the end of the working week!', | |
'Fri' => 'Yaay! Happy Friday!', | |
'Sat' => 'Enjoy your weekend! Have a great Saturday :)', |
If you name your PostgreSQL table names or column names with caps like lowerCamel / UpperCamel cases, you will need to surround the column names/table name with double quotes to preserve the case of their names since our the columns in our database are lowerCamel case. Otherwise, Postgres wouldn’t find them as it would look for lowercase-only names.
export default [ | |
{ | |
name: 'Alabama', | |
abbreviation: 'AL', | |
}, | |
{ | |
name: 'Alaska', | |
abbreviation: 'AK', | |
}, | |
{ |
<?php | |
class InvalidDayMomentException extends InvalidArgumentException | |
{ | |
} |