I hereby claim:
- I am lwcooper on github.
- I am lwcooper (https://keybase.io/lwcooper) on keybase.
- I have a public key ASAQ7ZQ60pnBiPLc0OmuKxlrWTcDtvCdpPD3jphgzAOkPwo
To claim this, I am signing this object:
function displayPerson(person, hasFreeCoffee) { | |
const coffeeTableEl = document.getElementById("coffeeTable"); | |
coffeeTableEl.innerHTML = | |
coffeeTableEl.innerHTML + | |
` | |
<tr> | |
<td>${person.name}</td> | |
<td>${person.age}</td> | |
<td>${person.numbersOfCoffees}</td> | |
<td>${hasFreeCoffee ? "Yes" : "No"}</td> |
{/* A <Switch> looks through its children <Route>s and | |
renders the first one that matches the current URL. */} | |
<Switch> | |
<Route path="/about"> | |
<About /> | |
</Route> | |
<Route path="/users"> | |
<Users /> | |
</Route> | |
<Route path="/"> |
I hereby claim:
To claim this, I am signing this object:
# Remove all images | |
docker rmi $(docker images -a -q) | |
# Stop and remove all containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# Remove volumes | |
docker volume ls | |
docker volume rm volume_name |
// You can run this script as part of your build step in your package.json | |
// eg: | |
// ... | |
// "scripts": { | |
// "build": "node get-content.js && hugo" | |
// } | |
// ... | |
var fs = require('fs'); //to access filewrite | |
var toMarkdown = require ('to-markdown'); //to convert HTML to Markdown |
function fetchUsersFromCognito (options) { | |
const defaults = { | |
UserPoolId: AWS_COGNITO_USER_POOL_ID | |
}; | |
const params = Object.assign({}, defaults, options); | |
return new Promise((resolve, reject) => { | |
client.listUsers(params, (error, data) => { | |
if (error) { | |
reject(error); |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/** | |
* Grid | |
*/ | |
.hero, | |
.main { | |
box-sizing: border-box; | |
} | |
/* Content faking */ |
.img-wrapper { | |
width: 300px; | |
height: 150px; | |
overflow: hidden; | |
position: relative; | |
float: left; | |
margin: 20px; | |
} | |
img { |