defmodule ApiDataStructure do | |
defmodule User do | |
use Ecto.Schema | |
import Ecto.Changeset | |
alias ApiDataStructure.Profile | |
embedded_schema do | |
field :username, :string |
# Move erts IO Polling to dedicated threads | |
# https://github.com/erlang/otp/pull/1552 |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
Place the gitignore
and gitattributes
files in the base directory of your git repository. The gitconfig
contents can go into your global .gitconfig file, in the repo's .git/config file or a custom .gitconfig file. A custom .gitconfig will need to be manually configured by each team member, even if it's in tracked in the repo because it's a security vulnerability.
The gitignore
file contains a mashup from the HoloToolkit-Unity gitignore, along with GitHub/gitignore files for Unity and Visual Studio.
The gitconfig
file tells git to use Unity's Smart Merge (aka UnityYAMLmerge), which is installed with Unity, to handle YAML merges.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |