This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version-specific commands [grumble, grumble] | |
# See https://stackoverflow.com/questions/35016458 | |
# See: https://github.com/tmux/tmux/blob/master/CHANGES | |
run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V | \ | |
sed -En "s/^tmux[^0-9]*([.0-9]+).*/\1/p")' | |
set-environment -g COLORTERM "truecolor" | |
#set -g default-terminal "screen-256color" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <malloc.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <inttypes.h> | |
static void inline tick(struct timespec *tp) { | |
clock_gettime(CLOCK_MONOTONIC, tp); | |
} | |
static double inline tock(struct timespec *tp) { | |
struct timespec tp2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
import inspect | |
nfruits = 0 | |
nvegetables = 0 | |
@pytest.fixture(scope="session", params=["apple", "banana", "strawberry"]) | |
def make_fruit(request): | |
global nfruits | |
nfruits += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH --nodes=2 | |
echo "Reserving Nodes" | |
scontrol show hostname $SLURM_JOB_NODELIST > ~/hostfile.txt | |
echo "File Written" | |
sleep 3600 | |
#now: sbatch reserve.sh |