- Objectives:
- Understand functional programming a bit better
- Categorize and understand approaches
- See which approaches fit which problems
- Map concepts and approaches from Scala/Haskell to elixir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
maximum: Date.parse("2010-01-20") | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{application,foo, | |
[{registered,[]}, | |
{description,"foo"}, | |
{vsn,"0.0.1"}, | |
{modules,['Elixir.Foo','Elixir.Foo.Endpoint', | |
'Elixir.Foo.ErrorHelpers','Elixir.Foo.ErrorView', | |
'Elixir.Foo.Gettext','Elixir.Foo.LayoutView', | |
'Elixir.Foo.PageController','Elixir.Foo.PageView', | |
'Elixir.Foo.Repo','Elixir.Foo.Router', | |
'Elixir.Foo.Router.Helpers','Elixir.Foo.Sup', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{application,foo, | |
[{registered,[]}, | |
{description,"foo"}, | |
{vsn,"0.0.1"}, | |
{modules,['Elixir.Foo','Elixir.Foo.Endpoint', | |
'Elixir.Foo.ErrorHelpers','Elixir.Foo.ErrorView', | |
'Elixir.Foo.Gettext','Elixir.Foo.LayoutView', | |
'Elixir.Foo.PageController','Elixir.Foo.PageView', | |
'Elixir.Foo.Repo','Elixir.Foo.Router', | |
'Elixir.Foo.Router.Helpers','Elixir.Foo.Sup', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{application,foo, | |
[{registered,[]}, | |
{description,"foo"}, | |
{vsn,"0.0.1"}, | |
{modules,['Elixir.Foo','Elixir.Foo.Endpoint', | |
'Elixir.Foo.ErrorHelpers','Elixir.Foo.ErrorView', | |
'Elixir.Foo.Gettext','Elixir.Foo.LayoutView', | |
'Elixir.Foo.PageController','Elixir.Foo.PageView', | |
'Elixir.Foo.Repo','Elixir.Foo.Router', | |
'Elixir.Foo.Router.Helpers','Elixir.Foo.Sup', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DISPLAY=:99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data'; | |
export default DS.RESTAdapter.extend({ | |
namespace: 'api' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reduce : (a -> a -> a -> a) -> a -> Tree a -> a | |
reduce f base tree = | |
case tree of | |
Empty -> base | |
Node v left right -> | |
f v | |
(reduce f base left) | |
(reduce f base right) | |
sum tree = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redesign::Container.create! \ | |
layout: :article, | |
slug: '/about', | |
data:{ | |
hero:{ | |
title:{ | |
title1:"sdf", |
I hereby claim:
- I am ghedamat on github.
- I am ghedamat (https://keybase.io/ghedamat) on keybase.
- I have a public key whose fingerprint is 3043 0DF7 E463 9A38 FAB9 F9B7 3DEF 8491 D979 43BE
To claim this, I am signing this object: