Skip to content

Instantly share code, notes, and snippets.

View elderbas's full-sized avatar

brian schermerhorn elderbas

View GitHub Profile
@elderbas
elderbas / person.ex
Created December 31, 2017 02:37
Person module
defmodule MyApp.Person do
use MyApp.Web, :model
schema "people" do
field :name, :string
timestamps()
end
@doc """
@elderbas
elderbas / angularjs_directive_attribute_explanation.md
Created July 18, 2016 05:45 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@elderbas
elderbas / 0_reuse_code.js
Created June 3, 2016 11:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console