Skip to content
View curl.txt
➜ ~ curl -I 'http://localhost:4200/api/v1/feed_items?user_id=joe' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://localhost:4200/tests?testNumber=7' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36' --compressed
HTTP/1.1 204 No Content
X-Powered-By: Express
access-control-allow-origin: *
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
cache-control: no-cache
x-request-id: c55219fd-68c9-43d2-b132-261786bc5582
x-runtime: 0.004800
View dev.exs
config :my_app, :twitter_api,
client: Twitter.SandboxClient
View ecto-belongs-to-issue.exs
defmodule BelongsToReferenceKeyTest do
use ExUnit.Case
defmodule Foo do
use Ecto.Model
@primary_key {:foobar_id, :id, []}
schema "foos" do
belongs_to :bar, Bar
View gist:6d8e3377a76c2ce7ded7
foo([{:a, [1, 2], [:b]}, {c, [3, 4], [:d]}])
defp foo({:a, _, _} = bar, other})
defp foo(a, b) when a = {:a, _, _}
View query_controller.ex
defmodule MyApp.EventController do
use MyApp.Web, :controller
import Ecto.Query
alias MyApp.Event
alias MyApp.EventSerializer
plug :scrub_params, "event" when action in [:create, :update]
def index(conn, params) do
View authenticator.ex
defmodule MyApp.Authenticator do
import Plug.Conn
def attempt_to_authenticate(conn, _) do
case find_account(conn) do
{ :ok, account } ->
assign(conn, :account, account)
:error ->
|> send_resp(401, "")
  1. Part 1
    1. Setting up Your Development Environment
      1. Installing Node && npm
        1. Node for OSX
        2. Node for Linux
        3. Node for Windows
      2. Installing Bower
      3. Installing PhantomJS
      4. Installing Ember-CLI
        1. Generate a project
View promise.js
certificates: computed(function() {
return PromiseManyArray.create({
promise:'transfer', { user_id: get(this, 'id') })
.then(records => {
// this.notifyPropertyChange('certificates');
return records;
Something went wrong with that request. Please try again.