Links:
How do we stop execution of functions if one fails?
def process_checkout(order) do
| /* MVC */ | |
| // MODEL | |
| function ModelBase(attributes) { | |
| for (var attr in attributes) { | |
| this[attr] = attributes[attr]; | |
| } | |
| this._eventHandlers = {}; | |
| } |
| ▶ brew list -1 | while read line; do brew unlink $line; brew link $line; done | |
| Unlinking /usr/local/Cellar/appledoc/2.2... 0 links removed | |
| Linking /usr/local/Cellar/appledoc/2.2... 1 symlinks created | |
| Unlinking /usr/local/Cellar/autoconf/2.69... 0 links removed | |
| Linking /usr/local/Cellar/autoconf/2.69... 18 symlinks created | |
| Unlinking /usr/local/Cellar/bash-completion/1.3... 184 links removed | |
| Linking /usr/local/Cellar/bash-completion/1.3... 182 symlinks created | |
| Unlinking /usr/local/Cellar/bgrep/0.2... 0 links removed | |
| Linking /usr/local/Cellar/bgrep/0.2... 1 symlinks created | |
| Unlinking /usr/local/Cellar/binutils/2.24... 49 links removed |
| find . -d -name node_modules | while read line; do rm -rf $line; done |
Links:
How do we stop execution of functions if one fails?
def process_checkout(order) do
| /** | |
| * Module that implements non-jQuery script injection with Deferred/Promise support (using | |
| * Q.js ). | |
| * | |
| * This deferred load notifies caller when the script is loaded... so chaining | |
| * or post load actions is easily supported. | |
| * | |
| */ | |
| ( function( win, doc, $q ){ | |
| "use strict"; |
| # foo/lib/foo/accounts/accounts.ex | |
| defmodule Foo.Accounts do | |
| @moduledoc """ | |
| The boundary for the Accounts system. | |
| """ | |
| import Ecto.{Query, Changeset}, warn: false | |
| alias Foo.Repo |
| defmodule Expng do | |
| defstruct [:width, :height, :bit_depth, :color_type, :compression, :filter, :interlace, :chunks] | |
| def png_parse(<< | |
| 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, | |
| _length :: size(32), | |
| "IHDR", | |
| width :: size(32), | |
| height :: size(32), |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Alpha Component</key> | |
| <real>1</real> | |
| <key>Blue Component</key> | |
| <real>0.11759774386882782</real> |
Generate a new Elixir project using mix and add cowboy and plug as dependencies in mix.exs:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end