Skip to content

Instantly share code, notes, and snippets.

View OndrejMarsalek's full-sized avatar

Ondrej Marsalek OndrejMarsalek

  • Faculty of Mathematics and Physics, Charles University
  • Prague, Czech Republic
View GitHub Profile
! Rough and untested template extracted from driver.f90 in the i-PI repo.
program driver
use f90sockets, only: open_socket, writebuffer, readbuffer
implicit none
integer, parameter :: dp=kind(0.d0)
@OndrejMarsalek
OndrejMarsalek / bootstrap.txt
Created August 8, 2017 13:19
Easybuild bootstrap error
Downloading https://easybuilders.github.io/easybuild/files/distribute-0.6.49-patched1.tar.gz
Extracting in /tmp/tmpP2l2t0
Now working in /tmp/tmpP2l2t0/distribute-0.6.49
Installing Distribute
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
running bdist_egg
running egg_info
@OndrejMarsalek
OndrejMarsalek / test-property.py
Last active July 14, 2022 22:57
Class ("static") property in Python
#!/usr/bin/env python
"""
Two possible ways of implementing a class property.
There does not seem to be a way to access it under the same name from the
class as well, i.e. `Test2.cool = False`, as the attribute `Test2.cool` is
taken up by the property.
"""