npm install -g surge
yarn build;
cp build/index.html build/200.html;
echo '*' > build/CORS;
surge build appname.surge.sh
brew install postgresql;
brew services start postgresql;
psql: error: FATAL: database "michaeldimmitt" does not exist
psql postgres;
postgres=# CREATE DATABASE michaeldimmitt with OWNER michaeldimmitt;
This will be an ongoing list for personal reference.
IsaacG - from exercism https://exercism.org/tracks/bash/exercises/hamming/solutions/IsaacG
The && and || in bash are short-circuit logical operators. They quit evaluating as soon as possible.
a && b will only run b if a is true. a || b will only run b if a is false. a || b || c will stop as soon as anything is true. a && b || c will run a and ... b or c or both!! This is why a full blown if-else is often a good idea.
( is a subprocess. The exit status of the subprocess does propagate to the parent shell. If you got set -e (not recommended), you'd get its exit status. But a subshell cannot exit the parent shell.
My take,
- the fact that it is not the default when you go through the react docs is kind of frustrating.
https://reactjs.org/docs/hooks-intro.html
^ I would read through 1-8
import { act, render, screen } from '@testing-library/react'; | |
import userEvent from '@testing-library/user-event'; | |
import React from 'react'; | |
import MyComponent from './MyComponent'; | |
const weirdResponseResultStructure = { | |
results: [ // www.example.com/nameOfUrl | |
{ | |
id: 'KS', | |
text: 'KS', |
https://www.meetup.com/api/guide/#graphQl-guide
The out of the box example does not work.
However, this version is works:
query='query { self { id name } }'
YOUR_TOKEN='put-a-token'
curl -X POST https://api.meetup.com/gql \
angular 2+ there are a few things to learn
the generate command can give examples of a few of these https://angular.io/cli/generate
component
directive
service https://angular.io/guide/architecture-services
pipe