├── data
├── fonts
│ └── .gitkeep
├── themes
│ ├── .gitkeep
│ └── my_theme.toml
└── page_sharer.toml
├── static
├── uploads
│ └── .gitkeep
└── Python
│ ├── The labor market.py
│ ├── R&D Growth Model.py
│ ├── The IS-LM model.py
│ ├── The AD-AS model.py
│ └── Ramsey.py
├── assets
└── media
│ ├── icon-pack
│ ├── .gitkeep
│ └── numpy.svg
│ ├── icon.png
│ └── hub_econ.png
├── exampleSite
├── assets
│ └── media
│ │ ├── icon-pack
│ │ └── .gitkeep
│ │ └── open-book.jpg
├── static
│ └── media
│ │ ├── boards.jpg
│ │ ├── demo_resume.pdf
│ │ └── headers
│ │ └── bubbles-wide.jpg
├── content
│ ├── admin
│ │ └── index.md
│ ├── authors
│ │ ├── admin
│ │ │ ├── avatar.jpg
│ │ │ └── _index.md
│ │ └── 吳恩達
│ │ │ ├── avatar.jpg
│ │ │ └── _index.md
│ ├── home
│ │ ├── hero-academic.png
│ │ ├── index.md
│ │ ├── gallery
│ │ │ ├── gallery
│ │ │ │ ├── theme-1950s.png
│ │ │ │ ├── theme-dark.png
│ │ │ │ ├── theme-ocean.png
│ │ │ │ ├── theme-apogee.png
│ │ │ │ ├── theme-default.png
│ │ │ │ ├── theme-forest.png
│ │ │ │ ├── theme-strawberry.png
│ │ │ │ └── theme-coffee-playfair.png
│ │ │ └── index.md
│ │ ├── about.md
│ │ ├── tags.md
│ │ ├── contact.md
│ │ ├── featured.md
│ │ ├── posts.md
│ │ ├── talks.md
│ │ ├── publications.md
│ │ ├── skills.md
│ │ ├── hero.md
│ │ ├── experience.md
│ │ ├── projects.md
│ │ ├── demo.md
│ │ └── accomplishments.md
│ ├── event
│ │ ├── example
│ │ │ ├── featured.jpg
│ │ │ └── index.md
│ │ └── _index.md
│ ├── post
│ │ ├── jupyter
│ │ │ ├── featured.png
│ │ │ ├── index_1_0.png
│ │ │ └── index.md
│ │ ├── getting-started
│ │ │ ├── featured.jpg
│ │ │ └── index.md
│ │ ├── writing-technical-content
│ │ │ ├── featured.jpg
│ │ │ ├── line-chart.json
│ │ │ └── index.md
│ │ └── _index.md
│ ├── courses
│ │ ├── example
│ │ │ ├── featured.jpg
│ │ │ ├── visualization.md
│ │ │ ├── python.md
│ │ │ ├── stats.md
│ │ │ └── _index.md
│ │ └── _index.md
│ ├── publication
│ │ ├── preprint
│ │ │ ├── featured.jpg
│ │ │ └── index.md
│ │ ├── conference-paper
│ │ │ ├── featured.jpg
│ │ │ ├── cite.bib
│ │ │ └── index.md
│ │ ├── journal-article
│ │ │ ├── featured.jpg
│ │ │ ├── cite.bib
│ │ │ └── index.md
│ │ └── _index.md
│ ├── project
│ │ ├── external-project
│ │ │ ├── featured.jpg
│ │ │ └── index.md
│ │ └── internal-project
│ │ │ ├── featured.jpg
│ │ │ └── index.md
│ ├── terms.md
│ ├── privacy.md
│ └── slides
│ │ └── example
│ │ └── index.md
├── resources
│ └── _gen
│ │ ├── assets
│ │ └── scss
│ │ │ └── scss
│ │ │ └── main.scss_ad7c01202310d8f56313e4e954344ccc.json
│ │ └── images
│ │ ├── home
│ │ ├── hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_400x0_resize_lanczos_2.png
│ │ ├── hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_800x0_resize_lanczos_2.png
│ │ ├── hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_1200x0_resize_lanczos_2.png
│ │ └── gallery
│ │ │ └── gallery
│ │ │ ├── theme-1950s_huaf5482f8cea0c5a703a328640e3b7509_21614_0x190_resize_lanczos_2.png
│ │ │ ├── theme-dark_hu1e8601ecc47f58eada7743fdcd709d3d_21456_0x190_resize_lanczos_2.png
│ │ │ ├── theme-ocean_hu14831ccafc2219f30a7a096fa7617e01_21760_0x190_resize_lanczos_2.png
│ │ │ ├── theme-apogee_hu4b45d99db97150df01464c393bfd17d4_24119_0x190_resize_lanczos_2.png
│ │ │ ├── theme-default_huba6228b7bdf30e2f03f12ea91b2cba0d_21751_0x190_resize_lanczos_2.png
│ │ │ ├── theme-forest_hu4f093a1c683134431456584193ea41ee_21797_0x190_resize_lanczos_2.png
│ │ │ ├── theme-strawberry_hu36b0b347fcca08bd39e2df22dcedbdfb_39532_0x190_resize_lanczos_2.png
│ │ │ └── theme-coffee-playfair_hu446a8f670cc5622adcc77b97ba95f6c5_22462_0x190_resize_lanczos_2.png
│ │ ├── media
│ │ ├── icon_hua2ec155b4296a9c9791d015323e16eb5_11927_180x180_fill_lanczos_center_2.png
│ │ ├── icon_hua2ec155b4296a9c9791d015323e16eb5_11927_192x192_fill_lanczos_center_2.png
│ │ ├── icon_hua2ec155b4296a9c9791d015323e16eb5_11927_32x32_fill_lanczos_center_2.png
│ │ └── icon_hua2ec155b4296a9c9791d015323e16eb5_11927_512x512_fill_lanczos_center_2.png
│ │ ├── post
│ │ ├── jupyter
│ │ │ ├── featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_150x0_resize_lanczos_2.png
│ │ │ └── featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_720x0_resize_lanczos_2.png
│ │ ├── getting-started
│ │ │ ├── featured_hub9ee31969f44a6711206a2baf9f065b4_241861_150x0_resize_q75_lanczos.jpg
│ │ │ └── featured_hub9ee31969f44a6711206a2baf9f065b4_241861_1200x0_resize_q75_lanczos.jpg
│ │ └── writing-technical-content
│ │ │ ├── featured_huc72159e0fc0d14b85f60d34436a630f0_266353_150x0_resize_q75_lanczos.jpg
│ │ │ └── featured_huc72159e0fc0d14b85f60d34436a630f0_266353_2560x2560_fit_q75_lanczos.jpg
│ │ ├── authors
│ │ ├── 吳恩達
│ │ │ └── avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg
│ │ └── admin
│ │ │ └── avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg
│ │ ├── event
│ │ └── example
│ │ │ ├── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_150x0_resize_q75_lanczos.jpg
│ │ │ └── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_720x0_resize_q75_lanczos.jpg
│ │ ├── courses
│ │ └── example
│ │ │ ├── featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_1200x1200_fit_q75_lanczos.jpg
│ │ │ ├── featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_a1cd7731d90ffc91b37c0af3081d00b6.jpg
│ │ │ └── featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_f33984f4a1c4cb67b249fda35b37581e.jpg
│ │ ├── publication
│ │ ├── preprint
│ │ │ ├── featured_hu559a5add5185b02575aa8333502ab2cc_220813_150x0_resize_q75_lanczos.jpg
│ │ │ └── featured_hu559a5add5185b02575aa8333502ab2cc_220813_720x0_resize_q75_lanczos.jpg
│ │ ├── journal-article
│ │ │ └── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_214168_720x0_resize_q75_lanczos.jpg
│ │ └── conference-paper
│ │ │ ├── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_150x0_resize_q75_lanczos.jpg
│ │ │ ├── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_720x0_resize_q75_lanczos.jpg
│ │ │ └── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_808x455_fill_q75_lanczos_smart1.jpg
│ │ └── project
│ │ ├── external-project
│ │ ├── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_150x0_resize_q75_lanczos.jpg
│ │ └── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_720x0_resize_q75_lanczos.jpg
│ │ └── internal-project
│ │ ├── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_150x0_resize_q75_lanczos.jpg
│ │ └── featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_720x0_resize_q75_lanczos.jpg
├── layouts
│ └── partials
│ │ └── custom_js.html
├── go.mod
├── go.sum
├── netlify.toml
└── config
│ └── _default
│ ├── languages.yaml
│ ├── menus.yaml
│ ├── config.yaml
│ └── params.yaml
├── view.sh
├── .gitignore
├── content
├── authors
│ ├── admin
│ │ ├── avatar.png
│ │ └── _index.md
│ └── _index.md
├── python
│ ├── 04_Solow
│ │ ├── Fig_01.png
│ │ ├── Fig_02.png
│ │ ├── Fig_03.png
│ │ ├── Fig_04.png
│ │ ├── Fig_05.png
│ │ ├── Fig_06.png
│ │ ├── Fig_07.png
│ │ ├── Fig_08.png
│ │ ├── Fig_09.png
│ │ ├── Fig_10.png
│ │ ├── Fig_11.png
│ │ ├── Fig_12.png
│ │ ├── Fig_13.png
│ │ ├── Fig_14.png
│ │ └── 5Fig_14.png
│ ├── 06_Ramsey
│ │ ├── Fig_01.png
│ │ ├── Fig_02.png
│ │ └── Fig_03.png
│ ├── 05_RD-Model
│ │ ├── Fig_01.png
│ │ └── Fig_02.png
│ ├── 02_IS-LM-Model
│ │ ├── Fig_01.png
│ │ ├── Fig_02.png
│ │ ├── Fig_03.png
│ │ └── Fig_04.png
│ ├── 03_AD-AS-Model
│ │ ├── Fig_01.png
│ │ ├── Fig_02.png
│ │ └── Fig_03.png
│ ├── 01_The-labor-market
│ │ ├── Fig_01.png
│ │ ├── Fig_02.png
│ │ ├── Fig_03.png
│ │ └── Fig_04.png
│ └── _index.md
├── admin
│ └── index.md
├── home
│ ├── index.md
│ ├── projects.md
│ ├── skills.md
│ ├── contents.md
│ ├── about.md
│ ├── other projects.md
│ └── demo.md
├── terms.md
├── privacy.md
└── useful_links
│ └── index.md
├── go.mod
├── academic.Rproj
├── .editorconfig
├── go.sum
├── .github
└── FUNDING.yml
├── config
└── _default
│ ├── menus.yaml
│ ├── languages.yaml
│ ├── config.yaml
│ └── params.yaml
├── layouts
├── shortcodes
│ └── bokeh.html
└── partials
│ └── custom_head.html
├── netlify.toml
├── README.md
├── LICENSE.md
├── theme.toml
├── scripts
└── init_kickstart.sh
└── update_wowchemy.sh
/data/fonts/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/themes/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/static/uploads/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/media/icon-pack/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/exampleSite/assets/media/icon-pack/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/view.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | hugo server --disableFastRender --i18n-warnings
4 |
--------------------------------------------------------------------------------
/assets/media/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/assets/media/icon.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # IDEs
2 | .idea/
3 |
4 | # Hugo
5 | /resources/
6 | public/
7 | jsconfig.json
8 | node_modules/
9 |
--------------------------------------------------------------------------------
/assets/media/hub_econ.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/assets/media/hub_econ.png
--------------------------------------------------------------------------------
/content/authors/admin/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/authors/admin/avatar.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_01.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_02.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_03.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_04.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_05.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_06.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_06.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_07.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_07.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_08.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_08.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_09.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_10.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_11.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_12.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_13.png
--------------------------------------------------------------------------------
/content/python/04_Solow/Fig_14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/Fig_14.png
--------------------------------------------------------------------------------
/content/admin/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Generate Wowchemy CMS
3 | type: wowchemycms
4 | outputs:
5 | - wowchemycms_config
6 | - HTML
7 | ---
8 |
--------------------------------------------------------------------------------
/content/python/04_Solow/5Fig_14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/04_Solow/5Fig_14.png
--------------------------------------------------------------------------------
/content/python/06_Ramsey/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/06_Ramsey/Fig_01.png
--------------------------------------------------------------------------------
/content/python/06_Ramsey/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/06_Ramsey/Fig_02.png
--------------------------------------------------------------------------------
/content/python/06_Ramsey/Fig_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/06_Ramsey/Fig_03.png
--------------------------------------------------------------------------------
/exampleSite/static/media/boards.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/static/media/boards.jpg
--------------------------------------------------------------------------------
/content/python/05_RD-Model/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/05_RD-Model/Fig_01.png
--------------------------------------------------------------------------------
/content/python/05_RD-Model/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/05_RD-Model/Fig_02.png
--------------------------------------------------------------------------------
/exampleSite/assets/media/open-book.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/assets/media/open-book.jpg
--------------------------------------------------------------------------------
/content/python/02_IS-LM-Model/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/02_IS-LM-Model/Fig_01.png
--------------------------------------------------------------------------------
/content/python/02_IS-LM-Model/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/02_IS-LM-Model/Fig_02.png
--------------------------------------------------------------------------------
/content/python/02_IS-LM-Model/Fig_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/02_IS-LM-Model/Fig_03.png
--------------------------------------------------------------------------------
/content/python/02_IS-LM-Model/Fig_04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/02_IS-LM-Model/Fig_04.png
--------------------------------------------------------------------------------
/content/python/03_AD-AS-Model/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/03_AD-AS-Model/Fig_01.png
--------------------------------------------------------------------------------
/content/python/03_AD-AS-Model/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/03_AD-AS-Model/Fig_02.png
--------------------------------------------------------------------------------
/content/python/03_AD-AS-Model/Fig_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/03_AD-AS-Model/Fig_03.png
--------------------------------------------------------------------------------
/exampleSite/static/media/demo_resume.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/static/media/demo_resume.pdf
--------------------------------------------------------------------------------
/exampleSite/content/admin/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Generate Wowchemy CMS
3 | type: wowchemycms
4 | outputs:
5 | - wowchemycms_config
6 | - HTML
7 | ---
8 |
--------------------------------------------------------------------------------
/exampleSite/content/authors/admin/avatar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/authors/admin/avatar.jpg
--------------------------------------------------------------------------------
/exampleSite/content/authors/吳恩達/avatar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/authors/吳恩達/avatar.jpg
--------------------------------------------------------------------------------
/exampleSite/content/home/hero-academic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/hero-academic.png
--------------------------------------------------------------------------------
/content/home/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Homepage
3 | type: widget_page
4 |
5 | # Homepage is headless, other widget pages are not.
6 | headless: true
7 | ---
8 |
--------------------------------------------------------------------------------
/content/python/01_The-labor-market/Fig_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/01_The-labor-market/Fig_01.png
--------------------------------------------------------------------------------
/content/python/01_The-labor-market/Fig_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/01_The-labor-market/Fig_02.png
--------------------------------------------------------------------------------
/content/python/01_The-labor-market/Fig_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/01_The-labor-market/Fig_03.png
--------------------------------------------------------------------------------
/content/python/01_The-labor-market/Fig_04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/content/python/01_The-labor-market/Fig_04.png
--------------------------------------------------------------------------------
/exampleSite/content/event/example/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/event/example/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/post/jupyter/featured.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/post/jupyter/featured.png
--------------------------------------------------------------------------------
/exampleSite/content/post/jupyter/index_1_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/post/jupyter/index_1_0.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/assets/scss/scss/main.scss_ad7c01202310d8f56313e4e954344ccc.json:
--------------------------------------------------------------------------------
1 | {"Target":"css/wowchemy.min.css","MediaType":"text/css","Data":{}}
--------------------------------------------------------------------------------
/exampleSite/content/courses/example/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/courses/example/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/static/media/headers/bubbles-wide.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/static/media/headers/bubbles-wide.jpg
--------------------------------------------------------------------------------
/exampleSite/content/home/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Homepage
3 | type: widget_page
4 |
5 | # Homepage is headless, other widget pages are not.
6 | headless: true
7 | ---
8 |
--------------------------------------------------------------------------------
/exampleSite/content/post/getting-started/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/post/getting-started/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/publication/preprint/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/publication/preprint/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-1950s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-1950s.png
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-dark.png
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-ocean.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-ocean.png
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-apogee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-apogee.png
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-default.png
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-forest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-forest.png
--------------------------------------------------------------------------------
/exampleSite/content/project/external-project/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/project/external-project/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/project/internal-project/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/project/internal-project/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/layouts/partials/custom_js.html:
--------------------------------------------------------------------------------
1 | {{ if eq hugo.Environment "production" }}
2 |
3 | {{end}}
4 |
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-strawberry.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-strawberry.png
--------------------------------------------------------------------------------
/exampleSite/content/publication/conference-paper/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/publication/conference-paper/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/publication/journal-article/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/publication/journal-article/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/courses/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Courses
3 | type: page
4 |
5 | header:
6 | caption: ""
7 | image: ""
8 | ---
9 |
10 | I teach the following courses:
11 |
--------------------------------------------------------------------------------
/exampleSite/content/post/writing-technical-content/featured.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/post/writing-technical-content/featured.jpg
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/gallery/theme-coffee-playfair.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/content/home/gallery/gallery/theme-coffee-playfair.png
--------------------------------------------------------------------------------
/content/python/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Examples"
3 | type: book # Do not modify.
4 | ---
5 |
6 | ---
7 |
8 | ## The Labor Market
9 | ## The IS-LM Model
10 | ## The AD-AS Model
11 | ## The Solow Model
12 | ## The R&D Model
13 | ## Simple Ramsey Model
--------------------------------------------------------------------------------
/content/authors/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | cms_exclude: true
3 |
4 | # To publish author profile pages, remove all of the `_build` and `cascade` settings below.
5 | _build:
6 | render: never
7 | cascade:
8 | _build:
9 | render: never
10 | list: always
11 | ---
12 |
--------------------------------------------------------------------------------
/exampleSite/content/publication/journal-article/cite.bib:
--------------------------------------------------------------------------------
1 | @article{example2,
2 | title = {An example journal article},
3 | author={Bighetti, Nelson and Ford, Robert},
4 | journal = {Journal of Source Themes},
5 | year = 2015,
6 | volume = 1,
7 | number = 1
8 | }
9 |
--------------------------------------------------------------------------------
/exampleSite/content/publication/conference-paper/cite.bib:
--------------------------------------------------------------------------------
1 | @inproceedings{example1,
2 | title={An example conference paper},
3 | author={Bighetti, Nelson and Ford, Robert},
4 | booktitle={Source Themes Conference},
5 | pages={1--6},
6 | year={2013},
7 | organization={IEEE}
8 | }
9 |
--------------------------------------------------------------------------------
/exampleSite/content/event/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Recent & Upcoming Talks
3 |
4 | # View.
5 | # 1 = List
6 | # 2 = Compact
7 | # 3 = Card
8 | view: 2
9 |
10 | # Optional header image (relative to `static/media/` folder).
11 | header:
12 | caption: ""
13 | image: ""
14 | ---
15 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_400x0_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_400x0_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_800x0_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_800x0_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_180x180_fill_lanczos_center_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_180x180_fill_lanczos_center_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_192x192_fill_lanczos_center_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_192x192_fill_lanczos_center_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_32x32_fill_lanczos_center_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_32x32_fill_lanczos_center_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_512x512_fill_lanczos_center_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_512x512_fill_lanczos_center_2.png
--------------------------------------------------------------------------------
/exampleSite/content/post/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Posts
3 | cms_exclude: true
4 |
5 | # View.
6 | # 1 = List
7 | # 2 = Compact
8 | # 3 = Card
9 | view: 2
10 |
11 | # Optional header image (relative to `static/media/` folder).
12 | header:
13 | caption: ""
14 | image: ""
15 | ---
16 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_1200x0_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/hero-academic_huc70d93133c25ab28042d15d1ecec0cb0_7012_1200x0_resize_lanczos_2.png
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/wowchemy/starter-academic
2 |
3 | go 1.15
4 |
5 | require (
6 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd // indirect
7 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd // indirect
8 | )
9 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/jupyter/featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_150x0_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/jupyter/featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_150x0_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/jupyter/featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_720x0_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/jupyter/featured_hub1daa031c2af6888ff37bd93eb033a1a_71549_720x0_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/content/terms.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Terms
3 | date: "2018-06-28T00:00:00+01:00"
4 | draft: true
5 | share: false
6 | commentable: false
7 | editable: false
8 |
9 | # Optional header image (relative to `static/img/` folder).
10 | header:
11 | caption: ""
12 | image: ""
13 | ---
14 |
15 | ...
16 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/authors/吳恩達/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/authors/吳恩達/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/event/example/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/event/example/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/event/example/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/event/example/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_620088_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/authors/admin/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/authors/admin/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q75_lanczos_center.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_1200x1200_fit_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_1200x1200_fit_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/content/privacy.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Privacy Policy
3 | date: "2018-06-28T00:00:00+01:00"
4 | draft: true
5 | share: false
6 | commentable: false
7 | editable: false
8 |
9 | # Optional header image (relative to `static/img/` folder).
10 | header:
11 | caption: ""
12 | image: ""
13 | ---
14 |
15 | ...
16 |
--------------------------------------------------------------------------------
/exampleSite/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/wowchemy/starter-academic/exampleSite
2 |
3 | go 1.15
4 |
5 | require (
6 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd // indirect
7 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd // indirect
8 | )
9 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-1950s_huaf5482f8cea0c5a703a328640e3b7509_21614_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-1950s_huaf5482f8cea0c5a703a328640e3b7509_21614_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-dark_hu1e8601ecc47f58eada7743fdcd709d3d_21456_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-dark_hu1e8601ecc47f58eada7743fdcd709d3d_21456_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-ocean_hu14831ccafc2219f30a7a096fa7617e01_21760_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-ocean_hu14831ccafc2219f30a7a096fa7617e01_21760_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/getting-started/featured_hub9ee31969f44a6711206a2baf9f065b4_241861_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/getting-started/featured_hub9ee31969f44a6711206a2baf9f065b4_241861_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/preprint/featured_hu559a5add5185b02575aa8333502ab2cc_220813_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/preprint/featured_hu559a5add5185b02575aa8333502ab2cc_220813_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/preprint/featured_hu559a5add5185b02575aa8333502ab2cc_220813_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/preprint/featured_hu559a5add5185b02575aa8333502ab2cc_220813_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-apogee_hu4b45d99db97150df01464c393bfd17d4_24119_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-apogee_hu4b45d99db97150df01464c393bfd17d4_24119_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-default_huba6228b7bdf30e2f03f12ea91b2cba0d_21751_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-default_huba6228b7bdf30e2f03f12ea91b2cba0d_21751_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-forest_hu4f093a1c683134431456584193ea41ee_21797_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-forest_hu4f093a1c683134431456584193ea41ee_21797_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/getting-started/featured_hub9ee31969f44a6711206a2baf9f065b4_241861_1200x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/getting-started/featured_hub9ee31969f44a6711206a2baf9f065b4_241861_1200x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/content/publication/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Publications
3 | cms_exclude: true
4 |
5 | # View.
6 | # 1 = List
7 | # 2 = Compact
8 | # 3 = Card
9 | # 4 = Citation
10 | view: 4
11 |
12 | # Optional header image (relative to `static/media/` folder).
13 | header:
14 | caption: ""
15 | image: ""
16 | ---
17 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_a1cd7731d90ffc91b37c0af3081d00b6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_a1cd7731d90ffc91b37c0af3081d00b6.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_f33984f4a1c4cb67b249fda35b37581e.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/courses/example/featured_hu76eaa58daf827988c1005eeac201f4e9_1602413_f33984f4a1c4cb67b249fda35b37581e.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-strawberry_hu36b0b347fcca08bd39e2df22dcedbdfb_39532_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-strawberry_hu36b0b347fcca08bd39e2df22dcedbdfb_39532_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/project/external-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/project/external-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/project/external-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/project/external-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_329522_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/project/internal-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/project/internal-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/project/internal-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/project/internal-project/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_224363_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/journal-article/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_214168_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/journal-article/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_214168_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/academic.Rproj:
--------------------------------------------------------------------------------
1 | Version: 1.0
2 |
3 | RestoreWorkspace: Default
4 | SaveWorkspace: Default
5 | AlwaysSaveHistory: Default
6 |
7 | EnableCodeIndexing: Yes
8 | UseSpacesForTab: Yes
9 | NumSpacesForTab: 2
10 | Encoding: UTF-8
11 |
12 | RnwWeave: Sweave
13 | LaTeX: pdfLaTeX
14 |
15 | AutoAppendNewline: Yes
16 | StripTrailingWhitespace: Yes
17 |
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/home/gallery/gallery/theme-coffee-playfair_hu446a8f670cc5622adcc77b97ba95f6c5_22462_0x190_resize_lanczos_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/home/gallery/gallery/theme-coffee-playfair_hu446a8f670cc5622adcc77b97ba95f6c5_22462_0x190_resize_lanczos_2.png
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/writing-technical-content/featured_huc72159e0fc0d14b85f60d34436a630f0_266353_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/writing-technical-content/featured_huc72159e0fc0d14b85f60d34436a630f0_266353_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_150x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_150x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_720x0_resize_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_720x0_resize_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/post/writing-technical-content/featured_huc72159e0fc0d14b85f60d34436a630f0_266353_2560x2560_fit_q75_lanczos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/post/writing-technical-content/featured_huc72159e0fc0d14b85f60d34436a630f0_266353_2560x2560_fit_q75_lanczos.jpg
--------------------------------------------------------------------------------
/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_808x455_fill_q75_lanczos_smart1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ncachanosky/Macro-with-Python/HEAD/exampleSite/resources/_gen/images/publication/conference-paper/featured_hu3d03a01dcc18bc5be0e67db3d8d209a6_312700_808x455_fill_q75_lanczos_smart1.jpg
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | charset = utf-8
7 | end_of_line = lf
8 | indent_size = 2
9 | indent_style = space
10 | insert_final_newline = true
11 | trim_trailing_whitespace = true
12 |
13 | [*.toml]
14 | max_line_length = 100
15 |
16 | [*.md]
17 | trim_trailing_whitespace = false
18 |
19 | [layouts/shortcodes/*.html]
20 | insert_final_newline = false
21 |
--------------------------------------------------------------------------------
/content/terms.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Terms
3 | date: "2018-06-28T00:00:00+01:00"
4 | draft: true
5 | share: false
6 | commentable: false
7 | editable: false
8 |
9 | # Optional header image (relative to `static/media/` folder).
10 | header:
11 | caption: ""
12 | image: ""
13 | ---
14 |
15 | Add your terms here and set `draft: false` to publish it. Otherwise, delete this file if you don't need it.
16 |
--------------------------------------------------------------------------------
/content/privacy.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Privacy Policy
3 | date: "2018-06-28T00:00:00+01:00"
4 | draft: true
5 | share: false
6 | commentable: false
7 | editable: false
8 |
9 | # Optional header image (relative to `static/media/` folder).
10 | header:
11 | caption: ""
12 | image: ""
13 | ---
14 |
15 | Add your privacy policy here and set `draft: false` to publish it. Otherwise, delete this file if you don't need it.
16 |
--------------------------------------------------------------------------------
/data/themes/my_theme.toml:
--------------------------------------------------------------------------------
1 | # Theme metadata
2 | name = "my_theme"
3 |
4 | # Is theme light or dark?
5 | light = true
6 |
7 | # Primary
8 | primary = "#800000"
9 |
10 | # Menu
11 | menu_primary = "#800000" # 500
12 | menu_text = "#fff"
13 | menu_text_active = "#969696" # A100
14 | menu_title = "#fff"
15 |
16 | # Home sections
17 | home_section_odd = "rgb(255, 255, 255)"
18 | home_section_even = "rgb(247, 247, 247)"
19 |
--------------------------------------------------------------------------------
/exampleSite/content/home/gallery/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Blank widget with a Gallery page element.
3 | # Documentation: https://wowchemy.com/docs/getting-started/page-builder/
4 | widget: blank
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 66
11 |
12 | title: Gallery
13 | subtitle:
14 | ---
15 |
16 | {{< gallery >}}
17 |
--------------------------------------------------------------------------------
/exampleSite/content/project/external-project/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: External Project
3 | summary: An example of linking directly to an external project website using `external_link`.
4 | tags:
5 | - Demo
6 | date: "2016-04-27T00:00:00Z"
7 |
8 | # Optional external URL for project (replaces project detail page).
9 | external_link: http://example.org
10 |
11 | image:
12 | caption: Photo by Toa Heftiba on Unsplash
13 | focal_point: Smart
14 | ---
15 |
--------------------------------------------------------------------------------
/go.sum:
--------------------------------------------------------------------------------
1 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd h1:2yqS9DTTbmVN1TP07kSgpYSDampY5FiiEnxbq/fp7+o=
2 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
3 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd h1:CQs5L0cPE/o5btP5O7gIuXs1M+rvAs5WQ8Xi5gbZXQM=
4 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw=
5 |
--------------------------------------------------------------------------------
/exampleSite/go.sum:
--------------------------------------------------------------------------------
1 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd h1:2yqS9DTTbmVN1TP07kSgpYSDampY5FiiEnxbq/fp7+o=
2 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210322004751-17505c4581cd/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
3 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd h1:CQs5L0cPE/o5btP5O7gIuXs1M+rvAs5WQ8Xi5gbZXQM=
4 | github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210322004751-17505c4581cd/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw=
5 |
--------------------------------------------------------------------------------
/exampleSite/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | command = "hugo --gc --minify -b $URL"
3 | publish = "public"
4 |
5 | [build.environment]
6 | HUGO_VERSION = "0.81.0"
7 | HUGO_ENABLEGITINFO = "true"
8 |
9 | [context.production.environment]
10 | HUGO_ENV = "production"
11 |
12 | [context.deploy-preview]
13 | command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
14 |
15 | [context.branch-deploy]
16 | command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
17 |
18 | [[plugins]]
19 | package = "netlify-plugin-hugo-cache-resources"
20 | [plugins.inputs]
21 | debug = true
22 |
--------------------------------------------------------------------------------
/exampleSite/content/home/about.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the About widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: about
5 |
6 | # Activate this widget? true/false
7 | active: true
8 |
9 | # This file represents a page section.
10 | headless: true
11 |
12 | # Order that this section appears on the page.
13 | weight: 20
14 |
15 | title: Biography
16 |
17 | # Choose the user profile to display
18 | # This should be the username (folder name) of a profile in your `content/authors/` folder.
19 | # See https://wowchemy.com/docs/get-started/#introduce-yourself
20 | author: admin
21 | ---
22 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: ncachanosky
4 | # patreon: #
5 | # open_collective: # Replace with a single Open Collective username
6 | # ko_fi: # Replace with a single Ko-fi username
7 | # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | # liberapay: # Replace with a single Liberapay username
10 | # issuehunt: # Replace with a single IssueHunt username
11 | # otechie: # Replace with a single Otechie username
12 | # custom: https://paypal.me/ncachanosky
13 |
--------------------------------------------------------------------------------
/config/_default/menus.yaml:
--------------------------------------------------------------------------------
1 | # Navigation Links
2 | # To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
3 | # desired widget in your `content/home/` folder.
4 | # The weight parameter defines the order that the links will appear in.
5 |
6 | main:
7 | - name: Python examples
8 | url: 'python/'
9 | weight: 10
10 | - name: Useful links
11 | url: 'useful_links/'
12 | weight: 20
13 | # - name: Fuentes Privadas
14 | # url: 'fuentes_privadas/'
15 | # weight: 30
16 | # - name: Fuentes Internacionales
17 | # url: 'fuentes_internacionales/'
18 | # weight: 40
19 |
20 |
21 |
--------------------------------------------------------------------------------
/layouts/shortcodes/bokeh.html:
--------------------------------------------------------------------------------
1 | {{- with .Get 0 -}}
2 | {{- $path := . -}}
3 | {{- $id := anchorize . -}}
4 | {{- with $.Page.Resources.GetMatch $path -}}
5 | {{- $json := .Content | safeJS -}}
6 |
7 |
11 |
12 | {{- else -}}
13 | {{- errorf "The %s shortcode was unable to find %s. See %s" $.Name $path $.Position -}}
14 | {{- end -}}
15 | {{- else -}}
16 | {{- errorf "The %s shortcode requires a single positional parameter. See %s" $.Name $.Position -}}
17 | {{- end -}}
18 |
19 |
--------------------------------------------------------------------------------
/exampleSite/content/home/tags.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Tag Cloud widget.
3 | # Docs: https://wowchemy.com/docs/page-builder/
4 | widget: tag_cloud
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 120
11 |
12 | title: Popular Topics
13 | subtitle: ''
14 |
15 | content:
16 | # Choose the taxonomy from `config.toml` to display (e.g. tags, categories)
17 | taxonomy: tags
18 | # Choose how many tags you would like to display (0 = all tags)
19 | count: 20
20 | design:
21 | # Minimum and maximum font sizes (1.0 = 100%).
22 | font_size_min: 0.7
23 | font_size_max: 2.0
24 | ---
25 |
--------------------------------------------------------------------------------
/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | command = "hugo --gc --minify -b $URL"
3 | publish = "public"
4 |
5 | [build.environment]
6 | HUGO_VERSION = "0.81.0"
7 | HUGO_ENABLEGITINFO = "true"
8 |
9 | [context.production.environment]
10 | HUGO_ENV = "production"
11 |
12 | [context.deploy-preview]
13 | command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
14 |
15 | [context.branch-deploy]
16 | command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
17 |
18 | [[plugins]]
19 | package = "netlify-plugin-hugo-cache-resources"
20 | [plugins.inputs]
21 | debug = true
22 |
23 | [[redirects]]
24 | from = "/arc-sw.js"
25 | to = "https://arc.io/arc-sw.js"
26 | status = 200
27 | force = true
--------------------------------------------------------------------------------
/config/_default/languages.yaml:
--------------------------------------------------------------------------------
1 | # Languages
2 | # Create a section for each of your site's languages.
3 | # Documentation: https://wowchemy.com/docs/guide/language/
4 |
5 | # Default language
6 | en:
7 | languageCode: en-us
8 | # Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
9 | #contentDir: content/en
10 |
11 | # Uncomment the lines below to configure your website in a second language.
12 | #zh:
13 | # languageCode: zh-Hans
14 | # contentDir: content/zh
15 | # title: Chinese website title...
16 | # params:
17 | # description: Site description in Chinese...
18 | # menu:
19 | # main:
20 | # - name: 传
21 | # url: '#about'
22 | # weight: 1
23 |
--------------------------------------------------------------------------------
/exampleSite/content/home/contact.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Contact widget.
3 | # Documentation: https://sourcethemes.com/academic/docs/page-builder/
4 | widget: contact
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 130
11 |
12 | title: Contact
13 | subtitle:
14 |
15 | content:
16 | # Automatically link email and phone or display as text?
17 | autolink: true
18 |
19 | # Email form provider
20 | form:
21 | provider: formspree
22 | formspree:
23 | id: test
24 | netlify:
25 | # Enable CAPTCHA challenge to reduce spam?
26 | captcha: false
27 |
28 | design:
29 | columns: '2'
30 | ---
31 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/languages.yaml:
--------------------------------------------------------------------------------
1 | # Languages
2 | # Create a section for each of your site's languages.
3 | # Documentation: https://wowchemy.com/docs/guide/language/
4 |
5 | # Default language
6 | en:
7 | languageCode: en-us
8 | # Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
9 | #contentDir: content/en
10 |
11 | # Uncomment the lines below to configure your website in a second language.
12 | #zh:
13 | # languageCode: zh-Hans
14 | # contentDir: content/zh
15 | # title: Chinese website title...
16 | # params:
17 | # description: Site description in Chinese...
18 | # menu:
19 | # main:
20 | # - name: 传
21 | # url: '#about'
22 | # weight: 1
23 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.yaml:
--------------------------------------------------------------------------------
1 | # Navigation Links
2 | # To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
3 | # desired widget in your `content/home/` folder.
4 | # The weight parameter defines the order that the links will appear in.
5 |
6 | main:
7 | - name: Demo
8 | url: '#about'
9 | weight: 10
10 | - name: Posts
11 | url: '#posts'
12 | weight: 20
13 | - name: Projects
14 | url: '#projects'
15 | weight: 30
16 | - name: Talks
17 | url: '#talks'
18 | weight: 40
19 | - name: Publications
20 | url: '#featured'
21 | weight: 50
22 | - name: Courses
23 | url: courses/
24 | weight: 60
25 | - name: Contact
26 | url: '#contact'
27 | weight: 70
28 |
--------------------------------------------------------------------------------
/exampleSite/content/courses/example/visualization.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Visualization
3 | date: '2021-01-01'
4 | type: book
5 | weight: 30
6 | highlight: true
7 | ---
8 |
9 | Learn how to visualize data with Plotly.
10 |
11 |
12 |
13 | {{< icon name="clock" pack="fas" >}} 1-2 hours per week, for 8 weeks
14 |
15 | ## Learn
16 |
17 | {{< youtube hSPmj7mK6ng >}}
18 |
19 | ## Quiz
20 |
21 | {{< spoiler text="When is a heatmap useful?" >}}
22 | Lorem ipsum dolor sit amet, consectetur adipiscing elit.
23 | {{< /spoiler >}}
24 |
25 | {{< spoiler text="Write Plotly code to render a bar chart" >}}
26 | ```python
27 | import plotly.express as px
28 | data_canada = px.data.gapminder().query("country == 'Canada'")
29 | fig = px.bar(data_canada, x='year', y='pop')
30 | fig.show()
31 | ```
32 | {{< /spoiler >}}
33 |
--------------------------------------------------------------------------------
/layouts/partials/custom_head.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/exampleSite/content/courses/example/python.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Python basics
3 | date: '2021-01-01'
4 | type: book
5 | weight: 20
6 | ---
7 |
8 | Build a foundation in Python.
9 |
10 |
11 |
12 | {{< icon name="clock" pack="fas" >}} 1-2 hours per week, for 8 weeks
13 |
14 | ## Learn
15 |
16 | {{< youtube rfscVS0vtbw >}}
17 |
18 | ## Quiz
19 |
20 | {{< spoiler text="What is the difference between lists and tuples?" >}}
21 | Lists
22 |
23 | - Lists are mutable - they can be changed
24 | - Slower than tuples
25 | - Syntax: `a_list = [1, 2.0, 'Hello world']`
26 |
27 | Tuples
28 |
29 | - Tuples are immutable - they can't be changed
30 | - Tuples are faster than lists
31 | - Syntax: `a_tuple = (1, 2.0, 'Hello world')`
32 | {{< /spoiler >}}
33 |
34 | {{< spoiler text="Is Python case-sensitive?" >}}
35 | Yes
36 | {{< /spoiler >}}
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://app.netlify.com/sites/macro-with-python/deploys)
2 |
3 | # Macro with Python
4 |
5 | Website: https://macro-with-python.netlify.app/
6 |
7 | ---
8 |
9 | A collection of macroeconomic examples used to learn how to use Python for economics.
10 |
11 | Macroeconomic models and examples include (so far):
12 |
13 | 1. The labor market
14 | 2. The IS-LM model
15 | 3. The AD-AS model
16 | 4. The Solow model
17 | 5. The R&D growth model
18 | 6. A simple Ramsey model
19 |
20 | ---
21 |
22 | The project's website is build with [Wowchemy](https://wowchemy.com) for [Hugo](https://gohugo.io/) and deployed with [Netlify](https://www.netlify.com/).
23 |
24 | The [Python](https://www.python.org/) codes can be found in `static/Python/'
--------------------------------------------------------------------------------
/exampleSite/content/courses/example/stats.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Statistics
3 | date: '2021-01-01'
4 | type: book
5 | weight: 40
6 | math: true
7 | ---
8 |
9 | Introduction to statistics for data science.
10 |
11 |
12 |
13 | {{< icon name="clock" pack="fas" >}} 1-2 hours per week, for 8 weeks
14 |
15 | ## Learn
16 |
17 | The general form of the **normal** probability density function is:
18 |
19 | $$
20 | f(x) = \frac{1}{\sigma \sqrt{2\pi} } e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}
21 | $$
22 |
23 | {{< callout note >}}
24 | The parameter $\mu$ is the mean or expectation of the distribution.
25 | $\sigma$ is its standard deviation.
26 | The variance of the distribution is $\sigma^{2}$.
27 | {{< /callout >}}
28 |
29 | ## Quiz
30 |
31 | {{< spoiler text="What is the parameter $\mu$?" >}}
32 | The parameter $\mu$ is the mean or expectation of the distribution.
33 | {{< /spoiler >}}
34 |
--------------------------------------------------------------------------------
/exampleSite/content/home/featured.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Featured widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: featured
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 80
11 |
12 | title: Featured Publications
13 | subtitle: ""
14 |
15 | content:
16 | # Page type to display. E.g. post, talk, publication...
17 | page_type: publication
18 | # Choose how many pages you would like to display (0 = all pages)
19 | count: 0
20 | # Filter on criteria
21 | filters:
22 | author: ""
23 | category: ""
24 | publication_type: ""
25 | tag: ""
26 | # Page order: descending (desc) or ascending (asc) date.
27 | order: desc
28 |
29 | design:
30 | # Choose a view for the listings:
31 | # 1 = List
32 | # 2 = Compact
33 | # 3 = Card
34 | # 4 = Citation (publication only)
35 | view: 3
36 | ---
37 |
--------------------------------------------------------------------------------
/exampleSite/content/home/posts.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Pages widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: pages
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 60
11 |
12 | title: Recent Posts
13 | subtitle:
14 |
15 | content:
16 | # Page type to display. E.g. post, talk, publication...
17 | page_type: post
18 | # Choose how many pages you would like to display (0 = all pages)
19 | count: 5
20 | # Filter on criteria
21 | filters:
22 | author: ""
23 | category: ""
24 | tag: ""
25 | exclude_featured: false
26 | exclude_future: false
27 | exclude_past: false
28 | publication_type: ""
29 | # Choose how many pages you would like to offset by
30 | offset: 0
31 | # Page order: descending (desc) or ascending (asc) date.
32 | order: desc
33 |
34 | design:
35 | # Choose a view for the listings:
36 | # 1 = List
37 | # 2 = Compact
38 | # 3 = Card
39 | # 4 = Citation (publication only)
40 | view: 2
41 | ---
42 |
--------------------------------------------------------------------------------
/exampleSite/content/home/talks.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Pages widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: pages
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 70
11 |
12 | title: 'Recent & Upcoming Talks'
13 | subtitle:
14 |
15 | content:
16 | # Page type to display. E.g. post, event, publication...
17 | page_type: event
18 | # Choose how many pages you would like to display (0 = all pages)
19 | count: 5
20 | # Filter on criteria
21 | filters:
22 | author: ""
23 | category: ""
24 | tag: ""
25 | exclude_featured: false
26 | exclude_future: false
27 | exclude_past: false
28 | publication_type: ""
29 | # Choose how many pages you would like to offset by
30 | offset: 0
31 | # Page order: descending (desc) or ascending (asc) date.
32 | order: desc
33 |
34 | design:
35 | # Choose a view for the listings:
36 | # 1 = List
37 | # 2 = Compact
38 | # 3 = Card
39 | # 4 = Citation (publication only)
40 | view: 2
41 | ---
42 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016-present George Cushen
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/exampleSite/content/home/publications.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Pages widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: pages
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 90
11 |
12 | title: Recent Publications
13 | subtitle: ''
14 |
15 | content:
16 | # Page type to display. E.g. post, talk, publication...
17 | page_type: publication
18 | # Choose how much pages you would like to display (0 = all pages)
19 | count: 5
20 | # Choose how many pages you would like to offset by
21 | offset: 0
22 | # Page order: descending (desc) or ascending (asc) date.
23 | order: desc
24 | # Filter on criteria
25 | filters:
26 | tag: ''
27 | category: ''
28 | publication_type: ''
29 | author: ''
30 | exclude_featured: true
31 | design:
32 | # Choose a view for the listings:
33 | # 1 = List
34 | # 2 = Compact
35 | # 3 = Card
36 | # 4 = Citation (publication only)
37 | view: 4
38 | ---
39 |
40 | {{% callout note %}}
41 | Quickly discover relevant content by [filtering publications](./publication/).
42 | {{% /callout %}}
43 |
--------------------------------------------------------------------------------
/content/useful_links/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Useful links
3 |
4 | # Optional header image (relative to `static/img/` folder).
5 | header:
6 | caption: ""
7 | image: ""
8 | ---
9 |
10 | # Useful links
11 |
12 | ## Where to get Python?
13 |
14 | Probably the most user-friendly way to get [Python](https://www.python.org/) is through [Anaconda](https://anaconda.org/), an environment that allows to easily download and update Python packages and extensions.
15 |
16 | In addition to its applications, [Anaconda](https://anaconda.org/) also includes instructional videos and documents.
17 |
18 | ## Where to write Python code?
19 |
20 | [Anaconda](https://anaconda.org/) comes with [Spyder](https://www.spyder-ide.org/) and other options to code. Another popular tool is [JupyterLab notebooks](https://jupyter.org/). If you are familiar with R, Anaconda also comes with [RStudio](https://rstudio.com/).
21 |
22 | ### Links
23 | * [Anaconda](https://anaconda.org/)
24 | * [JupyterLab](https://jupyter.org/)
25 | * [Markdown](https://daringfireball.net/projects/markdown/)
26 | * [NumPy](https://numpy.org/)
27 | * [Python](https://www.python.org/)
28 | * [QuantEcon](https://quantecon.org/)
29 | * [Spyder](https://www.spyder-ide.org/)
--------------------------------------------------------------------------------
/assets/media/icon-pack/numpy.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/exampleSite/content/home/skills.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Featurette widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: featurette
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 30
11 |
12 | title: Skills
13 | subtitle:
14 |
15 | # Showcase personal skills or business features.
16 | # - Add/remove as many `feature` blocks below as you like.
17 | # - For available icons, see: https://wowchemy.com/docs/page-builder/#icons
18 | feature:
19 | - description: 90%
20 | icon: r-project
21 | icon_pack: fab
22 | name: R
23 | - description: 100%
24 | icon: chart-line
25 | icon_pack: fas
26 | name: Statistics
27 | - description: 10%
28 | icon: camera-retro
29 | icon_pack: fas
30 | name: Photography
31 |
32 | # Uncomment to use emoji icons.
33 | #- icon = ":smile:"
34 | # icon_pack = "emoji"
35 | # name = "Emojiness"
36 | # description = "100%"
37 |
38 | # Uncomment to use custom SVG icons.
39 | # Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
40 | # Reference the SVG icon name (without `.svg` extension) in the `icon` field.
41 | #- icon = "your-custom-icon-name"
42 | # icon_pack = "custom"
43 | # name = "Surfing"
44 | # description = "90%"
45 | ---
46 |
--------------------------------------------------------------------------------
/exampleSite/content/home/hero.md:
--------------------------------------------------------------------------------
1 | ---
2 | widget: hero
3 | headless: true
4 | weight: 10
5 | title: Hugo Academic Starter
6 | hero_media: hero-academic.png
7 | cta:
8 | label: '**Get Started**'
9 | url: https://wowchemy.com/templates/
10 | cta_alt:
11 | label: Ask a question
12 | url: https://discord.gg/z8wNYzb
13 | cta_note:
14 | label: >-
15 | Latest release
16 | design:
17 | background:
18 | gradient_end: '#1976d2'
19 | gradient_start: '#004ba0'
20 | text_color_light: true
21 | advanced:
22 | css_class: fullscreen
23 | ---
24 |
25 | **The FREE, Hugo-based open source website builder and template trusted by 500,000+ sites.**
26 |
27 | **Build anything with widgets** - from landing pages, knowledge bases, and courses to academic resumés, conferences, and tech blogs.
28 |
--------------------------------------------------------------------------------
/exampleSite/content/home/experience.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Experience widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: experience
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 40
11 |
12 | title: Experience
13 | subtitle:
14 |
15 | # Date format for experience
16 | # Refer to https://wowchemy.com/docs/customization/#date-format
17 | date_format: Jan 2006
18 |
19 | # Experiences.
20 | # Add/remove as many `experience` items below as you like.
21 | # Required fields are `title`, `company`, and `date_start`.
22 | # Leave `date_end` empty if it's your current employer.
23 | # Begin multi-line descriptions with YAML's `|2-` multi-line prefix.
24 | experience:
25 | - title: CEO
26 | company: GenCoin
27 | company_url: ''
28 | location: California
29 | date_start: '2017-01-01'
30 | date_end: ''
31 | description: |2-
32 | Responsibilities include:
33 |
34 | * Analysing
35 | * Modelling
36 | * Deploying
37 |
38 | - title: Professor
39 | company: University X
40 | company_url: ''
41 | location: California
42 | date_start: '2016-01-01'
43 | date_end: '2016-12-31'
44 | description: Taught electronic engineering and researched semiconductor physics.
45 | ---
46 |
--------------------------------------------------------------------------------
/exampleSite/content/home/projects.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Portfolio widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: portfolio
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 65
11 |
12 | title: Projects
13 | subtitle: ''
14 |
15 | content:
16 | # Page type to display. E.g. project.
17 | page_type: project
18 |
19 | # Default filter index (e.g. 0 corresponds to the first `filter_button` instance below).
20 | filter_default: 0
21 |
22 | # Filter toolbar (optional).
23 | # Add or remove as many filters (`filter_button` instances) as you like.
24 | # To show all items, set `tag` to "*".
25 | # To filter by a specific tag, set `tag` to an existing tag name.
26 | # To remove the toolbar, delete the entire `filter_button` block.
27 | filter_button:
28 | - name: All
29 | tag: '*'
30 | - name: Deep Learning
31 | tag: Deep Learning
32 | - name: Other
33 | tag: Demo
34 |
35 | design:
36 | # Choose how many columns the section has. Valid values: '1' or '2'.
37 | columns: '2'
38 |
39 | # Toggle between the various page layout types.
40 | # 1 = List
41 | # 2 = Compact
42 | # 3 = Card
43 | # 5 = Showcase
44 | view: 2
45 |
46 | # For Showcase view, flip alternate rows?
47 | flip_alt_rows: false
48 | ---
49 |
--------------------------------------------------------------------------------
/content/home/projects.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Portfolio widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: portfolio
5 | active: false
6 |
7 | # This file represents a page section.
8 | headless: true
9 |
10 | # Order that this section appears on the page.
11 | weight: 65
12 |
13 | title: Other projects
14 | subtitle: ''
15 |
16 | content:
17 | # Page type to display. E.g. project.
18 | page_type: project
19 |
20 | # Default filter index (e.g. 0 corresponds to the first `filter_button` instance below).
21 | filter_default: 0
22 |
23 | # Filter toolbar (optional).
24 | # Add or remove as many filters (`filter_button` instances) as you like.
25 | # To show all items, set `tag` to "*".
26 | # To filter by a specific tag, set `tag` to an existing tag name.
27 | # To remove the toolbar, delete the entire `filter_button` block.
28 | filter_button:
29 | - name: All
30 | tag: '*'
31 | - name: Deep Learning
32 | tag: Deep Learning
33 | - name: Other
34 | tag: Demo
35 |
36 | design:
37 | # Choose how many columns the section has. Valid values: '1' or '2'.
38 | columns: '2'
39 |
40 | # Toggle between the various page layout types.
41 | # 1 = List
42 | # 2 = Compact
43 | # 3 = Card
44 | # 5 = Showcase
45 | view: 2
46 |
47 | # For Showcase view, flip alternate rows?
48 | flip_alt_rows: false
49 | ---
50 |
--------------------------------------------------------------------------------
/exampleSite/content/courses/example/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 📊 Learn Data Science
3 | linkTitle: Data Science
4 | summary: An example of using Wowchemy's Book layout for publishing online courses.
5 | date: '2021-01-24'
6 | type: book
7 | ---
8 |
9 | {{< figure src="featured.jpg" >}}
10 |
11 | {{< toc hide_on="xl" >}}
12 |
13 | ## What you will learn
14 |
15 | - Fundamental {{}}Python programming skills{{}}
16 | - {{}}Statistical concepts{{}} and how to apply them in practice
17 | - Gain experience with the {{}}Scikit{{}}, including data visualization with {{}}Plotly{{}} and data wrangling with {{}}Pandas{{}}
18 |
19 | ## Program overview
20 |
21 | The demand for skilled data science practitioners is rapidly growing. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi.
22 |
23 | ## Courses in this program
24 |
25 | {{< list_children >}}
26 |
27 | ## Meet your instructor
28 |
29 | {{< mention "admin" >}}
30 |
31 | ## FAQs
32 |
33 | {{< spoiler text="Are there prerequisites?" >}}
34 | There are no prerequisites for the first course.
35 | {{< /spoiler >}}
36 |
37 | {{< spoiler text="How often do the courses run?" >}}
38 | Continuously, at your own pace.
39 | {{< /spoiler >}}
40 |
41 | {{< cta cta_text="Begin the course" cta_link="python" >}}
42 |
--------------------------------------------------------------------------------
/exampleSite/content/home/demo.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Blank widget.
3 | # Documentation: https://wowchemy.com/docs/getting-started/page-builder/
4 | widget: blank
5 |
6 | # Activate this widget? true/false
7 | active: true
8 |
9 | # This file represents a page section.
10 | headless: true
11 |
12 | # Order that this section appears on the page.
13 | weight: 15
14 |
15 | title: Hugo Academic Theme Demo
16 | subtitle:
17 |
18 | design:
19 | columns: "1"
20 | background:
21 | image: open-book.jpg
22 | image_darken: 1.0
23 | image_parallax: true
24 | image_position: center
25 | image_size: cover
26 | text_color_light: false
27 | spacing:
28 | padding: ["20px", "0", "20px", "0"]
29 | ---
30 |
31 | Welcome to the demo of the **academic resumé template** for Wowchemy, the Website Builder for Hugo.
32 |
33 | [Explore similar templates](https://wowchemy.com/templates/)
34 |
35 | **Over 500,000 [Amazing Websites](https://wowchemy.com/) have Already Been Built with Wowchemy**
36 |
37 | **[Join](https://wowchemy.com/templates/) the Most Empowered Hugo Community**
38 |
39 | {{% callout note %}}
40 | This homepage section is an example of adding [elements](https://wowchemy.com/docs/content/writing-markdown-latex/) to the [*Blank* widget](https://wowchemy.com/docs/getting-started/page-builder/).
41 |
42 | Backgrounds can be applied to any section. Here, the *background* option is set give an *image parallax* effect.
43 | {{% /callout %}}
44 |
--------------------------------------------------------------------------------
/content/home/skills.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Featurette widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: featurette
5 | active: false
6 |
7 | # This file represents a page section.
8 | headless: true
9 |
10 | # Order that this section appears on the page.
11 | weight: 20
12 |
13 | title: Skills
14 | subtitle:
15 |
16 | # Showcase personal skills or business features.
17 | # - Add/remove as many `feature` blocks below as you like.
18 | # - For available icons, see: https://wowchemy.com/docs/page-builder/#icons
19 | feature:
20 | - description: ""
21 | icon: python
22 | icon_pack: fab
23 | name: Python
24 | - icon: matplotlib
25 | icon_pack: custom
26 | name: Matplotlib
27 | description: ""
28 | - icon: numpy
29 | icon_pack: custom
30 | name: Numpy
31 | description: ""
32 | - icon: SciPy
33 | icon_pack: custom
34 | name: SciPy
35 | description: ""
36 | - icon: SimPy
37 | icon_pack: custom
38 | name: SimPy
39 | description: ""
40 |
41 | # Uncomment to use emoji icons.
42 | #- icon: ":smile:"
43 | # icon_pack: "emoji"
44 | # name: "Emojiness"
45 | # description: "100%"
46 |
47 | # Uncomment to use custom SVG icons.
48 | # Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
49 | # Reference the SVG icon name (without `.svg` extension) in the `icon` field.
50 | #- icon: "your-custom-icon-name"
51 | # icon_pack: "custom"
52 | # name: "Surfing"
53 | # description: "90%"
54 | ---
55 |
--------------------------------------------------------------------------------
/theme.toml:
--------------------------------------------------------------------------------
1 | name = "Academic"
2 | license = "MIT"
3 | licenselink = "https://github.com/wowchemy/starter-academic/blob/master/LICENSE.md"
4 | description = "Use the website builder to personalize your academic resumé with widgets and deploy with one click! Fully customize your site with themes, plugins, and language packs."
5 | homepage = "https://wowchemy.com/templates/"
6 | min_version = "0.78"
7 | tags = ["widgets",
8 | "resume",
9 | "portfolio",
10 | "responsive",
11 | "clean",
12 | "personal",
13 | "company",
14 | "blog",
15 | "minimal",
16 | "light",
17 | "dark",
18 | "multilingual",
19 | "documentation",
20 | "landing page",
21 | "projects",
22 | "single page",
23 | "contact form",
24 | "mobile",
25 | "gallery",
26 | "search",
27 | "presentation",
28 | "simple",
29 | "minimalist",
30 | "starter",
31 | "modern",
32 | "one page",
33 | "customizable",
34 | "technical",
35 | "product",
36 | "slide"
37 | ]
38 | features = ["page builder", "widgets", "themes", "search", "research publication system", "filterable portfolio",
39 | "blog", "create courses", "talks", "events", "slides", "gallery", "contact form"]
40 |
41 | [author]
42 | name = "George Cushen"
43 | homepage = "https://georgecushen.com"
44 |
45 | # If porting an existing theme
46 | [original]
47 | name = ""
48 | homepage = ""
49 | repo = ""
50 |
--------------------------------------------------------------------------------
/scripts/init_kickstart.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # WARNING: this will reset the project to the Kickstart template!
4 |
5 | # Update Academic
6 | cd ..
7 | source update_academic.sh
8 | cd scripts/
9 |
10 | #################################################
11 |
12 | # Install demo config
13 | rsync -av ../themes/academic/exampleSite/config/ ../config/
14 |
15 | # Install Netlify CMS
16 | rsync -av ../themes/academic/exampleSite/static/admin/ ../static/admin/
17 |
18 | # Install demo user
19 | rsync -av ../themes/academic/exampleSite/content/authors/ ../content/authors/
20 |
21 | # Install page sharer button customizer
22 | rsync -av ../themes/academic/data/page_sharer.toml ../data/
23 |
24 | # Install an example instance of each widget type
25 | rsync -av --exclude gallery/ ../themes/academic/exampleSite/content/home/ ../content/home/
26 |
27 | # Install indices
28 | rsync -av ../themes/academic/exampleSite/content/post/_index.md ../content/post/_index.md
29 | rsync -av ../themes/academic/exampleSite/content/publication/_index.md ../content/publication/_index.md
30 | rsync -av ../themes/academic/exampleSite/content/talk/_index.md ../content/talk/_index.md
31 |
32 | # Skip static dir - do not import the demo's media library
33 |
34 | #################################################
35 |
36 | # Post processing
37 |
38 | # Deactivate Hero
39 | sed -i '' -e 's/active = true/active = false/' ../content/home/hero.md
40 |
41 | # Manual Steps:
42 | # - content/home/project.md: Re-comment out project filters
43 | # - content/home/demo.md: Re-modify content & set gradient background instead of image
44 | # - content/home/hero.md: Clear `hero_media` value & set gradient background instead of image
45 |
--------------------------------------------------------------------------------
/exampleSite/content/home/accomplishments.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the Accomplishments widget.
3 | # Documentation: https://sourcethemes.com/academic/docs/page-builder/
4 | widget: accomplishments
5 |
6 | # This file represents a page section.
7 | headless: true
8 |
9 | # Order that this section appears on the page.
10 | weight: 50
11 |
12 | # Note: `` is used to add a 'soft' hyphen in a long heading.
13 | title: 'Accomplishments'
14 | subtitle:
15 |
16 | # Date format
17 | # Refer to https://wowchemy.com/docs/customization/#date-format
18 | date_format: Jan 2006
19 |
20 | # Accomplishments.
21 | # Add/remove as many `item` blocks below as you like.
22 | # `title`, `organization`, and `date_start` are the required parameters.
23 | # Leave other parameters empty if not required.
24 | # Begin multi-line descriptions with YAML's `|2-` multi-line prefix.
25 | item:
26 | - certificate_url: https://www.coursera.org
27 | date_end: ""
28 | date_start: "2018-10-01"
29 | description: ""
30 | organization: Coursera
31 | organization_url: https://www.coursera.org
32 | title: Neural Networks and Deep Learning
33 | url: ""
34 | - certificate_url: https://www.edx.org
35 | date_end: ""
36 | date_start: "2018-03-01"
37 | description: Formulated informed blockchain models, hypotheses, and use cases.
38 | organization: edX
39 | organization_url: https://www.edx.org
40 | title: Blockchain Fundamentals
41 | url: https://www.edx.org/professional-certificate/uc-berkeleyx-blockchain-fundamentals
42 | - certificate_url: https://www.datacamp.com
43 | date_end: "2017-12-21"
44 | date_start: "2017-07-01"
45 | description: ""
46 | organization: DataCamp
47 | organization_url: https://www.datacamp.com
48 | title: 'Object-Oriented Programming in R: S3 and R6 Course'
49 | url: ""
50 | ---
51 |
--------------------------------------------------------------------------------
/update_wowchemy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Wowchemy Updater
4 | # Helps update Hugo modules and the compatible Hugo version for Netlify.
5 | # https://wowchemy.com/docs/update/
6 | #
7 | # Command: bash ./update_wowchemy.sh
8 |
9 | # Check for prerequisites.
10 | if [ ! -d content ]; then
11 | echo "ERROR: `cd` into your website folder before running this tool."
12 | exit 1;
13 | fi
14 |
15 | # Update the Wowchemy Hugo module
16 | function update_wowchemy () {
17 | # Update Wowchemy to the latest main version
18 | echo -e "Updating Hugo Modules to their latest version...\n"
19 | hugo mod get -u ./...
20 | hugo mod tidy
21 | }
22 |
23 | # Update Netlify config
24 | function update_netlify () {
25 | # - Update Netlify.toml with required Hugo version
26 | if [ -f ./netlify.toml ]; then
27 | echo "Attempting to get compatible Hugo version from https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/wowchemy/config.yaml ..."
28 | curl -o "tmp_get_version" https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/wowchemy/config.yaml
29 | version=$(sed -n 's/^[[:space:]]*min: //p' "tmp_get_version" | tr -d "'")
30 | version="${version}"
31 | echo "Set Netlify Hugo version to v${version}"
32 | sed -i.bak -e "s/HUGO_VERSION = .*/HUGO_VERSION = \"$version\"/g" ./netlify.toml && rm -f ./netlify.toml.bak
33 | rm tmp_get_version
34 | fi
35 | }
36 |
37 | # Perform update
38 | update_wowchemy
39 | update_netlify
40 |
41 | echo
42 | echo "Warning: review the changes made by this helper script before pushing them to your site."
43 | echo
44 | echo "If there are breaking changes, the site structure, config, and/or front matter of content" \
45 | "may need upgrading by following the steps in the relevant consecutive release notes."
46 | echo
47 | echo "View the update guide at: https://wowchemy.com/docs/update/"
48 | echo "View the latest release notes at: https://wowchemy.com/updates/"
49 |
--------------------------------------------------------------------------------
/exampleSite/content/post/writing-technical-content/line-chart.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": [
3 | {
4 | "uid": "babced",
5 | "fill": "tonexty",
6 | "mode": "none",
7 | "name": "Col2",
8 | "type": "scatter",
9 | "x": [
10 | "2000-01-01",
11 | "2001-01-01",
12 | "2002-01-01",
13 | "2003-01-01",
14 | "2004-01-01",
15 | "2005-01-01",
16 | "2006-01-01",
17 | "2007-01-01",
18 | "2008-01-01",
19 | "2009-01-01",
20 | "2010-01-01",
21 | "2011-01-01",
22 | "2012-01-01",
23 | "2013-01-01",
24 | "2014-01-01",
25 | "2015-01-01",
26 | "2016-01-01"
27 | ],
28 | "y": [
29 | "17087182",
30 | "29354370",
31 | "38760373",
32 | "40912332",
33 | "51611646",
34 | "64780617",
35 | "85507314",
36 | "121892559",
37 | "172338726",
38 | "238027855",
39 | "206956723",
40 | "346004403",
41 | "697089489",
42 | "672985183",
43 | "968882453",
44 | "863105652",
45 | "1068513050"
46 | ],
47 | "fillcolor": "rgb(224, 102, 102)"
48 | }
49 | ],
50 | "layout": {
51 | "title": "Total Number of Websites",
52 | "width": 800,
53 | "xaxis": {
54 | "type": "date",
55 | "range": [
56 | 946702800000,
57 | 1451624400000
58 | ],
59 | "title": "Source: Scribblrs
Source: Internet Live Stats",
60 | "showgrid": false,
61 | "autorange": true,
62 | "tickformat": "%Y"
63 | },
64 | "yaxis": {
65 | "type": "linear",
66 | "range": [
67 | 0,
68 | 1124750578.9473684
69 | ],
70 | "title": "",
71 | "autorange": true
72 | },
73 | "height": 500,
74 | "autosize": false
75 | },
76 | "frames": []
77 | }
78 |
--------------------------------------------------------------------------------
/content/home/contents.md:
--------------------------------------------------------------------------------
1 | +++
2 | # A Demo section created with the Blank widget.
3 | # Any elements can be added in the body: https://wowchemy.com/docs/writing-markdown-latex/
4 | # Add more sections by duplicating this file and customizing to your requirements.
5 |
6 | widget = "blank" # See https://wowchemy.com/docs/page-builder/
7 | headless = true # This file represents a page section.
8 | active = true # Activate this widget? true/false
9 | weight = 20 # Order that this section will appear.
10 |
11 | title = "Contents"
12 | subtitle = ""
13 |
14 | [design]
15 | # Choose how many columns the section has. Valid values: 1 or 2.
16 | columns = "2"
17 |
18 | [design.background]
19 | # Apply a background color, gradient, or image.
20 | # Uncomment (by removing `#`) an option to apply it.
21 | # Choose a light or dark text color by setting `text_color_light`.
22 | # Any HTML color name or Hex value is valid.
23 |
24 | # Background color.
25 | color = "white"
26 |
27 | # Background gradient.
28 | # gradient_start = "DarkGreen"
29 | # gradient_end = "ForestGreen"
30 |
31 | # Background image.
32 | # image = "image.jpg" # Name of image in `static/media/`.
33 | # image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
34 | # image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
35 | # image_position = "center" # Options include `left`, `center` (default), or `right`.
36 | # image_parallax = true # Use a fun parallax-like fixed background effect? true/false
37 |
38 | # Text color (true=light or false=dark).
39 | text_color_light = false
40 |
41 | [design.spacing]
42 | # Customize the section spacing. Order is top, right, bottom, left.
43 | padding = ["20px", "0", "20px", "0"]
44 |
45 | [advanced]
46 | # Custom CSS.
47 | css_style = ""
48 |
49 | # CSS class.
50 | css_class = ""
51 | +++
52 |
53 | ## Examples included
54 |
55 | 1. [x] The labor market
56 | 2. [x] The IS-LM model
57 | 3. [x] The AD-AS model
58 | 4. [x] The Solow model
59 | 5. [x] The R&D growth model
60 | 6. [x] A simple Ramsey model
61 | 7. [ ] TBD
62 |
--------------------------------------------------------------------------------
/content/home/about.md:
--------------------------------------------------------------------------------
1 | ---
2 | # An instance of the About widget.
3 | # Documentation: https://wowchemy.com/docs/page-builder/
4 | widget: about
5 |
6 | # Activate this widget? true/false
7 | active: true
8 |
9 | # This file represents a page section.
10 | headless: true
11 |
12 | # Order that this section appears on the page.
13 | weight: 10
14 |
15 | title: Macro with Python
16 |
17 | # Choose the user profile to display
18 | # This should be the username (folder name) of a profile in your `content/authors/` folder.
19 | # See https://wowchemy.com/docs/get-started/#introduce-yourself
20 | author: admin
21 | ---
22 |
23 |
24 | **Macro with Python** uses typical topics covered in an Intermediate (or advanced) macroeconomics course to offer introductory examples to [Python](https://www.python.org/). The examples assume an introductiry knowledge of Python and same familiarity with intermediate macroeconomic models.
25 |
26 | The examples are intended to learn to use Python in the context of macroeconomic models. The examples are not intended to offer complete discussion of the models or coding techniques. The intention of **Macro with Python** is to get started with **how** to use Python in macroeconomics. [QuantEcon](https://quantecon.org/) offers more advanced an detailed documentation.
27 |
28 | The **GitHub** repository of this project is located [here](https://github.com/ncachanosky/Macro-with-Python).
29 |
30 |
31 | > **Macro with Python** is an ongoing project. More examples will be added as they become available.
32 | > [Submission](https://github.com/ncachanosky/Macro-with-Python/issues) of issues and recommendations are welcome.
33 |
34 |
35 | ## Macro with Python: Notebooks
36 |
37 | All notebooks make use of [NumPy](https://numpy.org/) and [Matplotlib](https://matplotlib.org/).
38 |
39 | For an example on symbolic mathematics and LaTeX format, see **The Solow Model** (section 1).
40 |
41 | For examples of how to find the roots ([SciPy](https://www.scipy.org/)) of a system of equations, see **The Labor Market** (section 3) and **The AD-AS Model** (sections 5 and 6).
42 |
43 | For a shooting algorithm, see **A Simple Ramsey Model** (section 5).
--------------------------------------------------------------------------------
/content/home/other projects.md:
--------------------------------------------------------------------------------
1 | +++
2 | # A Demo section created with the Blank widget.
3 | # Any elements can be added in the body: https://wowchemy.com/docs/writing-markdown-latex/
4 | # Add more sections by duplicating this file and customizing to your requirements.
5 |
6 | widget = "blank" # See https://wowchemy.com/docs/page-builder/
7 | headless = true # This file represents a page section.
8 | active = true # Activate this widget? true/false
9 | weight = 30 # Order that this section will appear.
10 |
11 | title = "Other projects"
12 | subtitle = ""
13 |
14 | [design]
15 | # Choose how many columns the section has. Valid values: 1 or 2.
16 | columns = "2"
17 |
18 | [design.background]
19 | # Apply a background color, gradient, or image.
20 | # Uncomment (by removing `#`) an option to apply it.
21 | # Choose a light or dark text color by setting `text_color_light`.
22 | # Any HTML color name or Hex value is valid.
23 |
24 | # Background color.
25 | color = "white"
26 |
27 | # Background gradient.
28 | # gradient_start = "DarkGreen"
29 | # gradient_end = "ForestGreen"
30 |
31 | # Background image.
32 | # image = "image.jpg" # Name of image in `static/media/`.
33 | # image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
34 | # image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
35 | # image_position = "center" # Options include `left`, `center` (default), or `right`.
36 | # image_parallax = true # Use a fun parallax-like fixed background effect? true/false
37 |
38 | # Text color (true=light or false=dark).
39 | text_color_light = false
40 |
41 | [design.spacing]
42 | # Customize the section spacing. Order is top, right, bottom, left.
43 | padding = ["20px", "0", "20px", "0"]
44 |
45 | [advanced]
46 | # Custom CSS.
47 | css_style = ""
48 |
49 | # CSS class.
50 | css_class = ""
51 | +++
52 |
53 | **ECON LECTURE NOTES**
54 | *In development*
55 | Lecture notes on intermediate and advanced economic courses
56 |
57 | [**EL HUB ECONÓMICO**](https://www.elhubeconomico.com/)
58 | Repository of Argentine economic data and visualization library.
59 |
--------------------------------------------------------------------------------
/data/page_sharer.toml:
--------------------------------------------------------------------------------
1 | # Page Sharer
2 | # Documentation: https://sourcethemes.com/academic/docs/customization/#page-sharer
3 |
4 | [[buttons]]
5 | id = "twitter"
6 | url = "https://twitter.com/intent/tweet?url={url}&text={title}"
7 | title = "Twitter"
8 | icon_pack = "fab"
9 | icon = "twitter"
10 | enable = true
11 |
12 | [[buttons]]
13 | id = "facebook"
14 | url = "https://www.facebook.com/sharer.php?u={url}&t={title}"
15 | title = "Facebook"
16 | icon_pack = "fab"
17 | icon = "facebook"
18 | enable = true
19 |
20 | [[buttons]]
21 | id = "email"
22 | url = "mailto:?subject={title}&body={url}"
23 | title = "Email"
24 | icon_pack = "fas"
25 | icon = "envelope"
26 | enable = true
27 |
28 | [[buttons]]
29 | id = "linkedin"
30 | url = "https://www.linkedin.com/shareArticle?url={url}&title={title}"
31 | title = "LinkedIn"
32 | icon_pack = "fab"
33 | icon = "linkedin-in"
34 | enable = true
35 |
36 | [[buttons]]
37 | id = "whatsapp"
38 | url = "whatsapp://send?text={title}%20{url}"
39 | title = "WhatsApp"
40 | icon_pack = "fab"
41 | icon = "whatsapp"
42 | enable = true
43 |
44 | [[buttons]]
45 | id = "weibo"
46 | url = "https://service.weibo.com/share/share.php?url={url}&title={title}"
47 | title = "Weibo"
48 | icon_pack = "fab"
49 | icon = "weibo"
50 | enable = true
51 |
52 | [[buttons]]
53 | id = "reddit"
54 | url = "https://reddit.com/submit?url={url}&title={title}"
55 | title = "Reddit"
56 | icon_pack = "fab"
57 | icon = "reddit-alien"
58 | enable = false
59 |
60 | [[buttons]]
61 | id = "pinterest"
62 | url = "https://pinterest.com/pin/create/link/?url={url}&description={title}"
63 | title = "Pinterest"
64 | icon_pack = "fab"
65 | icon = "pinterest"
66 | enable = false
67 |
68 | [[buttons]]
69 | id = "xing"
70 | url = "https://www.xing.com/spi/shares/new?url={url}&title={title}"
71 | title = "Xing"
72 | icon_pack = "fab"
73 | icon = "xing"
74 | enable = false
75 |
76 | [[buttons]]
77 | id = "tumblr"
78 | url = "https://www.tumblr.com/widgets/share/tool?canonicalUrl={url}&title={title}"
79 | title = "Tumblr"
80 | icon_pack = "fab"
81 | icon = "tumblr"
82 | enable = false
83 |
--------------------------------------------------------------------------------
/content/home/demo.md:
--------------------------------------------------------------------------------
1 | +++
2 | # A Demo section created with the Blank widget.
3 | # Any elements can be added in the body: https://wowchemy.com/docs/writing-markdown-latex/
4 | # Add more sections by duplicating this file and customizing to your requirements.
5 |
6 | widget = "blank" # See https://wowchemy.com/docs/page-builder/
7 | headless = true # This file represents a page section.
8 | active = false # Activate this widget? true/false
9 | weight = 20 # Order that this section will appear.
10 |
11 | title = ""
12 | subtitle = ""
13 |
14 | [design]
15 | # Choose how many columns the section has. Valid values: 1 or 2.
16 | columns = "1"
17 |
18 | [design.background]
19 | # Apply a background color, gradient, or image.
20 | # Uncomment (by removing `#`) an option to apply it.
21 | # Choose a light or dark text color by setting `text_color_light`.
22 | # Any HTML color name or Hex value is valid.
23 |
24 | # Background color.
25 | color = "white"
26 |
27 | # Background gradient.
28 | # gradient_start = "DarkGreen"
29 | # gradient_end = "ForestGreen"
30 |
31 | # Background image.
32 | # image = "image.jpg" # Name of image in `static/media/`.
33 | # image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
34 | # image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
35 | # image_position = "center" # Options include `left`, `center` (default), or `right`.
36 | # image_parallax = true # Use a fun parallax-like fixed background effect? true/false
37 |
38 | # Text color (true=light or false=dark).
39 | text_color_light = false
40 |
41 | [design.spacing]
42 | # Customize the section spacing. Order is top, right, bottom, left.
43 | padding = ["20px", "0", "20px", "0"]
44 |
45 | [advanced]
46 | # Custom CSS.
47 | css_style = ""
48 |
49 | # CSS class.
50 | css_class = ""
51 | +++
52 |
53 | ## Información de contacto
54 |
55 | [**Nicolás Cachanosky**](https://www.ncachanosky.com) | ncachano@msudenver.edu
56 | Associate Professor of Economics
57 | Metropolitan State University of Denver
58 |
59 | Senior Fellow
60 | [American Institute for Economic Research](https://www.aier.org/)
--------------------------------------------------------------------------------
/config/_default/config.yaml:
--------------------------------------------------------------------------------
1 | # Configuration of Hugo
2 | # Guide: https://wowchemy.com/docs/getting-started/
3 | # Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
4 | # This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5 |
6 | baseurl: '' # Website URL
7 | title: Macro with Pyhon # Website name
8 | copyright: 'Copyright @ {year} Nicolás Cachanosky' # Footer text, e.g. '© {year} Me'
9 |
10 | ############################
11 | ## LANGUAGE
12 | ############################
13 |
14 | defaultContentLanguage: en
15 | hasCJKLanguage: false
16 | defaultContentLanguageInSubdir: false
17 | removePathAccents: true
18 |
19 | ############################
20 | ## MODULES
21 | ############################
22 |
23 | module:
24 | imports:
25 | - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms
26 | - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
27 |
28 | ############################
29 | ## ADVANCED
30 | ############################
31 |
32 | enableGitInfo: false
33 | summaryLength: 30
34 | paginate: 10
35 | enableEmoji: true
36 | enableRobotsTXT: true
37 | footnotereturnlinkcontents: ^
38 | ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
39 | permalinks:
40 | event: '/talk/:slug/'
41 | tags: '/tag/:slug/'
42 | categories: '/category/:slug/'
43 | publication_types: '/publication-type/:slug/'
44 | disableAliases: true
45 | outputs:
46 | home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
47 | section: [HTML, RSS]
48 | markup:
49 | defaultMarkdownHandler: goldmark
50 | goldmark:
51 | renderer:
52 | unsafe: true
53 | highlight:
54 | codeFences: false
55 | tableOfContents:
56 | startLevel: 2
57 | endLevel: 3
58 | imaging:
59 | resampleFilter: lanczos
60 | quality: 75
61 | anchor: smart
62 | timeout: 600000
63 | taxonomies:
64 | tag: tags
65 | category: categories
66 | publication_type: publication_types
67 | author: authors
68 | related:
69 | threshold: 80
70 | includeNewer: true
71 | toLower: true
72 | indices:
73 | - name: tags
74 | weight: 100
75 | - name: categories
76 | weight: 70
77 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/config.yaml:
--------------------------------------------------------------------------------
1 | # Configuration of Hugo
2 | # Guide: https://wowchemy.com/docs/getting-started/
3 | # Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
4 | # This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5 |
6 | title: Academic # Website name
7 | baseurl: '' # Website URL
8 | copyright: '' # Footer text, e.g. '© {year} Me'
9 |
10 | ############################
11 | ## LANGUAGE
12 | ############################
13 |
14 | defaultContentLanguage: en
15 | hasCJKLanguage: false
16 | defaultContentLanguageInSubdir: false
17 | removePathAccents: true
18 |
19 | ############################
20 | ## MODULES
21 | ############################
22 |
23 | module:
24 | imports:
25 | - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms
26 | - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
27 |
28 | ############################
29 | ## ADVANCED
30 | ############################
31 |
32 | enableGitInfo: false
33 | summaryLength: 30
34 | paginate: 10
35 | enableEmoji: true
36 | enableRobotsTXT: true
37 | footnotereturnlinkcontents: ^
38 | ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
39 | permalinks:
40 | event: '/talk/:slug/'
41 | authors: '/author/:slug/'
42 | tags: '/tag/:slug/'
43 | categories: '/category/:slug/'
44 | publication_types: '/publication-type/:slug/'
45 | disableAliases: true
46 | outputs:
47 | home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
48 | section: [HTML, RSS]
49 | markup:
50 | defaultMarkdownHandler: goldmark
51 | goldmark:
52 | renderer:
53 | unsafe: true
54 | highlight:
55 | codeFences: false
56 | tableOfContents:
57 | startLevel: 2
58 | endLevel: 3
59 | imaging:
60 | resampleFilter: lanczos
61 | quality: 75
62 | anchor: smart
63 | timeout: 600000
64 | taxonomies:
65 | tag: tags
66 | category: categories
67 | publication_type: publication_types
68 | author: authors
69 | related:
70 | threshold: 80
71 | includeNewer: true
72 | toLower: true
73 | indices:
74 | - name: tags
75 | weight: 100
76 | - name: categories
77 | weight: 70
78 |
--------------------------------------------------------------------------------
/exampleSite/content/authors/吳恩達/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Display name
3 | title: 吳恩達
4 |
5 | # Is this the primary user of the site?
6 | superuser: false
7 |
8 | # Role/position
9 | role: Professor of Artificial Intelligence
10 |
11 | # Organizations/Affiliations
12 | organizations:
13 | - name: Stanford University
14 | url: ""
15 |
16 | # Short bio (displayed in user profile at end of posts)
17 | bio: My research interests include distributed robotics, mobile computing and programmable matter.
18 |
19 | interests:
20 | - Artificial Intelligence
21 | - Computational Linguistics
22 | - Information Retrieval
23 |
24 | education:
25 | courses:
26 | - course: PhD in Artificial Intelligence
27 | institution: Stanford University
28 | year: 2012
29 | - course: MEng in Artificial Intelligence
30 | institution: Massachusetts Institute of Technology
31 | year: 2009
32 | - course: BSc in Artificial Intelligence
33 | institution: Massachusetts Institute of Technology
34 | year: 2008
35 |
36 | # Social/Academic Networking
37 | # For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
38 | # For an email link, use "fas" icon pack, "envelope" icon, and a link in the
39 | # form "mailto:your-email@example.com" or "#contact" for contact widget.
40 | social:
41 | - icon: envelope
42 | icon_pack: fas
43 | link: '#contact' # For a direct email link, use "mailto:test@example.org".
44 | - icon: twitter
45 | icon_pack: fab
46 | link: https://twitter.com/GeorgeCushen
47 | - icon: graduation-cap
48 | icon_pack: fas
49 | link: https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ
50 | - icon: github
51 | icon_pack: fab
52 | link: https://github.com/gcushen
53 | # Link to a PDF of your resume/CV from the About widget.
54 | # To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
55 | # - icon: cv
56 | # icon_pack: ai
57 | # link: files/cv.pdf
58 |
59 | # Enter email to display Gravatar (if Gravatar enabled in Config)
60 | email: ""
61 | ---
62 |
63 | 吳恩達 is a professor of artificial intelligence at the Stanford AI Lab. His research interests include distributed robotics, mobile computing and programmable matter. He leads the Robotic Neurobiology group, which develops self-reconfiguring robots, systems of self-organizing robots, and mobile sensor networks.
64 |
65 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
66 |
--------------------------------------------------------------------------------
/exampleSite/content/event/example/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Example Talk
3 |
4 | event: Wowchemy Conference
5 | event_url: https://example.org
6 |
7 | location: Wowchemy HQ
8 | address:
9 | street: 450 Serra Mall
10 | city: Stanford
11 | region: CA
12 | postcode: '94305'
13 | country: United States
14 |
15 | summary: An example talk using Wowchemy's Markdown slides feature.
16 | abstract: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellusac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam."
17 |
18 | # Talk start and end times.
19 | # End time can optionally be hidden by prefixing the line with `#`.
20 | date: "2030-06-01T13:00:00Z"
21 | date_end: "2030-06-01T15:00:00Z"
22 | all_day: false
23 |
24 | # Schedule page publish date (NOT talk date).
25 | publishDate: "2017-01-01T00:00:00Z"
26 |
27 | authors: []
28 | tags: []
29 |
30 | # Is this a featured talk? (true/false)
31 | featured: false
32 |
33 | image:
34 | caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/bzdhc5b3Bxs)'
35 | focal_point: Right
36 |
37 | links:
38 | - icon: twitter
39 | icon_pack: fab
40 | name: Follow
41 | url: https://twitter.com/georgecushen
42 | url_code: ""
43 | url_pdf: ""
44 | url_slides: ""
45 | url_video: ""
46 |
47 | # Markdown Slides (optional).
48 | # Associate this talk with Markdown slides.
49 | # Simply enter your slide deck's filename without extension.
50 | # E.g. `slides = "example-slides"` references `content/slides/example-slides.md`.
51 | # Otherwise, set `slides = ""`.
52 | slides: example
53 |
54 | # Projects (optional).
55 | # Associate this post with one or more of your projects.
56 | # Simply enter your project's folder or file name without extension.
57 | # E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`.
58 | # Otherwise, set `projects = []`.
59 | projects:
60 | - internal-project
61 | ---
62 |
63 | {{% callout note %}}
64 | Click on the **Slides** button above to view the built-in slides feature.
65 | {{% /callout %}}
66 |
67 | Slides can be added in a few ways:
68 |
69 | - **Create** slides using Wowchemy's [*Slides*](https://wowchemy.com/docs/managing-content/#create-slides) feature and link using `slides` parameter in the front matter of the talk file
70 | - **Upload** an existing slide deck to `static/` and link using `url_slides` parameter in the front matter of the talk file
71 | - **Embed** your slides (e.g. Google Slides) or presentation video on this page using [shortcodes](https://wowchemy.com/docs/writing-markdown-latex/).
72 |
73 | Further event details, including [page elements](https://wowchemy.com/docs/writing-markdown-latex/) such as image galleries, can be added to the body of this page.
74 |
--------------------------------------------------------------------------------
/exampleSite/content/publication/preprint/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "An example preprint / working paper"
3 | authors:
4 | - admin
5 | date: "2019-04-07T00:00:00Z"
6 | doi: ""
7 |
8 | # Schedule page publish date (NOT publication's date).
9 | publishDate: "2017-01-01T00:00:00Z"
10 |
11 | # Publication type.
12 | # Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article;
13 | # 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section;
14 | # 7 = Thesis; 8 = Patent
15 | publication_types: ["3"]
16 |
17 | # Publication name and optional abbreviated publication name.
18 | publication: ""
19 | publication_short: ""
20 |
21 | abstract: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.
22 |
23 | # Summary. An optional shortened abstract.
24 | summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum.
25 |
26 | tags:
27 | - Source Themes
28 | featured: false
29 |
30 | links:
31 | - name: Custom Link
32 | url: http://example.org
33 | url_pdf: http://arxiv.org/pdf/1512.04133v1
34 | url_code: '#'
35 | url_dataset: '#'
36 | url_poster: '#'
37 | url_project: ''
38 | url_slides: ''
39 | url_source: '#'
40 | url_video: '#'
41 |
42 | # Featured image
43 | # To use, add an image named `featured.jpg/png` to your page's folder.
44 | image:
45 | caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/s9CC2SKySJM)'
46 | focal_point: ""
47 | preview_only: false
48 |
49 | # Associated Projects (optional).
50 | # Associate this publication with one or more of your projects.
51 | # Simply enter your project's folder or file name without extension.
52 | # E.g. `internal-project` references `content/project/internal-project/index.md`.
53 | # Otherwise, set `projects: []`.
54 | projects:
55 | - internal-project
56 |
57 | # Slides (optional).
58 | # Associate this publication with Markdown slides.
59 | # Simply enter your slide deck's filename without extension.
60 | # E.g. `slides: "example"` references `content/slides/example/index.md`.
61 | # Otherwise, set `slides: ""`.
62 | slides: example
63 | ---
64 |
65 | {{% callout note %}}
66 | Create your slides in Markdown - click the *Slides* button to check out the example.
67 | {{% /callout %}}
68 |
69 | Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/).
70 |
--------------------------------------------------------------------------------
/exampleSite/content/post/jupyter/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Display Jupyter Notebooks with Academic
3 | subtitle: Learn how to blog in Academic using Jupyter notebooks
4 | summary: Learn how to blog in Academic using Jupyter notebooks
5 | authors:
6 | - admin
7 | tags: []
8 | categories: []
9 | projects: []
10 | date: "2019-02-05T00:00:00Z"
11 | lastMod: "2019-09-05T00:00:00Z"
12 | image:
13 | caption: ""
14 | focal_point: ""
15 | ---
16 |
17 | ```python
18 | from IPython.core.display import Image
19 | Image('https://www.python.org/static/community_logos/python-logo-master-v3-TM-flattened.png')
20 | ```
21 |
22 |
23 |
24 |
25 | 
26 |
27 |
28 |
29 |
30 | ```python
31 | print("Welcome to Academic!")
32 | ```
33 |
34 | Welcome to Academic!
35 |
36 |
37 | ## Install Python and JupyterLab
38 |
39 | [Install Anaconda](https://www.anaconda.com/distribution/#download-section) which includes Python 3 and JupyterLab.
40 |
41 | Alternatively, install JupyterLab with `pip3 install jupyterlab`.
42 |
43 | ## Create or upload a Jupyter notebook
44 |
45 | Run the following commands in your Terminal, substituting `` and `` with the file path to your Academic website folder and a short title for your blog post (use hyphens instead of spaces), respectively:
46 |
47 | ```bash
48 | mkdir -p /content/post//
49 | cd /content/post//
50 | jupyter lab index.ipynb
51 | ```
52 |
53 | The `jupyter` command above will launch the JupyterLab editor, allowing us to add Academic metadata and write the content.
54 |
55 | ## Edit your post metadata
56 |
57 | The first cell of your Jupter notebook will contain your post metadata ([front matter](https://sourcethemes.com/academic/docs/front-matter/)).
58 |
59 | In Jupter, choose _Markdown_ as the type of the first cell and wrap your Academic metadata in three dashes, indicating that it is YAML front matter:
60 |
61 | ```
62 | ---
63 | title: My post's title
64 | date: 2019-09-01
65 |
66 | # Put any other Academic metadata here...
67 | ---
68 | ```
69 |
70 | Edit the metadata of your post, using the [documentation](https://sourcethemes.com/academic/docs/managing-content) as a guide to the available options.
71 |
72 | To set a [featured image](https://sourcethemes.com/academic/docs/managing-content/#featured-image), place an image named `featured` into your post's folder.
73 |
74 | For other tips, such as using math, see the guide on [writing content with Academic](https://sourcethemes.com/academic/docs/writing-markdown-latex/).
75 |
76 | ## Convert notebook to Markdown
77 |
78 | ```bash
79 | jupyter nbconvert index.ipynb --to markdown --NbConvertApp.output_files_dir=.
80 | ```
81 |
82 | ## Example
83 |
84 | This post was created with Jupyter. The orginal files can be found at https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/post/jupyter
85 |
--------------------------------------------------------------------------------
/exampleSite/content/publication/conference-paper/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "An example conference paper"
3 | authors:
4 | - admin
5 | - Robert Ford
6 | date: "2013-07-01T00:00:00Z"
7 | doi: ""
8 |
9 | # Schedule page publish date (NOT publication's date).
10 | publishDate: "2017-01-01T00:00:00Z"
11 |
12 | # Publication type.
13 | # Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article;
14 | # 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section;
15 | # 7 = Thesis; 8 = Patent
16 | publication_types: ["1"]
17 |
18 | # Publication name and optional abbreviated publication name.
19 | publication: In *Source Themes Conference*
20 | publication_short: In *STC*
21 |
22 | abstract: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.
23 |
24 | # Summary. An optional shortened abstract.
25 | summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum.
26 |
27 | tags:
28 | - Source Themes
29 | featured: true
30 |
31 | links:
32 | - name: Custom Link
33 | url: http://example.org
34 | url_pdf: http://eprints.soton.ac.uk/352095/1/Cushen-IMV2013.pdf
35 | url_code: '#'
36 | url_dataset: '#'
37 | url_poster: '#'
38 | url_project: ''
39 | url_slides: ''
40 | url_source: '#'
41 | url_video: '#'
42 |
43 | # Featured image
44 | # To use, add an image named `featured.jpg/png` to your page's folder.
45 | image:
46 | caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/pLCdAaMFLTE)'
47 | focal_point: ""
48 | preview_only: false
49 |
50 | # Associated Projects (optional).
51 | # Associate this publication with one or more of your projects.
52 | # Simply enter your project's folder or file name without extension.
53 | # E.g. `internal-project` references `content/project/internal-project/index.md`.
54 | # Otherwise, set `projects: []`.
55 | projects:
56 | - internal-project
57 |
58 | # Slides (optional).
59 | # Associate this publication with Markdown slides.
60 | # Simply enter your slide deck's filename without extension.
61 | # E.g. `slides: "example"` references `content/slides/example/index.md`.
62 | # Otherwise, set `slides: ""`.
63 | slides: example
64 | ---
65 |
66 | {{% callout note %}}
67 | Click the *Cite* button above to demo the feature to enable visitors to import publication metadata into their reference management software.
68 | {{% /callout %}}
69 |
70 | {{% callout note %}}
71 | Create your slides in Markdown - click the *Slides* button to check out the example.
72 | {{% /callout %}}
73 |
74 | Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/).
75 |
--------------------------------------------------------------------------------
/exampleSite/content/publication/journal-article/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "An example journal article"
3 | authors:
4 | - admin
5 | - Robert Ford
6 | author_notes:
7 | - "Equal contribution"
8 | - "Equal contribution"
9 | date: "2015-09-01T00:00:00Z"
10 | doi: ""
11 |
12 | # Schedule page publish date (NOT publication's date).
13 | publishDate: "2017-01-01T00:00:00Z"
14 |
15 | # Publication type.
16 | # Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article;
17 | # 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section;
18 | # 7 = Thesis; 8 = Patent
19 | publication_types: ["2"]
20 |
21 | # Publication name and optional abbreviated publication name.
22 | publication: "*Journal of Source Themes, 1*(1)"
23 | publication_short: ""
24 |
25 | abstract: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.
26 |
27 | # Summary. An optional shortened abstract.
28 | summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum.
29 |
30 | tags:
31 | - Source Themes
32 | featured: false
33 |
34 | # links:
35 | # - name: ""
36 | # url: ""
37 | url_pdf: http://arxiv.org/pdf/1512.04133v1
38 | url_code: ''
39 | url_dataset: ''
40 | url_poster: ''
41 | url_project: ''
42 | url_slides: ''
43 | url_source: ''
44 | url_video: ''
45 |
46 | # Featured image
47 | # To use, add an image named `featured.jpg/png` to your page's folder.
48 | image:
49 | caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/jdD8gXaTZsc)'
50 | focal_point: ""
51 | preview_only: false
52 |
53 | # Associated Projects (optional).
54 | # Associate this publication with one or more of your projects.
55 | # Simply enter your project's folder or file name without extension.
56 | # E.g. `internal-project` references `content/project/internal-project/index.md`.
57 | # Otherwise, set `projects: []`.
58 | projects: []
59 |
60 | # Slides (optional).
61 | # Associate this publication with Markdown slides.
62 | # Simply enter your slide deck's filename without extension.
63 | # E.g. `slides: "example"` references `content/slides/example/index.md`.
64 | # Otherwise, set `slides: ""`.
65 | slides: example
66 | ---
67 |
68 | {{% callout note %}}
69 | Click the *Cite* button above to demo the feature to enable visitors to import publication metadata into their reference management software.
70 | {{% /callout %}}
71 |
72 | {{% callout note %}}
73 | Create your slides in Markdown - click the *Slides* button to check out the example.
74 | {{% /callout %}}
75 |
76 | Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/).
77 |
--------------------------------------------------------------------------------
/exampleSite/content/authors/admin/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Display name
3 | title: Nelson Bighetti
4 |
5 | # Is this the primary user of the site?
6 | superuser: true
7 |
8 | # Role/position/tagline
9 | role: Professor of Artificial Intelligence
10 |
11 | # Organizations/Affiliations to show in About widget
12 | organizations:
13 | - name: Stanford University
14 | url: https://www.stanford.edu/
15 |
16 | # Short bio (displayed in user profile at end of posts)
17 | bio: My research interests include distributed robotics, mobile computing and programmable matter.
18 |
19 | # Interests to show in About widget
20 | interests:
21 | - Artificial Intelligence
22 | - Computational Linguistics
23 | - Information Retrieval
24 |
25 | # Education to show in About widget
26 | education:
27 | courses:
28 | - course: PhD in Artificial Intelligence
29 | institution: Stanford University
30 | year: 2012
31 | - course: MEng in Artificial Intelligence
32 | institution: Massachusetts Institute of Technology
33 | year: 2009
34 | - course: BSc in Artificial Intelligence
35 | institution: Massachusetts Institute of Technology
36 | year: 2008
37 |
38 | # Social/Academic Networking
39 | # For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
40 | # For an email link, use "fas" icon pack, "envelope" icon, and a link in the
41 | # form "mailto:your-email@example.com" or "/#contact" for contact widget.
42 | social:
43 | - icon: envelope
44 | icon_pack: fas
45 | link: '/#contact'
46 | - icon: twitter
47 | icon_pack: fab
48 | link: https://twitter.com/GeorgeCushen
49 | label: Follow me on Twitter
50 | display:
51 | header: true
52 | - icon: graduation-cap # Alternatively, use `google-scholar` icon from `ai` icon pack
53 | icon_pack: fas
54 | link: https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ
55 | - icon: github
56 | icon_pack: fab
57 | link: https://github.com/gcushen
58 | - icon: linkedin
59 | icon_pack: fab
60 | link: https://www.linkedin.com/
61 |
62 | # Link to a PDF of your resume/CV.
63 | # To use: copy your resume to `static/media/resume.pdf`, enable `ai` icons in `params.toml`,
64 | # and uncomment the lines below.
65 | # - icon: cv
66 | # icon_pack: ai
67 | # link: media/resume.pdf
68 |
69 | # Enter email to display Gravatar (if Gravatar enabled in Config)
70 | email: ""
71 |
72 | # Highlight the author in author lists? (true/false)
73 | highlight_name: false
74 | ---
75 |
76 | Nelson Bighetti is a professor of artificial intelligence at the Stanford AI Lab. His research interests include distributed robotics, mobile computing and programmable matter. He leads the Robotic Neurobiology group, which develops self-reconfiguring robots, systems of self-organizing robots, and mobile sensor networks.
77 |
78 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
79 |
80 | {{< icon name="download" pack="fas" >}} Download my {{< staticref "media/demo_resume.pdf" "newtab" >}}resumé{{< /staticref >}}.
81 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/params.yaml:
--------------------------------------------------------------------------------
1 | # SITE SETUP
2 | # Guide: https://wowchemy.com/docs/getting-started/
3 | # Documentation: https://wowchemy.com/docs/
4 | # This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5 |
6 | # Appearance
7 |
8 | theme: minimal
9 | day_night: true
10 | font: ''
11 | font_size: L
12 |
13 | # SEO
14 |
15 | site_type: Person
16 | local_business_type: ''
17 | org_name: ''
18 | description: ''
19 | twitter: ''
20 |
21 | # Contact (edit or remove options as required)
22 |
23 | email: test@example.org
24 | phone: 888 888 88 88
25 | address:
26 | street: 450 Serra Mall
27 | city: Stanford
28 | region: CA
29 | postcode: '94305'
30 | country: United States
31 | country_code: US
32 | coordinates:
33 | latitude: '37.4275'
34 | longitude: '-122.1697'
35 | directions: Enter Building 1 and take the stairs to Office 200 on Floor 2
36 | office_hours:
37 | - 'Monday 10:00 to 13:00'
38 | - 'Wednesday 09:00 to 10:00'
39 | appointment_url: 'https://calendly.com'
40 | contact_links:
41 | - icon: twitter
42 | icon_pack: fab
43 | name: DM Me
44 | link: 'https://twitter.com/Twitter'
45 | - icon: skype
46 | icon_pack: fab
47 | name: Skype Me
48 | link: 'skype:echo123?call'
49 | - icon: keybase
50 | icon_pack: fab
51 | name: Chat on Keybase
52 | link: 'https://keybase.io/'
53 | - icon: comments
54 | icon_pack: fas
55 | name: Discuss on Forum
56 | link: 'https://discourse.gohugo.io'
57 |
58 | # Site header
59 |
60 | main_menu:
61 | enable: true
62 | align: l
63 | show_logo: true
64 | show_language: false
65 | show_day_night: true
66 | show_search: true
67 | highlight_active_link: true
68 |
69 | # Localization
70 |
71 | date_format: 'Jan 2, 2006'
72 | time_format: '3:04 PM'
73 | address_format: en-us
74 |
75 | # Site features
76 |
77 | highlight: true
78 | highlight_languages:
79 | - r
80 | - python
81 | - latex
82 | math: false
83 | diagram: false
84 | privacy_pack: false
85 | edit_page:
86 | repo_url: ''
87 | content_dir: ''
88 | repo_branch: main
89 | editable:
90 | page: false
91 | post: false
92 | book: false
93 | show_related:
94 | book: true
95 | page: false
96 | post: true
97 | project: true
98 | publication: true
99 | event: true
100 | reading_time: true
101 | section_pager: false
102 | docs_section_pager: true
103 | sharing: true
104 | copyright_license:
105 | enable: false
106 | allow_derivatives: false
107 | share_alike: true
108 | allow_commercial: false
109 | notice: 'This work is licensed under {license}'
110 | abstract_length: 135
111 | plugins_js: []
112 | avatar:
113 | gravatar: false
114 | shape: circle
115 | publications:
116 | date_format: January 2006
117 | citation_style: apa
118 | projects:
119 | post_view: 2
120 | publication_view: 2
121 | talk_view: 2
122 | breadcrumb:
123 | page_types:
124 | book: true
125 | comments:
126 | provider: ''
127 | commentable:
128 | post: true
129 | book: true
130 | project: true
131 | publication: true
132 | event: true
133 | disqus:
134 | shortname: ''
135 | show_count: true
136 | commento:
137 | url: ''
138 | search:
139 | provider: wowchemy
140 | algolia:
141 | app_id: ''
142 | api_key: ''
143 | index_name: ''
144 | show_logo: false
145 | map:
146 | provider: mapnik
147 | api_key: ''
148 | zoom: 15
149 | marketing:
150 | google_analytics: ''
151 | google_tag_manager: ''
152 | google_site_verification: ''
153 | baidu_site_verification: ''
154 | baidu_tongji: ''
155 | cms:
156 | branch: master
157 | local_backend: false
158 | icon:
159 | pack:
160 | ai: false
161 |
--------------------------------------------------------------------------------
/config/_default/params.yaml:
--------------------------------------------------------------------------------
1 | # SITE SETUP
2 | # Guide: https://wowchemy.com/docs/getting-started/
3 | # Documentation: https://wowchemy.com/docs/
4 | # This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5 |
6 | # Appearance
7 |
8 | theme: my_theme
9 | day_night: true
10 | font: ''
11 | font_size: M
12 | i_am_a_sponsor: true
13 |
14 | # SEO
15 |
16 | site_type: Person
17 | local_business_type: ''
18 | org_name: 'Macro with Python'
19 | description: ''
20 | #twitter: ''
21 |
22 | # Contact (edit or remove options as required)
23 |
24 | email: ncachano@msudenver.edu
25 | phone: (303) 615-0129
26 | address:
27 | street: 450 Serra Mall
28 | city: Stanford
29 | region: CA
30 | postcode: '94305'
31 | country: United States
32 | country_code: US
33 | coordinates:
34 | latitude: '37.4275'
35 | longitude: '-122.1697'
36 | directions: Enter Building 1 and take the stairs to Office 200 on Floor 2
37 | office_hours:
38 | - 'Monday 10:00 to 13:00'
39 | - 'Wednesday 09:00 to 10:00'
40 | appointment_url: 'https://calendly.com'
41 | contact_links:
42 | - icon: twitter
43 | icon_pack: fab
44 | name: DM Me
45 | link: 'https://twitter.com/Twitter'
46 | - icon: skype
47 | icon_pack: fab
48 | name: Skype Me
49 | link: 'skype:echo123?call'
50 | - icon: keybase
51 | icon_pack: fab
52 | name: Chat on Keybase
53 | link: 'https://keybase.io/'
54 | - icon: comments
55 | icon_pack: fas
56 | name: Discuss on Forum
57 | link: 'https://discourse.gohugo.io'
58 |
59 | # Site header
60 |
61 | main_menu:
62 | enable: true
63 | align: l
64 | show_logo: true
65 | show_language: false
66 | show_day_night: true
67 | show_search: true
68 | highlight_active_link: true
69 |
70 | # Localization
71 |
72 | date_format: 'Jan 2, 2006'
73 | time_format: '3:04 PM'
74 | address_format: en-us
75 |
76 | # Site features
77 |
78 | highlight: true
79 | highlight_languages:
80 | - python
81 | math: true
82 | diagram: true
83 | privacy_pack: false
84 | edit_page:
85 | repo_url: ''
86 | content_dir: ''
87 | repo_branch: main
88 | editable:
89 | page: false
90 | post: false
91 | book: false
92 | show_related:
93 | book: true
94 | page: false
95 | post: true
96 | project: true
97 | publication: true
98 | event: true
99 | reading_time: true
100 | section_pager: false
101 | docs_section_pager: true
102 | sharing: true
103 | copyright_license:
104 | enable: false
105 | allow_derivatives: false
106 | share_alike: true
107 | allow_commercial: false
108 | notice: 'This work is licensed under {license}'
109 | abstract_length: 135
110 | plugins_js: []
111 | avatar:
112 | gravatar: false
113 | shape: square
114 | publications:
115 | date_format: January 2006
116 | citation_style: apa
117 | projects:
118 | post_view: 2
119 | publication_view: 2
120 | talk_view: 2
121 | breadcrumb:
122 | page_types:
123 | book: true
124 | comments:
125 | provider: ''
126 | commentable:
127 | post: true
128 | book: true
129 | project: true
130 | publication: true
131 | event: true
132 | disqus:
133 | shortname: ''
134 | show_count: true
135 | commento:
136 | url: ''
137 | search:
138 | provider: wowchemy
139 | algolia:
140 | app_id: ''
141 | api_key: ''
142 | index_name: ''
143 | show_logo: false
144 | map:
145 | provider: ''
146 | api_key: ''
147 | zoom: 15
148 | marketing:
149 | google_analytics: 'G-KBV0WL2BVC'
150 | google_tag_manager: ''
151 | google_site_verification: ''
152 | baidu_site_verification: ''
153 | baidu_tongji: ''
154 | cms:
155 | branch: master
156 | local_backend: false
157 | icon:
158 | pack:
159 | ai: true
160 |
--------------------------------------------------------------------------------
/exampleSite/content/project/internal-project/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Internal Project
3 | summary: An example of using the in-built project page.
4 | tags:
5 | - Deep Learning
6 | date: "2016-04-27T00:00:00Z"
7 |
8 | # Optional external URL for project (replaces project detail page).
9 | external_link: ""
10 |
11 | image:
12 | caption: Photo by rawpixel on Unsplash
13 | focal_point: Smart
14 |
15 | links:
16 | - icon: twitter
17 | icon_pack: fab
18 | name: Follow
19 | url: https://twitter.com/georgecushen
20 | url_code: ""
21 | url_pdf: ""
22 | url_slides: ""
23 | url_video: ""
24 |
25 | # Slides (optional).
26 | # Associate this project with Markdown slides.
27 | # Simply enter your slide deck's filename without extension.
28 | # E.g. `slides = "example-slides"` references `content/slides/example-slides.md`.
29 | # Otherwise, set `slides = ""`.
30 | slides: example
31 | ---
32 |
33 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.
34 |
35 | Nullam vel molestie justo. Curabitur vitae efficitur leo. In hac habitasse platea dictumst. Sed pulvinar mauris dui, eget varius purus congue ac. Nulla euismod, lorem vel elementum dapibus, nunc justo porta mi, sed tempus est est vel tellus. Nam et enim eleifend, laoreet sem sit amet, elementum sem. Morbi ut leo congue, maximus velit ut, finibus arcu. In et libero cursus, rutrum risus non, molestie leo. Nullam congue quam et volutpat malesuada. Sed risus tortor, pulvinar et dictum nec, sodales non mi. Phasellus lacinia commodo laoreet. Nam mollis, erat in feugiat consectetur, purus eros egestas tellus, in auctor urna odio at nibh. Mauris imperdiet nisi ac magna convallis, at rhoncus ligula cursus.
36 |
37 | Cras aliquam rhoncus ipsum, in hendrerit nunc mattis vitae. Duis vitae efficitur metus, ac tempus leo. Cras nec fringilla lacus. Quisque sit amet risus at ipsum pharetra commodo. Sed aliquam mauris at consequat eleifend. Praesent porta, augue sed viverra bibendum, neque ante euismod ante, in vehicula justo lorem ac eros. Suspendisse augue libero, venenatis eget tincidunt ut, malesuada at lorem. Donec vitae bibendum arcu. Aenean maximus nulla non pretium iaculis. Quisque imperdiet, nulla in pulvinar aliquet, velit quam ultrices quam, sit amet fringilla leo sem vel nunc. Mauris in lacinia lacus.
38 |
39 | Suspendisse a tincidunt lacus. Curabitur at urna sagittis, dictum ante sit amet, euismod magna. Sed rutrum massa id tortor commodo, vitae elementum turpis tempus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean purus turpis, venenatis a ullamcorper nec, tincidunt et massa. Integer posuere quam rutrum arcu vehicula imperdiet. Mauris ullamcorper quam vitae purus congue, quis euismod magna eleifend. Vestibulum semper vel augue eget tincidunt. Fusce eget justo sodales, dapibus odio eu, ultrices lorem. Duis condimentum lorem id eros commodo, in facilisis mauris scelerisque. Morbi sed auctor leo. Nullam volutpat a lacus quis pharetra. Nulla congue rutrum magna a ornare.
40 |
41 | Aliquam in turpis accumsan, malesuada nibh ut, hendrerit justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque sed erat nec justo posuere suscipit. Donec ut efficitur arcu, in malesuada neque. Nunc dignissim nisl massa, id vulputate nunc pretium nec. Quisque eget urna in risus suscipit ultricies. Pellentesque odio odio, tincidunt in eleifend sed, posuere a diam. Nam gravida nisl convallis semper elementum. Morbi vitae felis faucibus, vulputate orci placerat, aliquet nisi. Aliquam erat volutpat. Maecenas sagittis pulvinar purus, sed porta quam laoreet at.
42 |
--------------------------------------------------------------------------------
/exampleSite/content/slides/example/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Slides
3 | summary: An introduction to using Wowchemy's Slides feature.
4 | authors: []
5 | tags: []
6 | categories: []
7 | date: "2019-02-05T00:00:00Z"
8 | slides:
9 | # Choose a theme from https://github.com/hakimel/reveal.js#theming
10 | theme: black
11 | # Choose a code highlighting style (if highlighting enabled in `params.toml`)
12 | # Light style: github. Dark style: dracula (default).
13 | highlight_style: dracula
14 | ---
15 |
16 | # Create slides in Markdown with Wowchemy
17 |
18 | [Wowchemy](https://wowchemy.com/) | [Documentation](https://owchemy.com/docs/managing-content/#create-slides)
19 |
20 | ---
21 |
22 | ## Features
23 |
24 | - Efficiently write slides in Markdown
25 | - 3-in-1: Create, Present, and Publish your slides
26 | - Supports speaker notes
27 | - Mobile friendly slides
28 |
29 | ---
30 |
31 | ## Controls
32 |
33 | - Next: `Right Arrow` or `Space`
34 | - Previous: `Left Arrow`
35 | - Start: `Home`
36 | - Finish: `End`
37 | - Overview: `Esc`
38 | - Speaker notes: `S`
39 | - Fullscreen: `F`
40 | - Zoom: `Alt + Click`
41 | - [PDF Export](https://github.com/hakimel/reveal.js#pdf-export): `E`
42 |
43 | ---
44 |
45 | ## Code Highlighting
46 |
47 | Inline code: `variable`
48 |
49 | Code block:
50 | ```python
51 | porridge = "blueberry"
52 | if porridge == "blueberry":
53 | print("Eating...")
54 | ```
55 |
56 | ---
57 |
58 | ## Math
59 |
60 | In-line math: $x + y = z$
61 |
62 | Block math:
63 |
64 | $$
65 | f\left( x \right) = \;\frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}}
66 | $$
67 |
68 | ---
69 |
70 | ## Fragments
71 |
72 | Make content appear incrementally
73 |
74 | ```
75 | {{%/* fragment */%}} One {{%/* /fragment */%}}
76 | {{%/* fragment */%}} **Two** {{%/* /fragment */%}}
77 | {{%/* fragment */%}} Three {{%/* /fragment */%}}
78 | ```
79 |
80 | Press `Space` to play!
81 |
82 | {{% fragment %}} One {{% /fragment %}}
83 | {{% fragment %}} **Two** {{% /fragment %}}
84 | {{% fragment %}} Three {{% /fragment %}}
85 |
86 | ---
87 |
88 | A fragment can accept two optional parameters:
89 |
90 | - `class`: use a custom style (requires definition in custom CSS)
91 | - `weight`: sets the order in which a fragment appears
92 |
93 | ---
94 |
95 | ## Speaker Notes
96 |
97 | Add speaker notes to your presentation
98 |
99 | ```markdown
100 | {{%/* speaker_note */%}}
101 | - Only the speaker can read these notes
102 | - Press `S` key to view
103 | {{%/* /speaker_note */%}}
104 | ```
105 |
106 | Press the `S` key to view the speaker notes!
107 |
108 | {{< speaker_note >}}
109 | - Only the speaker can read these notes
110 | - Press `S` key to view
111 | {{< /speaker_note >}}
112 |
113 | ---
114 |
115 | ## Themes
116 |
117 | - black: Black background, white text, blue links (default)
118 | - white: White background, black text, blue links
119 | - league: Gray background, white text, blue links
120 | - beige: Beige background, dark text, brown links
121 | - sky: Blue background, thin dark text, blue links
122 |
123 | ---
124 |
125 | - night: Black background, thick white text, orange links
126 | - serif: Cappuccino background, gray text, brown links
127 | - simple: White background, black text, blue links
128 | - solarized: Cream-colored background, dark green text, blue links
129 |
130 | ---
131 |
132 | {{< slide background-image="/media/boards.jpg" >}}
133 |
134 | ## Custom Slide
135 |
136 | Customize the slide style and background
137 |
138 | ```markdown
139 | {{* slide background-image="/media/boards.jpg" */>}}
140 | {{* slide background-color="#0000FF" */>}}
141 | {{* slide class="my-style" */>}}
142 | ```
143 |
144 | ---
145 |
146 | ## Custom CSS Example
147 |
148 | Let's make headers navy colored.
149 |
150 | Create `assets/css/reveal_custom.css` with:
151 |
152 | ```css
153 | .reveal section h1,
154 | .reveal section h2,
155 | .reveal section h3 {
156 | color: navy;
157 | }
158 | ```
159 |
160 | ---
161 |
162 | # Questions?
163 |
164 | [Ask](https://github.com/wowchemy/wowchemy-hugo-modules/discussions)
165 |
166 | [Documentation](https://wowchemy.com/docs/managing-content/#create-slides)
167 |
--------------------------------------------------------------------------------
/content/authors/admin/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | # Display name
3 | title: ""
4 |
5 | # Is this the primary user of the site?
6 | superuser: true
7 |
8 | # Role/position/tagline
9 | role: ""
10 |
11 | # Organizations/Affiliations to show in About widget
12 | organizations:
13 | - name: ""
14 | url: ""
15 |
16 | # Short bio (displayed in user profile at end of posts)
17 | bio: N. Cachanosky | MSU Denver
18 |
19 | # Interests to show in About widget
20 | # interests:
21 | # - Artificial Intelligence
22 | # - Computational Linguistics
23 | # - Information Retrieval
24 |
25 | # Education to show in About widget
26 | # education:
27 | # courses:
28 | # - course: PhD in Artificial Intelligence
29 | # institution: Stanford University
30 | # year: 2012
31 | # - course: MEng in Artificial Intelligence
32 | # institution: Massachusetts Institute of Technology
33 | # year: 2009
34 | # - course: BSc in Artificial Intelligence
35 | # institution: Massachusetts Institute of Technology
36 | # year: 2008
37 |
38 | # Social/Academic Networking
39 | # For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
40 | # For an email link, use "fas" icon pack, "envelope" icon, and a link in the
41 | # form "mailto:your-email@example.com" or "/#contact" for contact widget.
42 | #social:
43 | #- icon: envelope
44 | # icon_pack: fas
45 | # link: "mailto:ncachano@msudenver.edu"
46 | #- icon: twitter
47 | # icon_pack: fab
48 | # link: https://twitter.com/econ_hub
49 | # display:
50 | # header: true
51 | #- icon: google-scholar
52 | # icon_pack: ai
53 | # link: https://scholar.google.com/citations?hl=en&user=8Sj8DmAAAAAJ
54 | #- icon: orcid
55 | # icon_pack: ai
56 | # link: https://orcid.org/0000-0002-9685-0899
57 | #- icon: github
58 | # icon_pack: fab
59 | # link: https://github.com/ncachanosky
60 | #- icon: linkedin
61 | # icon_pack: fab
62 | # link: https://www.linkedin.com/in/ncachanosky/
63 |
64 | # Link to a PDF of your resume/CV.
65 | # To use: copy your resume to `static/media/resume.pdf`, enable `ai` icons in `params.toml`,
66 | # and uncomment the lines below.
67 | # - icon: cv
68 | # icon_pack: ai
69 | # link: media/resume.pdf
70 |
71 | # Enter email to display Gravatar (if Gravatar enabled in Config)
72 | email: ""
73 |
74 | # Highlight the author in author lists? (true/false)
75 | highlight_name: false
76 | ---
77 |
78 | **Macro with Python** uses topics typically covered in an Intermediate (or advanced) macroeconomics course to offer introductory examples to [Python](https://www.python.org/). The examples assume an introductiry knowledge of Python and same familiarity with intermediate macroeconomic models.
79 |
80 | The examples are intended to learn to use Python in the context of macroeconomic models. The examples are not intended to offer complete discussion of the models or coding techniques. The intention of **Macro with Python** is to get started with **how** to use Python in macroeconomics. [QuantEcon](https://quantecon.org/) offers more advanced an detailed documentation.
81 |
82 | {{< cta cta_text="Get started" cta_link="https://macro-with-python.netlify.app/python/" cta_new_tab="false" >}}
83 |
84 | {{% callout note %}}
85 | **Macro with Python** is an ongoing project. More examples will be added as they become available.
86 | [Submission](https://github.com/ncachanosky/Macro-with-Python/issues) of issues and recommendations are welcome.
87 | {{% /callout %}}
88 |
89 | ---
90 |
91 | [**NICOLÁS CACHANOSKY**](https://www.ncachanosky.com) | {{< icon name="envelope" >}} ncachano@msudenver.edu
92 | **Metropolitan State University of Denver** | Associate Professor of Economics
93 | **American Institute for Economic Research** | Senior Fellow
94 |
95 | ---
96 |
97 | Follow @ncachanosky Watch Star Sponsor
--------------------------------------------------------------------------------
/exampleSite/content/post/getting-started/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Welcome to Wowchemy, the website builder for Hugo
3 | subtitle: Welcome 👋 We know that first impressions are important, so we've populated your new site with some initial content to help you get familiar with everything in no time.
4 |
5 | # Summary for listings and search engines
6 | summary: Welcome 👋 We know that first impressions are important, so we've populated your new site with some initial content to help you get familiar with everything in no time.
7 |
8 | # Link this post with a project
9 | projects: []
10 |
11 | # Date published
12 | date: "2020-12-13T00:00:00Z"
13 |
14 | # Date updated
15 | lastmod: "2020-12-13T00:00:00Z"
16 |
17 | # Is this an unpublished draft?
18 | draft: false
19 |
20 | # Show this page in the Featured widget?
21 | featured: false
22 |
23 | # Featured image
24 | # Place an image named `featured.jpg/png` in this page's folder and customize its options here.
25 | image:
26 | caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/CpkOjOcXdUY)'
27 | focal_point: ""
28 | placement: 2
29 | preview_only: false
30 |
31 | authors:
32 | - admin
33 | - 吳恩達
34 |
35 | tags:
36 | - Academic
37 | - 开源
38 |
39 | categories:
40 | - Demo
41 | - 教程
42 | ---
43 |
44 | ## Overview
45 |
46 | 1. The Wowchemy website builder for Hugo, along with its starter templates, is designed for professional creators, educators, and teams/organizations - although it can be used to create any kind of site
47 | 2. The template can be modified and customised to suit your needs. It's a good platform for anyone looking to take control of their data and online identity whilst having the convenience to start off with a **no-code solution (write in Markdown and customize with YAML parameters)** and having **flexibility to later add even deeper personalization with HTML and CSS**
48 | 3. You can work with all your favourite tools and apps with hundreds of plugins and integrations to speed up your workflows, interact with your readers, and much more
49 |
50 | {{< figure src="https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/master/academic.png" title="The template is mobile first with a responsive design to ensure that your site looks stunning on every device." >}}
51 |
52 | ## Get Started
53 |
54 | - 👉 [**Create a new site**](https://wowchemy.com/templates/)
55 | - 📚 [**Personalize your site**](https://wowchemy.com/docs/)
56 | - 💬 [Chat with the **Wowchemy community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
57 | - 🐦 Twitter: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=(%23MadeWithWowchemy%20OR%20%23MadeWithAcademic)&src=typed_query)
58 | - 💡 [Request a **feature** or report a **bug** for _Wowchemy_](https://github.com/wowchemy/wowchemy-hugo-modules/issues)
59 | - ⬆️ **Updating Wowchemy?** View the [Update Guide](https://wowchemy.com/docs/guide/update/) and [Release Notes](https://wowchemy.com/updates/)
60 |
61 | ## Crowd-funded open-source software
62 |
63 | To help us develop this template and software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship.
64 |
65 | ### [❤️ Click here to become a sponsor and help support Wowchemy's future ❤️](https://wowchemy.com/plans/)
66 |
67 | As a token of appreciation for sponsoring, you can **unlock [these](https://wowchemy.com/plans/) awesome rewards and extra features 🦄✨**
68 |
69 | ## Ecosystem
70 |
71 | * **[Hugo Academic CLI](https://github.com/wowchemy/hugo-academic-cli):** Automatically import publications from BibTeX
72 |
73 | ## Inspiration
74 |
75 | [Check out the latest **demo**](https://academic-demo.netlify.com/) of what you'll get in less than 10 minutes, or [view the **showcase**](https://wowchemy.com/user-stories/) of personal, project, and business sites.
76 |
77 | ## Features
78 |
79 | - **Page builder** - Create *anything* with [**widgets**](https://wowchemy.com/docs/page-builder/) and [**elements**](https://wowchemy.com/docs/writing-markdown-latex/)
80 | - **Edit any type of content** - Blog posts, publications, talks, slides, projects, and more!
81 | - **Create content** in [**Markdown**](https://wowchemy.com/docs/writing-markdown-latex/), [**Jupyter**](https://wowchemy.com/docs/import/jupyter/), or [**RStudio**](https://wowchemy.com/docs/install-locally/)
82 | - **Plugin System** - Fully customizable [**color** and **font themes**](https://wowchemy.com/docs/customization/)
83 | - **Display Code and Math** - Code highlighting and [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics) supported
84 | - **Integrations** - [Google Analytics](https://analytics.google.com), [Disqus commenting](https://disqus.com), Maps, Contact Forms, and more!
85 | - **Beautiful Site** - Simple and refreshing one page design
86 | - **Industry-Leading SEO** - Help get your website found on search engines and social media
87 | - **Media Galleries** - Display your images and videos with captions in a customizable gallery
88 | - **Mobile Friendly** - Look amazing on every screen with a mobile friendly version of your site
89 | - **Multi-language** - 34+ language packs including English, 中文, and Português
90 | - **Multi-user** - Each author gets their own profile page
91 | - **Privacy Pack** - Assists with GDPR
92 | - **Stand Out** - Bring your site to life with animation, parallax backgrounds, and scroll effects
93 | - **One-Click Deployment** - No servers. No databases. Only files.
94 |
95 | ## Themes
96 |
97 | Wowchemy and its templates come with **automatic day (light) and night (dark) mode** built-in. Alternatively, visitors can choose their preferred mode - click the moon icon in the top right of the [Demo](https://academic-demo.netlify.com/) to see it in action! Day/night mode can also be disabled by the site admin in `params.toml`.
98 |
99 | [Choose a stunning **theme** and **font**](https://wowchemy.com/docs/customization) for your site. Themes are fully customizable.
100 |
101 | ## License
102 |
103 | Copyright 2016-present [George Cushen](https://georgecushen.com).
104 |
105 | Released under the [MIT](https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/LICENSE.md) license.
106 |
--------------------------------------------------------------------------------
/static/Python/The labor market.py:
--------------------------------------------------------------------------------
1 | #|============================================================================|
2 | #|============================================================================|
3 | #|MACROECONOMICS WITH PYTHON: THE LABOR MARKET |
4 | #|Nicolas Cachanosky |
5 | #|Metropolitan State University of Denver |
6 | #|ncachano@msudenver.edu |
7 | #|http://www.ncachanosky.com |
8 | #|============================================================================|
9 | #|============================================================================|
10 |
11 | #%% | *** CELL 1 ***
12 | "============================================================================"
13 | "1|IMPORT PACKAGES"
14 | import numpy as np # Package for scientific computing
15 | import matplotlib.pyplot as plt # Matplotlib is a 2D plotting library
16 | from scipy.optimize import root # Package to find the roots of a function
17 |
18 |
19 | "============================================================================"
20 | "2|DEFINE PARAMETERS AND ARRAYS"
21 | # Code parameters
22 | dpi=300
23 | size = 50 # Real wage domain
24 | # Model parameters
25 | K = 20 # Capital stock
26 | A = 20 # Technology
27 | alpha = 0.7 # Output elasticity of capital
28 | # Arrays
29 | rW = np.linspace(1, size, size*2) # Real wage
30 |
31 |
32 | "============================================================================"
33 | "3|LABOR DEMAND FUNCTION"
34 | def Ndemand(A, K, rW, alpha):
35 | Nd = K * ((1 - alpha)*A/rW)**(1/alpha)
36 | return Nd
37 |
38 |
39 | "============================================================================"
40 | "4|CALCULATE LABOR DEMAND AND SHOCK EFFECTS"
41 | D_K = 20 # Shock to K
42 | D_A = 20 # Shock to A
43 | D_a = 0.2 # Shock to alpha
44 |
45 | Nd = Ndemand(A , K , rW, alpha)
46 | Nd_K = Ndemand(A , K+D_K, rW, alpha)
47 | Nd_A = Ndemand(A+D_A, K , rW, alpha)
48 | Nd_a = Ndemand(A , K , rW, alpha+D_a)
49 |
50 |
51 | "============================================================================"
52 | "5|PLOT LABOR DEMAND AND SHOCK EFFECTS"
53 | # AXIS RANGE
54 | axis_range = [0, 30, 0, size]
55 |
56 | # BUILD PLOT
57 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
58 | ax.set(title="LABOR DEMAND", xlabel=r'Nd', ylabel=r'w/P')
59 | # ADD DEMAND CURVES
60 | ax.plot(Nd , rW, "k-", alpha=0.75, label="Labor demand", linewidth=3)
61 | ax.plot(Nd_K, rW, "b-", alpha=0.75, label="Capital shock")
62 | ax.plot(Nd_A, rW, "r-", alpha=0.75, label="Productivity shock")
63 | ax.plot(Nd_a, rW, "g-", alpha=0.75, label="Output elasticity of K shock")
64 | # AXIS
65 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
66 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
67 | #SETTINGS
68 | ax.grid()
69 | ax.legend()
70 | plt.axis(axis_range)
71 | plt.show()
72 |
73 |
74 | #%% *** CELL 2 ***
75 | "============================================================================"
76 | "6|DEFINE PARAMETERS AND ARRAYS"
77 | # Model parameters
78 | T = 24 # Available hours to work
79 | beta = 0.7 # Utility elasticity of consumption
80 | I = 50 # Non-labor income
81 | rW2 = 25 # Real wage
82 | # Arrays
83 | L = np.linspace(1, T, T*4) # Array of labor hours from 0 to T
84 |
85 |
86 | "============================================================================"
87 | "7|CALCULATE OPTIMAL VALUES AND DEFINE FUNCTIONS"
88 | Ustar = (beta*(I + T*rW2))**beta * ((1 - beta)*(I + T*rW2)/rW2)**(1 - beta)
89 | Lstar = (1 - beta)*((I + T*rW2)/rW2)
90 | Cstar = beta*(I + T*rW2)
91 |
92 | # Consumption function
93 | def C_indiff(U, L, beta):
94 | C_indiff = (U/L**(1 - beta))**(1/beta)
95 | return C_indiff
96 |
97 | # Budget constraint
98 | def Budget(I, rW2, L):
99 | Budget = (I + T*rW2) - rW2*L
100 | return Budget
101 |
102 | # Populate the indifference curve and the budget constraint
103 | B = Budget(I, rW2, L)
104 | C = C_indiff(Ustar, L, beta)
105 |
106 |
107 | "============================================================================"
108 | "8|PLOT THE INDIFFERENCE CURVE AND THE BUDDGET CONSTRAINT"
109 | y_max = 2*Budget(I, rW2, 0)
110 |
111 | # AXIS RANGE
112 | axis_range = [0, T+1, 0, y_max]
113 |
114 | # BUILD PLOT
115 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
116 | ax.set(title="INDIFFERENCE CURVE", xlabel="Leisure", ylabel="Real income")
117 | # ADD LINES TO THE PLOT
118 | ax.plot(L, C, "g-", alpha=0.75, label="Indifference curve")
119 | ax.plot(L, B, "k-", alpha=0.75, label="Budget constraint")
120 | plt.axvline(x=T , ymin=0, alpha=0.75, ymax=I/y_max, color='k') # Add I
121 | plt.axvline(x=Lstar, ymin=0, alpha=0.75, ymax = Cstar/y_max, ls=':', color='k')
122 | plt.axhline(y=Cstar, xmin=0, alpha=0.75, xmax = Lstar/T , ls=':', color='k')
123 | plt.plot(Lstar, Cstar, 'bo')
124 | # LABELS
125 | plt.text(0.1 , Cstar+5, np.round(Cstar, 1), color="k")
126 | plt.text(Lstar+0.2, 10 , np.round(Lstar, 1), color="k")
127 | # SETTINGS
128 | ax.grid()
129 | ax.legend()
130 | plt.axis(axis_range)
131 | plt.show()
132 |
133 |
134 | #%% *** CELL 3 ***
135 | "============================================================================"
136 | "9|LABOR SUPPLY"
137 | def Nsupply(rW, beta, I):
138 | Lsupply = T - (1 - beta)*((T*rW + I)/rW)
139 | return Lsupply
140 |
141 | D_I = 25 # Shock to non-income labor
142 | D_b = 0.10 # Shock to beta
143 |
144 | Ns = Nsupply(rW, beta , I)
145 | Ns_b = Nsupply(rW, beta+D_b, I)
146 | Ns_I = Nsupply(rW, beta , I+D_I)
147 |
148 |
149 | "============================================================================"
150 | "10|PLOT LABOR SUPPLY"
151 | # AXIS RANGE
152 | y_max = np.max(Ns)
153 | axis_range = [0, T, 0, y_max]
154 |
155 | # BUILD PLOT
156 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
157 | ax.set(title="LABOR SUPPLY", xlabel="Work Hs.", ylabel=r'(w/P)')
158 | # ADD LABOR SUPPLY LINES
159 | ax.plot(Ns , rW, "k", alpha=0.75, label="Labor supply", linewidth=3)
160 | ax.plot(Ns_I, rW, "b", alpha=0.75, label="Non-labor income shock")
161 | ax.plot(Ns_b, rW, "r", alpha=0.75, label="Consumption elasticy of utility shock")
162 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
163 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
164 | # SETTINGS
165 | ax.grid()
166 | ax.legend()
167 | plt.axis(axis_range)
168 | plt.show()
169 |
170 |
171 | #%% *** CELL 4 ***
172 | "============================================================================"
173 | "11|OPTIMIZATION PROBLEM: FIND EQUILIBRIUM VALUES"
174 | def Eq_Wage(rW):
175 | Eq_Wage = Ndemand(A, K, rW, alpha) - Nsupply(rW, beta, I)
176 | return Eq_Wage
177 |
178 | rW_0 = 10 # Initial value (guess)
179 | rW_star = root(Eq_Wage, rW_0) # Equilibrium: Wage
180 | N_star = Nsupply(rW_star.x, beta, I) # Equilibrium: Labor
181 |
182 |
183 | "============================================================================"
184 | "12|PLOT LABOR MARKET EQUILIBRIUM"
185 | #AXIS RANGE
186 | y_max = rW_star.x*2
187 | axis_range = [0, T, 0, 12] # Set the axes range
188 |
189 | # BUILD PLOT
190 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
191 | ax.set(title="LABOR SUPPLY", xlabel="Work Hs.", ylabel=r'(w/P)')
192 | # ADD LABOR DEMAND AND SUPPLY
193 | ax.plot(Ns[1:T], rW[1:T], "k", label="Labor supply")
194 | ax.plot(Nd[1:T], rW[1:T], "k", label="Labor demand")
195 | plt.plot(N_star, rW_star.x, 'bo')
196 | plt.axvline(x=N_star , ymin=0, ymax=rW_star.x/12, ls=':', color='k')
197 | plt.axhline(y=rW_star.x, xmin=0, xmax=N_star/T , ls=':', color='k')
198 | # ADD LABELS
199 | plt.text( 4.5 , 11, "Labor demand")
200 | plt.text(20 , 5, "Labor supply")
201 | plt.text(0.2 , rW_star.x+0.3, np.round(rW_star.x, 1))
202 | plt.text(N_star+0.3, 0.3 , np.round(N_star, 1))
203 | # SETTINGS
204 | plt.axis(axis_range)
205 | plt.show()
--------------------------------------------------------------------------------
/static/Python/R&D Growth Model.py:
--------------------------------------------------------------------------------
1 | #|============================================================================|
2 | #|============================================================================|
3 | #|MACROECONOMICS WITH PYTHON: THE R&D GROWTH MODEL |
4 | #|Nicolas Cachanosky |
5 | #|Metropolitan State University of Denver |
6 | #|ncachano@msudenver.edu |
7 | #|http://www.ncachanosky.com |
8 | #|============================================================================|
9 | #|============================================================================|
10 |
11 | #%% *** CELL 1 ***
12 | "|***************************************************************************|"
13 | "1|IMPORT PACKAGES"
14 | import numpy as np # Package for scientific computing with Python
15 | import matplotlib.pyplot as plt # Matplotlib is a 2D plotting library
16 |
17 |
18 | "|***************************************************************************|"
19 | "2|DEFINE PARAMETERS AND ARRAYS"
20 | # Code parameters
21 | dpi = 300
22 | step = 0.01
23 | # Model parameters
24 | n = 0.02 # Growth rate of population
25 | beta = 0.50 # Exponent of capital in the production of ideas
26 | gamma = 1 - beta # Exponent of labor in the priduction of ideas
27 | theta = 0.25 # Exponent of technology in the production of ideas
28 |
29 | # Arrays
30 | gA = np.arange(0, 1, step) # Array between 0 and 1 with step size=0.01
31 | gK = n + gA
32 |
33 |
34 | "|***************************************************************************|"
35 | "3|DEFINE AND POPULATE THE SADDLE-PATH FUNCTIONS"
36 | # Saddle paths for K and A
37 | ss_K = n + gA
38 | ss_A = -(gamma*n)/beta + (1 - theta)/beta*gA
39 |
40 | # Intercept of K saddle-path
41 | ss_int = -(gamma*n)/beta
42 |
43 |
44 | "|***************************************************************************|"
45 | "4|EQUILIBRIUM VALUES"
46 | A_star = n*(beta + gamma)/(1 - (theta + gamma))
47 | K_star = n + A_star
48 |
49 |
50 | "|***************************************************************************|"
51 | "5|PLOT THE SADDLE-PATH"
52 | ### AXIS RANGE
53 | axis_range = [0, gA.max()*0.2, -0.05, gK.max()*0.2]
54 |
55 | ### BUILD FIGURE
56 | plt.figure(figsize=(10, 7), dpi=dpi)
57 | plt.title("DYNAMICS OF GROWTH RATES OF CAPITAL AND TECHNOLOGY")
58 | plt.plot(gA, ss_A, "k-", label=r'$g_A(t)$')
59 | plt.plot(gA, ss_K, "k-", label=r'$g_K(t)$')
60 | ### EQUILIBRIUM MARKS
61 | plt.axvline(A_star, -axis_range[2]/(0.25), (0.05+K_star)/0.25 , ls=":")
62 | plt.axhline(K_star, 0.0 , A_star/axis_range[1], ls=":")
63 | ### AXIS
64 | plt.axvline(0, color="k") # Add vertical axis
65 | plt.axhline(0, color="k") # Add horizontal axis
66 | plt.xticks([], []) # Hide x-axis ticks
67 | plt.yticks([], []) # Hide y-axis ticks
68 | plt.text(-0.01 , axis_range[3]-0.01, r'$g_K(t)$') # x-axis label
69 | plt.text(axis_range[1]-0.01, -0.01 , r'$g_A(t)$') # y-axis label
70 | ### VALUES AND LABELS
71 | plt.text(axis_range[1]-0.03, axis_range[3]-0.02, r'$\dot{g_A(t)^*}=0$')
72 | plt.text(axis_range[1]-0.09, axis_range[3]-0.02, r'$\dot{g_K(t)^*}=0$')
73 | plt.text(A_star, -0.01 , r'$g_A(t)^*$', horizontalalignment="center")
74 | plt.text(-0.001, K_star, r'$g_K(t)^*$', horizontalalignment="right")
75 | plt.text(-0.001, n , r'$n$' , horizontalalignment="right")
76 | plt.text(-0.001, ss_int, r'$-\frac{\gamma n}{\beta}$',
77 | horizontalalignment="right")
78 | ### SETINGS
79 | plt.box(False)
80 | plt.axis(axis_range)
81 | plt.show()
82 |
83 |
84 | #%% *** CELL 2 ***
85 | "|***************************************************************************|"
86 | "6|DEFINE PARAMETERS AND ARRAYS"
87 | # Parameters
88 | alpha = 0.60 # Exponent of capital in the production of goods
89 |
90 |
91 | "|***************************************************************************|"
92 | "7|STABILITY DYNAMICS"
93 | iterations = 75
94 |
95 | " | Starting Poin A (blue)"
96 | # Create arrays to store model dynamics
97 | A_gA = np.zeros(iterations)
98 | A_gK = np.zeros(iterations)
99 | # Set arbitrary initial values
100 | A_gA[0] = 0.015
101 | A_gK[0] = 0.020
102 |
103 | for j in range(1, iterations):
104 | A_gA[j] = A_gA[j-1] + beta*A_gK[j-1] + gamma*n + (theta-1)*A_gA[j-1]
105 | A_gK[j] = A_gK[j-1] + (1-alpha)*(A_gA[j-1] + n - A_gK[j-1])
106 |
107 | " | Starting Poin B (green)"
108 | # Create arrays to store model dynamics
109 | B_gA = np.zeros(iterations)
110 | B_gK = np.zeros(iterations)
111 | # Set arbitrary initial values
112 | B_gA[0] = 0.015
113 | B_gK[0] = 0.180
114 |
115 | for j in range(1, iterations):
116 | B_gA[j] = B_gA[j-1] + beta*B_gK[j-1] + gamma*n + (theta-1)*B_gA[j-1]
117 | B_gK[j] = B_gK[j-1] + (1-alpha)*(B_gA[j-1] + n - B_gK[j-1])
118 |
119 | " | Starting Poin C (red)"
120 | # Create arrays to store model dynamics
121 | C_gA = np.zeros(iterations)
122 | C_gK = np.zeros(iterations)
123 | # Set arbitrary initial values
124 | C_gA[0] = 0.150
125 | C_gK[0] = 0.180
126 |
127 | for j in range(1, iterations):
128 | C_gA[j] = C_gA[j-1] + beta*C_gK[j-1] + gamma*n + (theta-1)*C_gA[j-1]
129 | C_gK[j] = C_gK[j-1] + (1-alpha)*(C_gA[j-1] + n - C_gK[j-1])
130 |
131 | " | Starting Poin D (cyan)"
132 | # Create arrays to store model dynamics
133 | D_gA = np.zeros(iterations)
134 | D_gK = np.zeros(iterations)
135 | # Set arbitrary initial values
136 | D_gA[0] = 0.150
137 | D_gK[0] = 0.020
138 |
139 | for j in range(1, iterations):
140 | D_gA[j] = D_gA[j-1] + beta*D_gK[j-1] + gamma*n + (theta-1)*D_gA[j-1]
141 | D_gK[j] = D_gK[j-1] + (1-alpha)*(D_gA[j-1] + n - D_gK[j-1])
142 |
143 |
144 | "|***************************************************************************|"
145 | "8|PLOT THE SADDLE-PATH"
146 | ### AXIS RANGE
147 | axis_range = [0, gA.max()*0.2, -0.05, gK.max()*0.2]
148 |
149 | # BUILD PLOT
150 | plt.figure(figsize=(10, 7), dpi=dpi)
151 | plt.title("MODEL STABILITY")
152 | plt.plot(gA, ss_A, "k-", label=r'$g_A(t)$')
153 | plt.plot(gA, ss_K, "k-", label=r'$g_K(t)$')
154 | ### EQUILIBRIUM MARKS
155 | plt.axvline(A_star, -axis_range[2]/(0.25), (0.05+K_star)/0.25 , ls=":")
156 | plt.axhline(K_star, 0.0 , A_star/axis_range[1], ls=":")
157 | ### AXIS
158 | plt.axvline(0, color="k") # Add vertical axis
159 | plt.axhline(0, color="k") # Add horizontal axis
160 | plt.xticks([], []) # Hide x-axis ticks
161 | plt.yticks([], []) # Hide y-axis ticks
162 | plt.text(-0.01 , axis_range[3]-0.01, r'$g_K(t)$') # x-axis label
163 | plt.text(axis_range[1]-0.01, -0.01 , r'$g_A(t)$') # y-axis label
164 | ### VALUES AND LABELS
165 | plt.text(A_star, -0.01 , r'$g_A(t)^*$', horizontalalignment="center")
166 | plt.text(-0.001, K_star, r'$g_K(t)^*$', horizontalalignment="right")
167 | plt.text(axis_range[1]-0.03, axis_range[3]-0.02, r'$\dot{g_A(t)^*}=0$')
168 | plt.text(axis_range[1]-0.09, axis_range[3]-0.02, r'$\dot{g_K(t)^*}=0$')
169 | ### MODEL DYNAMICS
170 | plt.plot(A_gA[0], A_gK[0], "bo")
171 | plt.plot(A_gA , A_gK , "b:")
172 | plt.plot(B_gA[0], B_gK[0], "go")
173 | plt.plot(B_gA , B_gK , "g:")
174 | plt.plot(C_gA[0], C_gK[0], "ro")
175 | plt.plot(C_gA , C_gK , "r:")
176 | plt.plot(D_gA[0], D_gK[0], "co")
177 | plt.plot(D_gA , D_gK , "c:")
178 | plt.text(A_gA[0]-0.005, A_gK[0] , "A", color="b")
179 | plt.text(B_gA[0]-0.005, B_gK[0] , "B", color="g")
180 | plt.text(C_gA[0] , C_gK[0]+0.005, "C", color="r")
181 | plt.text(D_gA[0]+0.005, D_gK[0] , "D", color="c")
182 | # ARROWS
183 | plt.arrow(A_gA[0], A_gK[0], 0.005, 0 , color="b")
184 | plt.arrow(A_gA[0], A_gK[0], 0 , 0.005, color="b")
185 | plt.arrow(B_gA[0], B_gK[0], 0.005, 0 , color="g")
186 | plt.arrow(B_gA[0], B_gK[0], 0 ,-0.005, color="g")
187 | plt.arrow(C_gA[0], C_gK[0], -0.005, 0 , color="r")
188 | plt.arrow(C_gA[0], C_gK[0], 0 ,-0.005, color="r")
189 | plt.arrow(D_gA[0], D_gK[0], -0.005, 0 , color="c")
190 | plt.arrow(D_gA[0], D_gK[0], 0 , 0.005, color="c")
191 | ### SETTINGS
192 | plt.box(False)
193 | plt.axis(axis_range)
194 | plt.show()
--------------------------------------------------------------------------------
/exampleSite/content/post/writing-technical-content/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Writing technical content in Academic
3 | date: 2019-07-12
4 | math: true
5 | diagram: true
6 | highlight: true
7 | image:
8 | placement: 3
9 | caption: 'Image credit: [**John Moeses Bauan**](https://unsplash.com/photos/OGZtQF8iC0g)'
10 | ---
11 |
12 | Academic is designed to give technical content creators a seamless experience. You can focus on the content and Academic handles the rest.
13 |
14 | **Highlight your code snippets, take notes on math classes, and draw diagrams from textual representation.**
15 |
16 | On this page, you'll find some examples of the types of technical content that can be rendered with Academic.
17 |
18 | ## Examples
19 |
20 | ### Code
21 |
22 | Academic supports a Markdown extension for highlighting code syntax. You can enable this feature by toggling the `highlight` option in your `config/_default/params.toml` file.
23 |
24 | ```python
25 | import pandas as pd
26 | data = pd.read_csv("data.csv")
27 | data.head()
28 | ```
29 |
30 | renders as
31 |
32 | ```python
33 | import pandas as pd
34 | data = pd.read_csv("data.csv")
35 | data.head()
36 | ```
37 |
38 | ### Charts
39 |
40 | Academic supports the popular [Plotly](https://plot.ly/) chart format.
41 |
42 | Save your Plotly JSON in your page folder, for example `chart.json`, and then add the `{{* chart data="chart" */>}}` shortcode where you would like the chart to appear.
43 |
44 | Demo:
45 |
46 | {{< chart data="line-chart" >}}
47 |
48 | You might also find the [Plotly JSON Editor](http://plotly-json-editor.getforge.io/) useful.
49 |
50 | ### Math
51 |
52 | Academic supports a Markdown extension for $\LaTeX$ math. You can enable this feature by toggling the `math` option in your `config/_default/params.toml` file.
53 |
54 | To render *inline* or *block* math, wrap your LaTeX math with `$...$` or `$$...$$`, respectively.
55 |
56 | Example **math block**:
57 |
58 | ```latex
59 | $$\gamma_{n} = \frac{
60 | \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T
61 | \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}
62 | {\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}$$
63 | ```
64 |
65 | renders as
66 |
67 | $$\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}$$
68 |
69 | Example **inline math** `$\nabla F(\mathbf{x}_{n})$` renders as $\nabla F(\mathbf{x}_{n})$.
70 |
71 | Example **multi-line math** using the `\\\\` math linebreak:
72 |
73 | ```latex
74 | $$f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} & \text{if }k=1, \\\\
75 | 1-p_{0}^{*} & \text{if }k=0.\end{cases}$$
76 | ```
77 |
78 | renders as
79 |
80 | $$f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} & \text{if }k=1, \\\\
81 | 1-p_{0}^{*} & \text{if }k=0.\end{cases}$$
82 |
83 | ### Diagrams
84 |
85 | Academic supports a Markdown extension for diagrams. You can enable this feature by toggling the `diagram` option in your `config/_default/params.toml` file or by adding `diagram: true` to your page front matter.
86 |
87 | An example **flowchart**:
88 |
89 | ```mermaid
90 | graph TD
91 | A[Hard] -->|Text| B(Round)
92 | B --> C{Decision}
93 | C -->|One| D[Result 1]
94 | C -->|Two| E[Result 2]
95 | ```
96 |
97 | renders as
98 |
99 | ```mermaid
100 | graph TD
101 | A[Hard] -->|Text| B(Round)
102 | B --> C{Decision}
103 | C -->|One| D[Result 1]
104 | C -->|Two| E[Result 2]
105 | ```
106 |
107 | An example **sequence diagram**:
108 |
109 | ```mermaid
110 | sequenceDiagram
111 | Alice->>John: Hello John, how are you?
112 | loop Healthcheck
113 | John->>John: Fight against hypochondria
114 | end
115 | Note right of John: Rational thoughts!
116 | John-->>Alice: Great!
117 | John->>Bob: How about you?
118 | Bob-->>John: Jolly good!
119 | ```
120 |
121 | renders as
122 |
123 | ```mermaid
124 | sequenceDiagram
125 | Alice->>John: Hello John, how are you?
126 | loop Healthcheck
127 | John->>John: Fight against hypochondria
128 | end
129 | Note right of John: Rational thoughts!
130 | John-->>Alice: Great!
131 | John->>Bob: How about you?
132 | Bob-->>John: Jolly good!
133 | ```
134 |
135 | An example **Gantt diagram**:
136 |
137 | ```mermaid
138 | gantt
139 | section Section
140 | Completed :done, des1, 2014-01-06,2014-01-08
141 | Active :active, des2, 2014-01-07, 3d
142 | Parallel 1 : des3, after des1, 1d
143 | Parallel 2 : des4, after des1, 1d
144 | Parallel 3 : des5, after des3, 1d
145 | Parallel 4 : des6, after des4, 1d
146 | ```
147 |
148 | renders as
149 |
150 | ```mermaid
151 | gantt
152 | section Section
153 | Completed :done, des1, 2014-01-06,2014-01-08
154 | Active :active, des2, 2014-01-07, 3d
155 | Parallel 1 : des3, after des1, 1d
156 | Parallel 2 : des4, after des1, 1d
157 | Parallel 3 : des5, after des3, 1d
158 | Parallel 4 : des6, after des4, 1d
159 | ```
160 |
161 | An example **class diagram**:
162 |
163 | ```mermaid
164 | classDiagram
165 | Class01 <|-- AveryLongClass : Cool
166 | <> Class01
167 | Class09 --> C2 : Where am i?
168 | Class09 --* C3
169 | Class09 --|> Class07
170 | Class07 : equals()
171 | Class07 : Object[] elementData
172 | Class01 : size()
173 | Class01 : int chimp
174 | Class01 : int gorilla
175 | class Class10 {
176 | <>
177 | int id
178 | size()
179 | }
180 | ```
181 |
182 | renders as
183 |
184 | ```mermaid
185 | classDiagram
186 | Class01 <|-- AveryLongClass : Cool
187 | <> Class01
188 | Class09 --> C2 : Where am i?
189 | Class09 --* C3
190 | Class09 --|> Class07
191 | Class07 : equals()
192 | Class07 : Object[] elementData
193 | Class01 : size()
194 | Class01 : int chimp
195 | Class01 : int gorilla
196 | class Class10 {
197 | <>
198 | int id
199 | size()
200 | }
201 | ```
202 |
203 | An example **state diagram**:
204 |
205 | ```mermaid
206 | stateDiagram
207 | [*] --> Still
208 | Still --> [*]
209 | Still --> Moving
210 | Moving --> Still
211 | Moving --> Crash
212 | Crash --> [*]
213 | ```
214 |
215 | renders as
216 |
217 | ```mermaid
218 | stateDiagram
219 | [*] --> Still
220 | Still --> [*]
221 | Still --> Moving
222 | Moving --> Still
223 | Moving --> Crash
224 | Crash --> [*]
225 | ```
226 |
227 | ### Todo lists
228 |
229 | You can even write your todo lists in Academic too:
230 |
231 | ```markdown
232 | - [x] Write math example
233 | - [x] Write diagram example
234 | - [ ] Do something else
235 | ```
236 |
237 | renders as
238 |
239 | - [x] Write math example
240 | - [x] Write diagram example
241 | - [ ] Do something else
242 |
243 | ### Tables
244 |
245 | Represent your data in tables:
246 |
247 | ```markdown
248 | | First Header | Second Header |
249 | | ------------- | ------------- |
250 | | Content Cell | Content Cell |
251 | | Content Cell | Content Cell |
252 | ```
253 |
254 | renders as
255 |
256 | | First Header | Second Header |
257 | | ------------- | ------------- |
258 | | Content Cell | Content Cell |
259 | | Content Cell | Content Cell |
260 |
261 | ### Callouts
262 |
263 | Academic supports a [shortcode for callouts](https://wowchemy.com/docs/content/writing-markdown-latex/#callouts), also referred to as *asides*, *hints*, or *alerts*. By wrapping a paragraph in `{{%/* callout note */%}} ... {{%/* /callout */%}}`, it will render as an aside.
264 |
265 | ```markdown
266 | {{%/* callout note */%}}
267 | A Markdown aside is useful for displaying notices, hints, or definitions to your readers.
268 | {{%/* /callout */%}}
269 | ```
270 |
271 | renders as
272 |
273 | {{% callout note %}}
274 | A Markdown aside is useful for displaying notices, hints, or definitions to your readers.
275 | {{% /callout %}}
276 |
277 | ### Spoilers
278 |
279 | Add a spoiler to a page to reveal text, such as an answer to a question, after a button is clicked.
280 |
281 | ```markdown
282 | {{* spoiler text="Click to view the spoiler" */>}}
283 | You found me!
284 | {{* /spoiler */>}}
285 | ```
286 |
287 | renders as
288 |
289 | {{< spoiler text="Click to view the spoiler" >}} You found me! {{< /spoiler >}}
290 |
291 | ### Icons
292 |
293 | Academic enables you to use a wide range of [icons from _Font Awesome_ and _Academicons_](https://sourcethemes.com/academic/docs/page-builder/#icons) in addition to [emojis](https://sourcethemes.com/academic/docs/writing-markdown-latex/#emojis).
294 |
295 | Here are some examples using the `icon` shortcode to render icons:
296 |
297 | ```markdown
298 | {{* icon name="terminal" pack="fas" */>}} Terminal
299 | {{* icon name="python" pack="fab" */>}} Python
300 | {{* icon name="r-project" pack="fab" */>}} R
301 | ```
302 |
303 | renders as
304 |
305 | {{< icon name="terminal" pack="fas" >}} Terminal
306 | {{< icon name="python" pack="fab" >}} Python
307 | {{< icon name="r-project" pack="fab" >}} R
308 |
309 | ### Did you find this page helpful? Consider sharing it 🙌
310 |
--------------------------------------------------------------------------------
/static/Python/The IS-LM model.py:
--------------------------------------------------------------------------------
1 | #|============================================================================|
2 | #|============================================================================|
3 | #|MACROECONOMICS WITH PYTHON: THE IS-LM MODEL |
4 | #|Nicolas Cachanosky |
5 | #|Metropolitan State University of Denver |
6 | #|ncachano@msudenver.edu |
7 | #|http://www.ncachanosky.com |
8 | #|============================================================================|
9 | #|============================================================================|
10 |
11 | #%% *** CELL 1 ***
12 | "============================================================================"
13 | "1|IMPORT PACKAGES"
14 | import numpy as np # Package for scientific computing
15 | import matplotlib.pyplot as plt # Matplotlib is a 2D plotting library
16 |
17 |
18 | "============================================================================"
19 | "2|DEFINE PARAMETERS AND ARRAYS"
20 | # Code parameters
21 | dpi = 300
22 | # IS parameters
23 | Y_size = 100
24 | a = 20 # Autonomous consumption
25 | b = 0.2 # Marginal propensity to consume
26 | alpha = 5 # Autonomous imports
27 | beta = 0.2 # Marginal propensity to import
28 | T = 1 # Taxes
29 | I = 10 # Investment intercept (when i = 0)
30 | G = 8 # Government spending
31 | X = 2 # Exports (given)
32 | d = 5 # Investment slope wrt to i
33 | # Arrays
34 | Y = np.linspace(0, Y_size, Y_size*2) # Array values of Y
35 |
36 |
37 | "============================================================================"
38 | "3|DEFINE AND POPULATE THE IS-SCHEDULE"
39 | def i_IS(a, alpha, b, beta, T, I, G, X, d, Y):
40 | i_IS = ((a-alpha)-(b-beta)*T + I + G + X - (1-b+beta)*Y)/d
41 | return i_IS
42 |
43 | def Y_IS(a, alpha, b, beta, T, I, G, X, d, i):
44 | Y_IS = ((a-alpha)-(b-beta)*T + I + G + X - d*i)/(1-b+beta)
45 | return Y_IS
46 |
47 | i = i_IS(a, alpha, b, beta, T, I, G, X, d, Y)
48 |
49 |
50 | "============================================================================"
51 | "4|PLOT THE IS-SCHEDULE"
52 | ### AXIS RANGE
53 | y_max = np.max(i)
54 | x_max = Y_IS(a, alpha, b, beta, T, I, G, X, d, 0)
55 | axis_range = [0, x_max, 0, y_max]
56 |
57 | ### BUILD PLOT
58 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
59 | ax.set(title="IS SCHEDULE", xlabel=r'Y', ylabel=r'r')
60 | ax.plot(Y, i, "k-")
61 | ### AXIS
62 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
63 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
64 | ### SETTINGS
65 | plt.axis(axis_range)
66 | plt.show()
67 |
68 |
69 | #%% *** CELL 2 ***
70 | "============================================================================"
71 | "5|DEFINE PARAMETERS"
72 | # LM Parameters
73 | c1 = 1000 # Precautionary money demand
74 | c2 = 10 # Transaction money demand
75 | c3 = 10 # Speculation money demand
76 | Ms = 20000 # Nominal money supply
77 | P = 20 # Price level
78 |
79 |
80 | "============================================================================"
81 | "6|DEFINE AND POPULATE THE LM-SCHEDULE"
82 | def i_LM(c1, c2, c3, Ms, P, Y):
83 | i_LM = (c1 - Ms/P)/c3 + c2/c3*Y
84 | return i_LM
85 |
86 | i = i_LM(c1, c2, c3, Ms, P, Y)
87 |
88 |
89 | "============================================================================"
90 | "7|PLOT THE LM-SCHEDULE"
91 | ### AXIS RANGE
92 | y_max = np.max(i)
93 | axis_range = [0, Y_size, 0, y_max]
94 |
95 | ### BUILD PLOT
96 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
97 | ax.set(title="LM SCHEDULE", xlabel=r'Y', ylabel=r'r')
98 | ax.plot(Y, i, "k-")
99 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
100 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
101 | ### SETTINGS
102 | plt.axis(axis_range)
103 | plt.show()
104 |
105 |
106 | #%% *** CELL 3 ***
107 | "============================================================================"
108 | "8|DEFINE NEW PARAMETERS"
109 | # IS new parameters
110 | a = 100 # Autonomous consumption
111 | b = 0.2 # Marginal propensity to consume
112 | alpha = 5 # Autonomous imports
113 | beta = 0.15 # Marginal propensity to import
114 | T = 1 # Taxes
115 | I = 10 # Investment intercept (when i = 0)
116 | G = 20 # Government spending
117 | X = 5 # Exports (given)
118 | d = 2 # Investment slope wrt to i
119 | # LM new parameters
120 | c1 = 2500 # Precautionary money demand
121 | c2 = 0.75 # Transaction money demand
122 | c3 = 5 # Speculation money demand
123 | Ms = 23500 # Nominal money supply
124 | P = 10 # Price level
125 |
126 |
127 | "============================================================================"
128 | "9|CALCULATE EQUILIBRUM VALUES"
129 |
130 | iIS = i_IS(a, alpha, b, beta, T, I, G, X, d, Y)
131 | iLM = i_LM(c1, c2, c3, Ms, P, Y)
132 |
133 | Y_star1 = ((a-alpha) - (b-beta)*T + I + G + X)/d
134 | Y_star2 = (1/c3) * (c1 - Ms/P)
135 | Y_star3 = (1 - b + beta)/d + (c2/c3)
136 | Y_star = (Y_star1 - Y_star2)/Y_star3
137 |
138 | i_star1 = (1/c3)*(c1 - Ms/P)
139 | i_star2 = (c2/c3)*Y_star
140 | i_star = i_star1 + i_star2
141 |
142 |
143 | "============================================================================"
144 | "10|PLOT THE IS-LM model"
145 | ### AXIS RANGE
146 | y_max = np.max(iIS)
147 | axis_range = [0, Y_size, 0, y_max]
148 |
149 | ### BUILD PLOT
150 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
151 | ax.set(title="IS-LM MODEL", xlabel=r'Y', ylabel=r'r')
152 | ax.plot(Y, iIS, "b-")
153 | ax.plot(Y, iLM, "r-")
154 | ### AXIS
155 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
156 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
157 | ### ARROWS AND EQUILIBRIUM POINT
158 | ax.arrow(25, i_star, 10, 0, head_length=2, head_width=1, color='b', alpha=0.7)
159 | ax.arrow(25, i_star, 0, -2, head_length=2, head_width=1, color='r', alpha=0.7)
160 | ax.arrow(Y_star, 20, 10, 0, head_length=2, head_width=1, color='b', alpha=0.7)
161 | ax.arrow(Y_star, 20, 0, 10, head_length=2, head_width=1, color='r', alpha=0.7)
162 | ax.arrow(85, i_star,-10, 0, head_length=2, head_width=1, color='b', alpha=0.7)
163 | ax.arrow(85, i_star, 0, 2, head_length=2, head_width=1, color='r', alpha=0.7)
164 | ax.arrow(Y_star, 55,-10, 0, head_length=2, head_width=1, color='b', alpha=0.7)
165 | ax.arrow(Y_star, 55, 0,-10, head_length=2, head_width=1, color='r', alpha=0.7)
166 | plt.plot(Y_star, i_star, 'ko') # Equilibrium point
167 | plt.axvline(x=Y_star, ls=':', color='k', alpha=0.5) # Equilibrium line
168 | plt.axhline(y=i_star, ls=':', color='k', alpha=0.5) # Equilibrium line
169 | ### LABELS
170 | plt.text(95, 16, "IS", color='b')
171 | plt.text(95, 47, "LM", color='r')
172 | ### SETTINGS
173 | plt.axis(axis_range)
174 | plt.show()
175 |
176 |
177 | #%% *** CELL 4 ***
178 | "============================================================================"
179 | "11|CALCULATE THE DYNAMICS FOR DISEQUILIBRIUM POINTS"
180 | iterations= 10
181 |
182 | " |STARTING POINT A"
183 | YA, iA = 10, 50 # Initial values
184 |
185 | A_i_LM = np.zeros(iterations)
186 | A_Y_IS = np.zeros(iterations)
187 |
188 | A_Y_IS[0] = YA
189 | A_i_LM[0] = iA
190 |
191 | for j in range(1, iterations):
192 | A_Y_IS[j] = Y_IS(a, alpha, b, beta, T, I, G, X, d, A_i_LM[j-1])
193 | A_i_LM[j] = i_LM(c1, c2, c3, Ms, P, A_Y_IS[j-1])
194 |
195 | " |STARTING POINT B"
196 | YB, iB = 80, 55 # Initial values
197 |
198 | B_i_LM = np.zeros(iterations)
199 | B_Y_IS = np.zeros(iterations)
200 |
201 | B_Y_IS[0] = YB
202 | B_i_LM[0] = iB
203 |
204 | for j in range(1, iterations):
205 | B_Y_IS[j] = Y_IS(a, alpha, b, beta, T, I, G, X, d, B_i_LM[j-1])
206 | B_i_LM[j] = i_LM(c1, c2, c3, Ms, P, B_Y_IS[j-1])
207 |
208 | " |STARTING POINT C"
209 | YC, iC = 70, 20 # Initial values
210 |
211 | C_i_LM = np.zeros(iterations)
212 | C_Y_IS = np.zeros(iterations)
213 |
214 | C_Y_IS[0] = YC
215 | C_i_LM[0] = iC
216 |
217 | for j in range(1, iterations):
218 | C_Y_IS[j] = Y_IS(a, alpha, b, beta, T, I, G, X, d, C_i_LM[j-1])
219 | C_i_LM[j] = i_LM(c1, c2, c3, Ms, P, C_Y_IS[j-1])
220 |
221 | " |STARTING POINT D"
222 | YD, iD = 30, 25 # Initial values
223 |
224 | D_i_LM = np.zeros(iterations)
225 | D_Y_IS = np.zeros(iterations)
226 |
227 | D_Y_IS[0] = YD
228 | D_i_LM[0] = iD
229 |
230 | for j in range(1, iterations):
231 | D_Y_IS[j] = Y_IS(a, alpha, b, beta, T, I, G, X, d, D_i_LM[j-1])
232 | D_i_LM[j] = i_LM(c1, c2, c3, Ms, P, D_Y_IS[j-1])
233 |
234 |
235 | "============================================================================"
236 | "12|PLOT THE IS-LM model"
237 | ### AXIS RANGE
238 | y_max = np.max(iIS)
239 | axis_range = [0, Y_size, 0, y_max]
240 |
241 | ### BUILD FIGURE
242 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
243 | ax.set(title="IS-LM MODEL", xlabel=r'Y', ylabel=r'r')
244 | ax.plot(Y, iIS, "k-")
245 | ax.plot(Y, iLM, "k-")
246 | ### EQUILIBRIUM POINT AND LINES
247 | ax.plot(Y_star, i_star, "ko")
248 | ax.axvline(x=Y_star, ls=':', color='k')
249 | ax.axhline(y=i_star, ls=':', color='k')
250 | ### DYNAMICS
251 | ax.plot(YA, iA, "bo") # Starting point A
252 | ax.plot(A_Y_IS, A_i_LM, "b--", alpha=0.7)
253 | ax.plot(YB, iB, "ro") # Starting point B
254 | ax.plot(B_Y_IS, B_i_LM, "r--", alpha=0.7)
255 | ax.plot(YC, iC, "go") # Starting point C
256 | ax.plot(C_Y_IS, C_i_LM, "g--", alpha=0.7)
257 | ax.plot(YD, iD, "co") # Starting point C
258 | ax.plot(D_Y_IS, D_i_LM, "c--", alpha=0.7)
259 | ### LABELS
260 | ax.text(95, 14, "IS")
261 | ax.text(95, 47, "LM")
262 | ax.text(YA-3, iA+1, "A", color="b")
263 | ax.text(YB+3, iB , "B", color="r")
264 | ax.text(YC-3, iC , "C", color="g")
265 | ax.text(YD , iD-3, "D", color="c")
266 | ### AXIS
267 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
268 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
269 | ### SETTINGS
270 | plt.axis(axis_range)
271 | plt.show()
--------------------------------------------------------------------------------
/static/Python/The AD-AS model.py:
--------------------------------------------------------------------------------
1 | #|============================================================================|
2 | #|============================================================================|
3 | #|MACROECONOMICS WITH PYTHON: THE AD-AS MODEL |
4 | #|Nicolas Cachanosky |
5 | #|Metropolitan State University of Denver |
6 | #|ncachano@msudenver.edu |
7 | #|http://www.ncachanosky.com |
8 | #|============================================================================|
9 | #|============================================================================|
10 |
11 | #%% *** CELL 1 ***
12 | "============================================================================"
13 | "1|IMPORT PACKAGES"
14 | import numpy as np # Package for scientific computing
15 | import matplotlib.pyplot as plt # Matplotlib is a plotting library
16 | from scipy.optimize import root # Package to find the roots of a function
17 |
18 |
19 | "============================================================================"
20 | "2|PARAMETERS"
21 | # Model parameters
22 | dpi = 300
23 |
24 |
25 | "============================================================================"
26 | "3|BUILD AD CLASS"
27 | class class_AD:
28 | "Define the parameters of the model"
29 | def __init__(self, a = 20 , # AD: autonomous consumption
30 | b = 0.2 , # AD: marginal propensity to consume
31 | alpha = 5 , # AD: autonomous imports
32 | beta = 0.1 , # AD: marginal propensity to import
33 | T = 1 , # AD: Taxes
34 | I = 10 , # AD: Investment
35 | G = 8 , # AD: Government spending
36 | X = 2 , # AD: Exports
37 | d = 5 , # AD: Investment slope
38 | c1 = 175 , # AD: Precautionary money demand
39 | c2 = 2 , # AD: Transactions money demand
40 | c3 = 50 , # AD: Speculatio money demand
41 | B = 250 , # AD: Base money
42 | lmbda = 0.05 , # AD: Currency drain ratio
43 | rho = 0.10 ): # AD: Reserve requirement)
44 |
45 | "Assign the parameter values"
46 | self.a = a
47 | self.b = b
48 | self.alpha = alpha
49 | self.beta = beta
50 | self.T = T
51 | self.I = I
52 | self.G = G
53 | self.X = X
54 | self.d = d
55 | self.c1 = c1
56 | self.c2 = c2
57 | self.c3 = c3
58 | self.B = B
59 | self.lmbda = lmbda
60 | self.rho = rho
61 |
62 | "Money multiplier"
63 | def m(self):
64 | #Unpack the parameters (simplify notation)
65 | lmbda = self.lmbda
66 | rho = self.rho
67 | #Calculate money multiplier (m)
68 | return ((1 + lmbda)/(rho + lmbda))
69 |
70 | "Money supply"
71 | def M(self):
72 | #Unpack the parameters (simplify notation)
73 | B = self.B
74 | #Calculate M
75 | return (B*self.m())
76 |
77 | "AD: Aggregate demand"
78 | def AD(self, P):
79 | #Unpack the parameters (simplify notation)
80 | a = self.a
81 | alpha = self.alpha
82 | b = self.b
83 | beta = self.beta
84 | T = self.T
85 | I = self.I
86 | G = self.G
87 | X = self.X
88 | d = self.d
89 | c1 = self.c1
90 | c2 = self.c2
91 | c3 = self.c3
92 | #Calculate AD
93 | AD_level1 = (((a-alpha) - (b-beta)*T + I + G + X)/d - c1/c3)
94 | AD_level2 = ((1-b+beta)/d - c2/c3)**(-1)
95 | AD_shape = self.M()/c3 * ((1-b+beta)/d - c2/c3)**(-1)
96 | return (AD_level1 * AD_level2 + AD_shape/P)
97 |
98 |
99 | "============================================================================"
100 | "4|SHOW RESULTS"
101 | out = class_AD()
102 |
103 | print("Money multiplier =", round(out.m(), 2))
104 | print("Money supply =" , round(out.M(), 2))
105 |
106 |
107 | "============================================================================"
108 | "5|CREATE MODEL DOMAIN AND POPULATE AD"
109 | size = 50
110 | P = np.linspace(1, size, size*2)
111 | Y = out.AD(P)
112 |
113 |
114 | "============================================================================"
115 | "6|PLOT AD"
116 | ### AXIS RANGE
117 | y_max = np.max(P)
118 | x_max = np.max(Y)
119 | axis_range = [0, x_max, 0, y_max]
120 |
121 | ### BUILD PLOT
122 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
123 | ax.set(title="AGREGGATE DEMAND", xlabel="Y", ylabel="P")
124 | ax.plot(Y, P, "k-")
125 | ### AXIS
126 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
127 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
128 | ### SETTINGS
129 | plt.axis(axis_range)
130 | plt.show()
131 |
132 |
133 | #%% *** CELL 2 ***
134 | "============================================================================"
135 | "7|DEFINE PARAMETERS"
136 | # PRODUCTION FUNCTION
137 | A = 1 # Total Factor Productivity
138 | K = 100 # Capital stock
139 | varphi = 0.70 # Output elasticity of capital
140 | # LABOR SUPPLY
141 | w_s = 0.75 # Labor supply "slope" with respect to P
142 | # MONEY SUPPLY
143 | B = 100 # Base Money
144 | lmbda = 0.05 # Currency drain
145 | rho = 0.20 # Reserve ratio
146 | # AGGREGATE DEMAND
147 | a = 40 # Autonomous household domestic consumption
148 | b = 0.3 # Marginal propensity to consume
149 | T = 1 # Taxes
150 | I = 4 # Investment with i = 0
151 | G = 2 # Government Spengin
152 | d = 2 # Slope of investment with respect to i
153 | c1 = 200 # Money demand: Precuationary
154 | c2 = 0.6 # Money demand: Transactions
155 | c3 = 10 # Money demand: Speculation
156 |
157 |
158 | "============================================================================"
159 | "8|FUNCTIONS"
160 | # LABOR SUPPLY
161 | def N(P):
162 | N = w_s * P
163 | return N
164 |
165 | # OUTPUT
166 | def output(P):
167 | output = A * (K**(varphi)) * (N(P)**(1-varphi))
168 | return output
169 |
170 | # MONEY SUPPLY
171 | m = (1+lmbda)/(rho+lmbda) # Money Multiplier
172 | M = B*m # Money Supply
173 |
174 | # AGGREGATE DEMAND
175 | def AD(P):
176 | AD_level1 = (a-b*T + I + G)/d - (c1/c3)
177 | AD_level2 = ((1-b)/d - (c2/c3))**(-1)
178 | AD_shape = M/c3 * AD_level2
179 | AD = AD_level1 * AD_level2 + AD_shape/P
180 | return AD
181 |
182 |
183 | "============================================================================"
184 | "9|EQUILIBRIUM: PRICE LEVEL"
185 | def equation(P):
186 | Eq1 = AD(P) - output(N(P))
187 | equation = Eq1
188 | return equation
189 |
190 | sol = root(equation, 10)
191 | Pstar = sol.x
192 | Nstar = N(Pstar)
193 |
194 | # #Define domain of the model
195 | size = np.round(Pstar, 0)*2
196 | P_vector = np.linspace(1, size, 500) # 500 dots between 1 and size
197 |
198 | # Agregate Supply and Aggregate Demand
199 | LRAS = output(N(Pstar))
200 | SRAS = output(N(P_vector))
201 | AD_vector = AD(P_vector)
202 |
203 |
204 | "============================================================================"
205 | "10|PLOT AD-AS MODEL"
206 | ### AXIS RANGE
207 | axis_range = [0, 80, 0, size]
208 |
209 | ### BUILD PLOT
210 | fig, ax = plt.subplots(figsize=(10, 8), dpi=dpi)
211 | ax.set(title="AD-AS MODEL", ylabel=r'$P$', xlabel="Output")
212 | plt.plot(AD_vector, P_vector, "k-", alpha = 0.7)
213 | plt.plot(SRAS , P_vector, "b-", alpha = 0.7)
214 | plt.axvline(x = LRAS, color = 'r', alpha = 0.7)
215 | plt.axhline(y = Pstar, xmax = LRAS/80, ls=':', color='k')
216 | ### AXIS
217 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
218 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
219 | ### LABELS
220 | plt.text(75, 2.5, "AD")
221 | plt.text(45, 11.0, "SRAS", color='b')
222 | plt.text(30, 11.0, "LRAS", color='r')
223 | ### SETTINGS
224 | plt.axis(axis_range)
225 | plt.show()
226 |
227 |
228 | #%% *** CELL 3 ***
229 | "============================================================================"
230 | "11|CALCULATE SHOCK EFFECTS"
231 | real_shock = 1.10
232 | nominal_shock = 1.10
233 |
234 | # Real shock
235 | def output2(P):
236 | A2 = A * real_shock
237 | output2 = A2 * (K**(varphi)) * (N(P)**(1-varphi))
238 | return output2
239 |
240 | def equation_real(P):
241 | Eq1 = AD(P) - output2(N(P))
242 | equation_real = Eq1
243 | return equation_real
244 |
245 | sol_real = root(equation_real, 10)
246 | Pstar2 = sol_real.x
247 | Nstar2 = N(Pstar2)
248 | LRAS2 = output2(N(Pstar2))
249 | SRAS2 = output2(N(P_vector))
250 |
251 | gP2 = Pstar2/Pstar - 1 # Percent change in P
252 | gY2 = LRAS2/LRAS - 1 # Percent change in Y
253 |
254 | # Nominal shock
255 | M3 = (B * nominal_shock) * m
256 |
257 | def AD3(P):
258 | AD_level1 = (a-b*T + I + G)/d - (c1/c3)
259 | AD_level2 = ((1-b)/d - (c2/c3))**(-1)
260 | AD_shape = M3/c3 * AD_level2
261 | AD3 = AD_level1 * AD_level2 + AD_shape/P
262 | return AD3
263 |
264 | def equation_nominal(P):
265 | Eq1 = AD3(P) - output(N(P))
266 | equation_nominal = Eq1
267 | return equation_nominal
268 |
269 | sol_nominal = root(equation_nominal, 10)
270 | Pstar3 = sol_nominal.x
271 | Nstar3 = N(Pstar3)
272 | AD_vector3 = AD3(P_vector)
273 |
274 | gP3 = Pstar3/Pstar - 1 # Percent change in P
275 | gY3 = output(Pstar3)/output(Pstar) - 1 # Percent change in Y
276 |
277 |
278 | "============================================================================"
279 | "12|PLOT AD-AS MODEL WITH SHOCKS"
280 | P3_stop = output(N(Pstar3))
281 |
282 | ### AXIS RANGE
283 | axis_range = [0, 80, 0, size]
284 |
285 | ### BUILD PLOT
286 | fig, ax = plt.subplots(nrows=2, figsize=(10, 20), dpi=dpi)
287 | ### SUBPLOT 1
288 | ax[0].set(title="AD-AS MODEL: REAL SHOCK", ylabel=r'$P$', xlabel="Output")
289 | ax[0].plot(AD_vector , P_vector, "k-", alpha = 0.7)
290 | ax[0].plot(SRAS , P_vector, "b-", alpha = 0.7)
291 | ax[0].plot(SRAS2 , P_vector, "b:", alpha = 0.7)
292 | ax[0].axvline(x = LRAS , ls="-", color='r', alpha = 0.7)
293 | ax[0].axvline(x = LRAS2 , ls=":", color="r", alpha = 0.7)
294 | ax[0].axhline(y = Pstar , xmax = LRAS/80 , ls=":", color="k", alpha = 0.7)
295 | ax[0].axhline(y = Pstar2, xmax = LRAS2/80, ls=":", color="k", alpha = 0.7)
296 | ### SUBPLOT 1: LABELS
297 | ax[0].text(75.0, 2.5, "AD")
298 | ax[0].text(44.5, 11.5, "SRAS" , color = "b")
299 | ax[0].text(48.0, 11.0 , "SRAS'", color = "b")
300 | ax[0].text(30.0, 11.0, "LRAS" , color = "r")
301 | ax[0].text(39.0, 11.0, "LRAS'", color = "r")
302 | ### SUBPLOT 1: AXIS
303 | ax[0].yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
304 | ax[0].xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
305 | ### SUBPLOT 1: SETTINGS
306 | ax[0].axis(axis_range)
307 | ### SUIBPLOT 2
308 | ax[1].set(title="AD-AS MODEL: NOMINAL SHOCK", ylabel=r'$P$', xlabel="Output")
309 | ax[1].plot(AD_vector , P_vector, "k-", alpha = 0.7)
310 | ax[1].plot(AD_vector3 , P_vector, "k:", alpha = 0.7)
311 | ax[1].plot(SRAS , P_vector, "b-", alpha = 0.7)
312 | ax[1].axvline(x = LRAS , ls="-", color="r", alpha = 0.7)
313 | ax[1].axhline(y = Pstar , xmax = LRAS/80, ls=":", color="k", alpha = 0.7)
314 | ax[1].axhline(y = Pstar3, xmax = P3_stop/80, ls=":", color="k", alpha = 0.7)
315 | ### SUBPLOT 2: LABELS
316 | ax[1].text(75, 1.7, "AD")
317 | ax[1].text(75, 2.7, "AD'")
318 | ax[1].text(45, 11.0, "SRAS" , color = "b")
319 | ax[1].text(30, 11.0, "LRAS" , color = "r")
320 | ### SUBPLOT 2: AXIS
321 | ax[1].yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
322 | ax[1].xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
323 | ### SUBPLOT 2: SETTINGS
324 | ax[1].axis(axis_range)
325 | plt.show()
326 |
327 |
328 |
--------------------------------------------------------------------------------
/static/Python/Ramsey.py:
--------------------------------------------------------------------------------
1 | #|============================================================================|
2 | #|============================================================================|
3 | #|MACROECONOMICS WITH PYTHON: A SIMPLE RAMSEY MODEL |
4 | #|Nicolas Cachanosky |
5 | #|Metropolitan State University of Denver |
6 | #|ncachano@msudenver.edu |
7 | #|http://www.ncachanosky.com |
8 | #|============================================================================|
9 | #|============================================================================|
10 |
11 | #%% | *** CELL 1 ***
12 | "============================================================================"
13 | "1|IMPORT PACKAGES"
14 | import numpy as np # Package for scientific computing with Python
15 | import matplotlib.pyplot as plt # Matplotlib is a plotting library
16 |
17 |
18 | "============================================================================"
19 | "2|DEFINE PARAMETERS AND ARRAYS"
20 | # PARAMETERS
21 | # Code parameters
22 | size = 5 # Model domain
23 | steps = size*100 # Number of dots in the domain
24 | dpi = 300 # Figure quality
25 | # Array
26 | c = np.linspace(0, size, steps) # Create array of consumption
27 |
28 |
29 | "============================================================================"
30 | "3|DEFINE UTILITY FUNCTION"
31 | # Production function
32 | def u(x, CRRA):
33 | if CRRA == 1:
34 | u = np.log(x)
35 | else:
36 | u = ((x)**(1-CRRA)-1)/(1-CRRA)
37 | return u
38 |
39 |
40 | "============================================================================"
41 | "4|CALCULATE UTILITY FUNCTIONS FOR DIFFERENT VALUES OF THETA"
42 | theta = [0.25, 0.75, 1, 1.5, 2]
43 |
44 | # Ignore c[0] = 0 to avoid dividing by zero
45 | u1 = u(c[1:], theta[0])
46 | u2 = u(c[1:], theta[1])
47 | u3 = u(c[1:], theta[2])
48 | u4 = u(c[1:], theta[3])
49 | u5 = u(c[1:], theta[4])
50 |
51 |
52 | "============================================================================"
53 | "5|PLOT UTILITY FUNCTIONS"
54 | ### AXIS RANGE
55 | axis_range = [0, size, -10, 5]
56 |
57 | ### BUILD PLOT AND POPULIATE WITH LOCI LINES
58 | fig, ax = plt.subplots(figsize=(10, 7), dpi=dpi)
59 | ax.plot(c[1:], u1, alpha = 0.75, label = r'$\theta=%.2f$' %theta[0])
60 | ax.plot(c[1:], u2, alpha = 0.75, label = r'$\theta=%.2f$' %theta[1])
61 | ax.plot(c[1:], u3, alpha = 0.75, label = r'$\theta=%.2f$' %theta[2])
62 | ax.plot(c[1:], u4, alpha = 0.75, label = r'$\theta=%.2f$' %theta[3])
63 | ax.plot(c[1:], u5, alpha = 0.75, label = r'$\theta=%.2f$' %theta[4])
64 | ### AXIS
65 | ax.axhline(0, color = 'k') # Add horizontal axis
66 | ax.axvline(0, color = 'k') # Add vertical axis
67 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
68 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
69 | ### TEXT
70 | ax.text(size-0.10, -0.5, r'$c$', color = 'k') # Manually add x-axis label
71 | ax.text( -0.25, 4.5, r'$u(c)$') # Manually add y-axis label
72 | # SETTINGS
73 | plt.box(False) # Hide axis
74 | plt.legend(loc=0, frameon=False)
75 | plt.axis(axis_range)
76 | plt.show()
77 |
78 |
79 | #%% *** CELL 2 ***
80 | "============================================================================"
81 | "6|DEFINE PARAMETERS AND ARRAYS"
82 | # PARAMETERS
83 | # Code parameters
84 | k_size = 150 # Model domain
85 | steps = k_size*100 # Number of "dots" in the domain
86 | # Ramsey model aprameters
87 | alpha = 0.30 # Output elasticity of capital
88 | delta = 0.35 # Depreciation rate
89 | rho = 0.35 # Time preference
90 | n = 0.05 # Population growth rate
91 | g = 0.05 # TFP growth rate
92 | theta = 0.8 # Coefficient or Relative Risk Aversion
93 | # ARRAY
94 | k_array = np.linspace(0, k_size, steps) # Create array of k
95 |
96 |
97 | "============================================================================"
98 | "7|DEFINE FUNCTIONS"
99 | # PRODUCTION FUNCTION
100 | def y(k):
101 | y = k**alpha
102 | return y
103 |
104 | # MARGINAL PRODUCT OF CAPITAL
105 | def y_prime(k):
106 | y_prime = alpha*k**(alpha-1)
107 | return y_prime
108 |
109 | # CONSUMPTION
110 | def consumption(k):
111 | c = y(k) - (n + g + delta)*k
112 | return c
113 |
114 | # MOTION FUNCTION OF CONSUMPTION
115 | def cdot(k, c):
116 | cdot = 1/theta * (y_prime(k) - delta - rho) * c
117 | return cdot
118 |
119 | # MOTION FUNCTION OF CAPITAL
120 | def kdot(k, c):
121 | kdot = y(k) - c - (n + g + delta)*k
122 | return kdot
123 |
124 |
125 | "============================================================================"
126 | "8|CALCULATE STEADY-STATE AND GOLD VALUES"
127 | # STEADY STATE VALUES
128 | k_star = (delta + rho)**(1/alpha)
129 | c_star = consumption(k_star)
130 | y_star = y(k_star)
131 | s_star = (y_star - c_star)/y_star
132 |
133 | # GOLD VALUES
134 | k_gold = (alpha/(n+g+delta))**(1/(1-alpha))
135 | c_gold = consumption(k_gold)
136 | y_gold = y(k_gold)
137 | s_gold = (y_gold - c_gold)/y_gold
138 |
139 |
140 | "============================================================================"
141 | "9|CALCULATE LOCI FUNCTIONS"
142 | k_loci = k_star
143 | c_loci = consumption(k_array)
144 |
145 |
146 | "============================================================================"
147 | "10|CALCULATE SAMPLE PATHS"
148 | k00, k01, k02 = k_star*0.25, k_star*0.50, k_star*2.2
149 | c0 = [consumption(k00)*0.25, consumption(k00), c_star*1.25,
150 | consumption(k01)*0.40, consumption(k01)*1.50]
151 |
152 | def sample_path(k0, c0, n):
153 | path = np.zeros(shape=(n, 2))
154 | path[0, 0] = k0
155 | path[0, 1] = c0
156 |
157 | for j in range(n-1):
158 | if path[j,0] < 0: # Stop if motion goes off-chart
159 | break
160 | else:
161 | path[j+1, 0] = path[j, 0] + kdot(path[j, 0], path[j, 1])*0.25
162 | path[j+1, 1] = path[j, 1] + cdot(path[j, 0], path[j, 1])*0.25
163 | return path
164 |
165 | path1 = sample_path(k00, c0[0], 30)
166 | path2 = sample_path(k00, c0[1], 30)
167 | path3 = sample_path(k01, c0[2], 30)
168 | path4 = sample_path(k02, c0[3], 30)
169 | path5 = sample_path(k02, c0[4], 30)
170 |
171 |
172 | "============================================================================"
173 | "11|PLOT RAMSEY MODEL WITH SAMPLE PATHS"
174 | # VALUE OF k SUCH THAT c = 0
175 | k_zero = (1/(n + g + delta))**(1/(1-alpha))
176 |
177 | # AXIS RANGE
178 | y_max = np.max(c_loci)*1.7
179 | x_max = k_zero*1.2
180 | axis_range = [0, x_max, -0.1, y_max]
181 |
182 | ### BUILD PLOT AND POPULIATE WITH LOCI LINES
183 | fig, ax = plt.subplots(figsize=(10, 7), dpi=dpi)
184 | ax.plot(k_array, c_loci, color="k", alpha = 0.8)
185 | ax.axvline(k_loci, color="k", alpha = 0.8)
186 | ### SAMPLE PATHS
187 | ax.plot(path1[:,0], path1[:,1], "r--", alpha = 0.7)
188 | ax.plot(path2[:,0], path2[:,1], "r--", alpha = 0.7)
189 | ax.plot(path3[:,0], path3[:,1], "r--", alpha = 0.7)
190 | ax.plot(path4[:,0], path4[:,1], "r--", alpha = 0.7)
191 | ax.plot(path5[:,0], path5[:,1], "r--", alpha = 0.7)
192 | ### ADD DOTS AT BEGINNING OF SAMPLE PATHS
193 | plt.plot(k00, c0[0], 'ro', alpha = 0.7)
194 | plt.plot(k00, c0[1], 'ro', alpha = 0.7)
195 | plt.plot(k01, c0[2], 'ro', alpha = 0.7)
196 | plt.plot(k02, c0[3], 'ro', alpha = 0.7)
197 | plt.plot(k02, c0[4], 'ro', alpha = 0.7)
198 | ### ADD MOTION ARROWS
199 | plt.arrow(k00, c0[0], 0, 0.10, head_width=0.03,head_length=0.02,fc='r',ec='r')
200 | plt.arrow(k00, c0[0], 0.18, 0, head_width=0.02,head_length=0.03,fc='r',ec='r')
201 | plt.arrow(k01, c0[2], 0, 0.10, head_width=0.03,head_length=0.02,fc='r',ec='r')
202 | plt.arrow(k01, c0[2],-0.08, 0, head_width=0.02,head_length=0.03,fc='r',ec='r')
203 | plt.arrow(k02, c0[3], 0,-0.08, head_width=0.03,head_length=0.02,fc='r',ec='r')
204 | plt.arrow(k02, c0[3], 0.22, 0, head_width=0.02,head_length=0.03,fc='r',ec='r')
205 | plt.arrow(k02, c0[4], 0,-0.12, head_width=0.03,head_length=0.02,fc='r',ec='r')
206 | plt.arrow(k02, c0[4],-0.12, 0, head_width=0.02,head_length=0.03,fc='r',ec='r')
207 | ### AXIS
208 | ax.axvline(0, color="k") # y-axis
209 | ax.axhline(0, color="k") # x-axis
210 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
211 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
212 | ### TEXT
213 | plt.text(x_max*0.98, -0.05 , r'$\hat{k}$' , color = 'k') # x-axis label
214 | plt.text(-0.15 , y_max*0.95 , r'$\hat{c}$' , color = 'k') # y-axis label
215 | plt.text(k_star*1.05, y_max*0.95, r'$\hat{c}=0$', color = "k") # c loci label
216 | plt.text(k_zero*0.95, 0.07 , r'$\hat{k}=0$', color = "k") # k loci label
217 | # SETTINGS
218 | plt.box(False) # Hide axis
219 | plt.axis(axis_range)
220 | plt.show()
221 |
222 |
223 | "============================================================================"
224 | "12|STABLE-PATH: FORWARD AND BACKWARD SHOOTING"
225 | def forward_shoot(k0, step):
226 | # Set conditions for initial shoot
227 | tol = 1.0e-10 # Tolerance level
228 | c0 = consumption(k0) - step # Initial consumption shoot value
229 | error = np.abs(((k0 - k_star)**2 + (c0 - c_star)**2)**0.5)
230 | path = np.zeros(shape=(1, 2))
231 | path[0,0] = k0
232 | path[0,1] = c0
233 |
234 | # Start loop (forward shoot)
235 | count = 0
236 | while 1:
237 | k1 = path[count, 0]
238 | c1 = path[count, 1]
239 | k2 = k1 + kdot(k1, c1)*0.1
240 | c2 = c1 + cdot(k1, c1)*0.1
241 | error = np.abs(((k2 - k_star)**2 + (c2 - c_star)**2)**0.5)
242 | path = np.append(path, [[k2, c2]], axis = 0)
243 | count = count + 1
244 |
245 | # Check if this is the stable-path
246 | if error < tol:
247 | break
248 |
249 | # Set up code break and reset the shoot
250 | if c2 > c_star:
251 | path = np.zeros(shape=(1,2)) # Empty collected path data
252 | c0 = c0 - step # Move the initial shot by one step
253 | path[0,0] = k0
254 | path[0,1] = c0
255 | count = 0
256 |
257 | # Break code when k < k*
258 | if k2 > k_star:
259 | break
260 |
261 | # Put a limit of iterations to the code
262 | if count > 100:
263 | break
264 |
265 | return path
266 |
267 |
268 | def backward_shoot(k0, step):
269 | # Set conditions for initial shoot
270 | tol = 1.0e-10 # Tolerance level
271 | c0 = consumption(k_gold) * 1.5 # Initial consumptoin shoot value
272 | error = np.abs(((k0 - k_star)**2 + (c0 - c_star)**2)**0.5)
273 | path = np.zeros(shape=(1, 2))
274 | path[0,0] = k0
275 | path[0,1] = c0
276 |
277 | # Start loop (forward shoot)
278 | count = 0
279 | while 1: # Infinite loop with break conditions inside
280 | k1 = path[count, 0]
281 | c1 = path[count, 1]
282 | k2 = k1 + kdot(k1, c1)*0.01
283 | c2 = c1 + cdot(k1, c1)*0.01
284 | error = np.abs(((k2 - k_star)**2 + (c2 - c_star)**2)**0.5)
285 | path = np.append(path, [[k2, c2]], axis = 0)
286 | count = count + 1
287 |
288 | # Check if this is the stable-path
289 | if error < tol:
290 | break
291 |
292 | # Set up code break and reset the shoot
293 | if c2 < c_star:
294 | path = np.zeros(shape=(1, 2))
295 | c0 = c0 + step
296 | path[0,0] = k0
297 | path[0,1] = c0
298 | count = 0
299 |
300 | # Break code when k < k*
301 | if k2 < k_star:
302 | break
303 |
304 | # Put a limit of iterations to the code
305 | if count > 400:
306 | break
307 |
308 | return path
309 |
310 | stable_L = forward_shoot(k00, 0.000001) # Execute shooting algorithm
311 | stable_R = backward_shoot(k_star*2.00, 0.000001) # Execute shooting algorithm
312 | # Be patient ...
313 |
314 |
315 | "============================================================================"
316 | "13|PLOT RAMSEY MODEL WITH STABLE PATH"
317 | # VALUE OF k SUCH THAT c = 0
318 | k_zero = (1/(n + g + delta))**(1/(1-alpha))
319 |
320 | # AXIS RANGE
321 | y_max = np.max(c_loci)*1.7
322 | x_max = k_zero*1.2
323 | axis_range = [0, x_max, -0.1, y_max]
324 |
325 | ### BUILD PLOT AND POPULIATE WITH LOCI LINES
326 | fig, ax = plt.subplots(figsize=(10, 7), dpi=dpi)
327 | ax.plot(k_array, c_loci, color="k", alpha = 0.8)
328 | ax.axvline(k_loci, color="k", alpha = 0.8)
329 | ### STABLE PATH
330 | ax.plot(stable_L[:,0], stable_L[:,1], "b--", alpha = 0.7)
331 | ax.plot(stable_R[:,0], stable_R[:,1], "b--", alpha = 0.7)
332 | ### AXIS
333 | ax.axvline(0, color="k") # y-axis
334 | ax.axhline(0, color="k") # x-axis
335 | ax.yaxis.set_major_locator(plt.NullLocator()) # Hide ticks
336 | ax.xaxis.set_major_locator(plt.NullLocator()) # Hide ticks
337 | ### TEXT
338 | plt.text(x_max*0.98, -0.05 , r'$\hat{k}$' , color = 'k') # x-axis label
339 | plt.text(-0.15 , y_max*0.95 , r'$\hat{c}$' , color = 'k') # y-axis label
340 | plt.text(k_star*1.05, y_max*0.95, r'$\hat{c}=0$', color = "k")
341 | plt.text(k_zero*0.95, 0.07 , r'$\hat{k}=0$', color = "k")
342 | plt.text(k_star*1.05, -0.05 , r'$k^*$' , color = 'k')
343 | plt.text(-0.15, c_star , r'$c^*$' , color = 'k')
344 | ax.axhline(c_star, 0, k_star/axis_range[1], linestyle=":", color = "grey")
345 | # SETTINGS
346 | plt.box(False) # Hide axis
347 | plt.axis(axis_range)
348 | plt.show()
--------------------------------------------------------------------------------