Skip to content

Instantly share code, notes, and snippets.

Max Ghenis MaxGhenis

View GitHub Profile
@MaxGhenis
MaxGhenis / run_ogusa_example_error
Created Aug 2, 2020
Log of error when running run_ogusa_example.py
View run_ogusa_example_error
c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Charity_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Casualty_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Miscellaneous_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_ps': {2017: [261500, 313800, 156900, 287650, 313800]}, 'ID_BenefitSurtax_em': {2017: [0, 0, 0, 0, 0]}, 'ID_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'CG_brk3': {2017: [9e+99,
9e+99, 9e+99, 9e+99, 9e+99]}, 'AMT_CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'AMT_CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'AMT_CG_brk3': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_ec': {2017: 0}, 'AMT_child_em': {2017: 7500}, 'AMT_brk1': {2017: 187800}, 'EITC_c': {2017: [510, 3400, 5616, 6318]}, 'EITC_ps': {2017: [8340, 18340, 18340, 18340]}, 'EITC_ps_MarriedJ': {2017: [5600, 5600, 5600, 5600]}, 'EITC_InvestIncome_c': {2017: 3450}, 'ETC_pe
@MaxGhenis
MaxGhenis / sphinx-err-pb292o6k.log
Created Jul 9, 2020
Error message when trying to build a Jupyter-book with ```- url: https://ubicenter.org \n title: UBI Center home``` (see https://github.com/executablebooks/jupyter-book/issues/764)
View sphinx-err-pb292o6k.log
# Sphinx version: 2.4.4
# Python version: 3.7.7 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/home/mghenis/anaconda3/lib/python3.7/site-packages/jupyter_book/sphinx.py", line 209, in build_sphinx
keep_going=keep_going,
View sphinx-err-kq4n_l6b.log
# Sphinx version: 2.4.4
# Python version: 3.7.7 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
# Running Sphinx v2.4.4
# making output directory...
# done
# building [mo]: targets for 0 po files that are out of date
# building [html]: targets for 2 source files that are out of date
View bruenig_poverty_gap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View lfpr_yang_countries.csv
Country LFPR LFPR percentile
United States 61.6% 46%
Costa Rica 59.6% 39%
El Salvador 61.7% 47%
United Kingdom 62.3% 49%
South Korea 62.6% 51%
Dominican Republic 66.7% 66%
Ecuador 68.0% 71%
@MaxGhenis
MaxGhenis / gist:2a4e600da6085ee8ae9af999087a95bd
Created Oct 2, 2018
install_github debugging (conda info, conda list, etc.)
View gist:2a4e600da6085ee8ae9af999087a95bd
# https://github.com/conda-forge/r-devtools-feedstock/issues/4#issuecomment-426390936
(xenial)maxghenis@localhost:~$ conda info
active environment : None
user config file : /home/maxghenis/.condarc
populated config files :
conda version : 4.5.11
conda-build version : not installed
python version : 3.6.6.final.0
base environment : /home/maxghenis/miniconda3 (writable)
@MaxGhenis
MaxGhenis / gist:b32a42812d7de9e6942873d981745db1
Created Aug 3, 2018
Default conda environment 2018-08-03
View gist:b32a42812d7de9e6942873d981745db1
name: root
channels:
- ospc
- gerrymandr
- anaconda
- conda-forge
- r
- defaults
dependencies:
- font-ttf-dejavu-sans-mono=2.37=h6964260_0
@MaxGhenis
MaxGhenis / gist:d7846976254f2e1b63dda9769ac36606
Created Aug 1, 2018
Get tmux running after uninstalling conda version and installing apt-get version
View gist:d7846976254f2e1b63dda9769ac36606
(xenial)maxghenis@localhost:~$ which tmux
/usr/bin/tmux
(xenial)maxghenis@localhost:~$ /usr/bin/tmux # This works to open tmux.
[exited]
(xenial)maxghenis@localhost:~$ tmux
-su: /home/maxghenis/miniconda3/bin/tmux: No such file or directory
(xenial)maxghenis@localhost:~$ echo $PATH
/home/maxghenis/bin:/home/maxghenis/.local/bin:/home/maxghenis/miniconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
(xenial)maxghenis@localhost:~$ PATH=/usr/bin:$PATH
(xenial)maxghenis@localhost:~$ tmux # This now works.
View gist:cee3f0b1fdba0ddd7aacc160a785ce08
(xenial)maxghenis@localhost:~$ jupyter notebook
[I 20:45:31.645 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.0
[I 20:45:31.646 NotebookApp] Serving notebooks from local directory: /home/maxghenis
[I 20:45:31.646 NotebookApp] The Jupyter Notebook is running at:
[I 20:45:31.646 NotebookApp] http://localhost:8888/?token=6402cdfdfbb0b3d422780a31b07bba61b7221d3879735ece
[I 20:45:31.646 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:45:31.647 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
View gist:fe60699c66069a4b90faf6ddde6745af
24262156 0 lrwxrwxrwx 1 root root 23 Jul 31 12:25 /usr/bin/emacs -> /etc/alternatives/emacs
25046783 4 drwxrwsr-x 4 root staff 4096 Jul 31 12:25 /usr/local/share/emacs
24386666 4 drwxr-xr-x 3 root root 4096 Jul 31 12:25 /usr/lib/emacs
24387326 4 drwxr-xr-x 2 root root 4096 Jul 31 12:25 /usr/share/doc/emacs
25166082 4 drwxr-xr-x 5 root root 4096 Jul 31 12:25 /usr/share/emacs
27660443 4 drwxrwxr-x 3 maxghenis maxghenis 4096 Jul 18 17:52 /home/maxghenis/miniconda3/pkgs/libidn11-1.33-0/share/emacs
27530630 0 lrwxrwxrwx 1 maxghenis maxghenis 10 Jul 18 17:52 /home/maxghenis/miniconda3/pkgs/emacs-26.1-h3a2ea38_1/bin/emacs -> emacs-26.1
27403278 4 drwxrwxr-x 3 maxghenis maxghenis 4096 Jul 18 17:52 /home/maxghenis/miniconda3/pkgs/emacs-26.1-h3a2ea38_1/libexec/emacs
26609466 4 drwxrwxr-x 4 maxghenis maxghenis 4096 Jul 18 17:52 /home/maxghenis/miniconda3/pkgs/emacs-26.1-h
You can’t perform that action at this time.