Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
New Office, still neck deep in code

Izaak "Zaak" Beekman zbeekman

🏢
New Office, still neck deep in code
View GitHub Profile
View tau_profile_parser_example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tau_profile_parser.py
#!/bin/env python
"""TAU trial data for TAU Profile.x.y.z format profiles
Parses a set of TAU profile files and yields multi-indexed Pandas dataframes for the
interval and atomic events.
"""
from __future__ import print_function
import csv
import glob
import mmap
@nchaimov
nchaimov / tau_mem_summarize.py
Last active May 9, 2019
Create summary of memory allocations across ranks from TAU profiles
View tau_mem_summarize.py
#!/bin/env python
"""TAU trial data for TAU Profile.x.y.z format profiles
Parses a set of TAU profile files and yields multi-indexed Pandas dataframes for the
interval and atomic events.
"""
from __future__ import print_function
import csv
import glob
import mmap
View gpg-agent-ssh.socket.patch
--- /usr/share/doc/gnupg2/examples/systemd-user/gpg-agent-ssh.socket 2017-08-28 03:22:54.000000000 -0700
+++ /home/evan/.config/systemd/user/gpg-agent-ssh.socket 2018-03-21 19:52:48.717871326 -0700
@@ -4,6 +4,7 @@
[Socket]
ListenStream=%t/gnupg/S.gpg-agent.ssh
+ExecStartPost=/usr/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh
FileDescriptorName=ssh
Service=gpg-agent.service
SocketMode=0600
@1AdAstra1
1AdAstra1 / quicksort.f
Last active May 18, 2020 — forked from t-nissie/quicksort.f
quick sort in Fortran
View quicksort.f
! quicksort.f -*-f90-*-
! Author: t-nissie, some tweaks by 1AdAstra1
! License: GPLv3
! Gist: https://gist.github.com/t-nissie/479f0f16966925fa29ea
!!
recursive subroutine quicksort(a)
implicit none
real :: a(:)
real x, t
integer :: first = 1, last
@jlblancoc
jlblancoc / Install_gcc7_ubuntu_16.04.md
Last active Sep 14, 2021
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial
View Install_gcc7_ubuntu_16.04.md

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

View example_cib.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nilsdeppe
nilsdeppe / emacs.el
Last active Jun 7, 2020
My Emacs init file
View emacs.el
;;; initfile --- Summary:
;;; Commentary:
;; Emacs 25.1 and newer tested
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration/Customization:
;; Defines global variables that are later used to customize and set
;; up packages.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
View metrics-bioinformatics-macos.tsv
Formula Installs Notable
samtools 1736 NA
blast 966 NA
bwa 622 yes
picard-tools 585 NA
bamtools 518 yes
vcftools 424 yes
tophat 422 NA
fastqc 395 NA
bcftools 394 NA
View effective_modern_cmake.md

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft