This file contains 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
#!/usr/bin/env python3 | |
""" | |
Calculate the absolute humidity based on relative temperature in Celcius | |
and relative humidity in percent. | |
Based on: | |
https://carnotcycle.wordpress.com/2012/08/04/how-to-convert-relative-humidity-to-absolute-humidity/ | |
Dry vs. Wet House based on Absolute Humidity: |
This file contains 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 | |
# Swaps between java versions | |
# | |
# Execute using the source or '.' command to set environment correctly | |
# | |
# to install alternatives after unpacking oracle java tar at /opt/jdk1.8.0_202/ execute | |
# sudo sh -c 'for bin in /opt/jdk1.8.0_202/bin/*; do update-alternatives --install /usr/bin/$(basename $bin) $(basename $bin) $bin 1500; done' | |
# | |
# to switch manually for individual bins execute | |
# sudo update-alternatives --config java |
This file contains 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
''' | |
This script generates square shaped transitions | |
for a list of given data points. | |
### Example | |
Input: | |
x,y | |
0,100 | |
5,430 | |
10,200 |
This file contains 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
APP=appname | |
SRC_DIR=src | |
INC_DIR=inc | |
OBJ_DIR=obj | |
BIN_DIR=bin | |
CC=g++ | |
LD=g++ | |
CFLAGS=-O2 -c -Wall -std=c++11 |