Let's make sure our Express app has the required base modules:
# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon| { | |
| product(first: 50) { | |
| edges { | |
| node { | |
| name | |
| description | |
| } | |
| } | |
| } | |
| } |
| echo '.env' >> .gitignore | |
| git rm -r --cached .env | |
| git add .gitignore | |
| git commit -m 'untracking .env' | |
| git push origin master |
| // Tracking cursor position in real-time without JavaScript | |
| // Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "strings" | |
| ) |
| .App { | |
| text-align: center; | |
| } | |
| .App-logo { | |
| animation: App-logo-spin infinite 20s linear; | |
| height: 40vmin; | |
| pointer-events: none; | |
| } |
| // Trie.js - super simple JS implementation | |
| // https://en.wikipedia.org/wiki/Trie | |
| // ----------------------------------------- | |
| // we start with the TrieNode | |
| function TrieNode(key) { | |
| // the "key" value will be the character in sequence | |
| this.key = key; | |
| <script>console.log({{ product | json }});</script> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent##Windows users:
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
homestead utf8_general_ci| The MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |