Rationale: Indicate type of model being loaded more explicitly in code.
// Before: 
await tf.loadModel('http://server/model.json');| // By @coderitual | |
| // https://twitter.com/coderitual/status/1112297299307384833 | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // Type this in your code to break chrome debugger in that line. | 
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji | 
|---|---|
| Initial commit | 🎉 :tada: | 
| Version tag | 🔖 :bookmark: | 
| New feature | ✨ :sparkles: | 
| Bugfix | 🐛 :bug: | 
| html,body,#wrapper { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0px; | |
| } | |
| .chart { | |
| font-family: Arial, sans-serif; | |
| font-size: 12px; | |
| } | 
| license: mit | 
| date | Airbus | Boeing | |
|---|---|---|---|
| 2000-07-31 | 0 | 0 | |
| 2000-08-31 | -0.884 | 9.8912 | |
| 2000-09-29 | 9.6685 | 32.1383 | |
| 2000-10-31 | 32.5967 | 38.9245 | |
| 2000-11-30 | 33.1492 | 41.4853 | |
| 2000-12-29 | 30.7182 | 35.2113 | |
| 2001-01-31 | 27.0718 | 19.8464 | |
| 2001-02-28 | 24.3094 | 27.4264 | |
| 2001-03-30 | 16.0773 | 14.1306 | 
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master | 
This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.
It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.