Skip to content

Instantly share code, notes, and snippets.

View thomasgilgenast's full-sized avatar

Thomas Gilgenast thomasgilgenast

View GitHub Profile
@thomasgilgenast
thomasgilgenast / # python@3.8 - 2020-07-16_18-00-42.txt
Created July 19, 2020 22:45
python@3.8 on macOS 10.15.5 - Homebrew build logs
Homebrew build logs for python@3.8 on macOS 10.15.5
Build date: 2020-07-16 18:00:42
@thomasgilgenast
thomasgilgenast / Panel_regression.md
Last active July 1, 2017 01:09
an example of fixed-effects model panel regression in R

Background

A just-for-fun reproduction of the regression analysis in Table 2 of the article "Consumer Spending in China: The Past and the Future" by Jun Nie and Andrew Palmer.

The analysis regresses the consumption share in GDP (NE.CON.PETC.ZS) in selected countries against

  • the young dependency ratio (SP.POP.DPND.YG),
  • the old dependency ratio (SP.POP.DPND.OL), and
@thomasgilgenast
thomasgilgenast / Parallel_subprocesses.md
Last active March 15, 2017 17:59
parallel python subprocesses with interleaved writing to stdout

Usage

Make two child processes do 10 seconds of work each in parallel, reporting their output to stdout in an interleaved fashion:

$ python parent.py
child 1 reporting for work
child 2 reporting for work
child 1 done working

child 2 done working

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am thomasgilgenast on github.
  • I am gilgi (https://keybase.io/gilgi) on keybase.
  • I have a public key ASBBfMtEEjzNfJl8PB-R7zzZFH2DehLb0u_asNHUgVjxUwo

To claim this, I am signing this object: