- 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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<title>Sankey Diagram</title> | |
<style> | |
@import url(http://bost.ocks.org/mike/style.css?20120521); | |
#chart { | |
height: 500px; |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<title>Sankey Diagram</title> | |
<style> | |
@import url(http://bost.ocks.org/mike/style.css?20120521); | |
#chart { | |
height: 500px; |
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
{"nodes":[ | |
{"name":"Agricultural 'waste'"}, | |
{"name":"Bio-conversion"}, | |
{"name":"Liquid"}, | |
{"name":"Losses"}, | |
{"name":"Solid"}, | |
{"name":"Gas"}, | |
{"name":"Biofuel imports"}, | |
{"name":"Biomass imports"}, | |
{"name":"Coal imports"}, |