I hereby claim:
- I am philkeys on github.
- I am keys2design (https://keybase.io/keys2design) on keybase.
- I have a public key ASDV3kn66wXcwMfNlsiIwXiYTGXAr8zOnWOytbXpsDCEqgo
To claim this, I am signing this object:
-- code for https://youtu.be/tp_5c6jaNQE | |
create table users ( | |
id serial primary key, | |
first_name varchar(255) not null, | |
last_name text, | |
age int, | |
email text unique not null | |
); |
function ProviderComposer({ contexts, children }) { | |
return contexts.reduceRight( | |
(kids, parent) => | |
React.cloneElement(parent, { | |
children: kids, | |
}), | |
children | |
); | |
} |
I hereby claim:
To claim this, I am signing this object:
Make an .eslintrc
file in your project directory:
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": "airbnb"
}
Run this cmd
in your shell:
//////////////////// | |
// Partials Example | |
//////////////////// | |
<div class="weatherWidget"> | |
{{#each partials.weatherContext.locations}} | |
<div class="location"> | |
<h3>{{name}}</h3> | |
<a href="{{forecastUrl}}"> | |
<img src="{{iconUrl}}" alt="{{weather}}"> |
// setting up the standard layout | |
var handlebars = require('express-handlebars') | |
.create({defaultLayout: 'main' }); | |
// To use the default layout with a view | |
app.get('/foo', function(req, res) { | |
res.render('foo'); | |
}); |
// When providing an API, the parameters will most likely be in req.query, | |
// though you can use req.body. You'll usually return JSON, XML, or plaintext | |
// and you'll often be using less common HTTP methods like PUT, POST, and DELETE. | |
//////////////// | |
// GET Endpoint | |
//////////////// | |
var tours = [ | |
{ id: 0, name: 'Hood River', price: 99.99 }, |