- NextJS Routing
Detailed descriptions below
- ...
Detailed descriptions below
// Here's a test on referential equality in Javascript. | |
1. {} === {} // false | |
const a = {} | |
2. a === a // true | |
/* So why does 1 evaluate to false but 2 evaluates to true? | |
The answer has to do with how Javascript creates and stores items in memory. |
isLoading ? :
logic throughout your codebase.#!/usr/bin/env python | |
from nylas import APIClient | |
import json | |
config = json.load(open('config.json')) | |
def main(): | |
client = APIClient(config['NYLAS_APP_ID'], config['NYLAS_APP_SECRET'], config['NYLAS_ACCESS_TOKEN']) | |
message_arr = [] | |
# Get 10 threads from lars@metafoo.de |
<!-- Excerpts --> | |
<section id='sideposts'> | |
<ul class="divided"> | |
{{# each sidePosts}} | |
<li> | |
<!-- Excerpt --> | |
<article class="box excerpt"> | |
<header> | |
<span class="date">{{this.formattedDate}}</span> | |
<h3><a href="/{{this.slug}}">{{{this.postTitle}}}</a></h3> |
app.get('/:id', function(req, res, next) { | |
db.Post.findById(req.params.post_id, function(err, mainPost) { | |
if (err){ | |
console.log('Error', err); | |
} |