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
enum TextBoxMode | |
{ | |
SingleLine, | |
MultiLine | |
} | |
TextBox CreateTextBox(string label, TextBoxMode textBoxMode) | |
{ | |
var lbl = new Label(); | |
lbl.Content = $"{label}:"; |
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 bash | |
DIR=$(dirname $(readlink -f "${BASH_SOURCE}")) | |
if [ ! -f $DIR/venv/bin/python ]; then | |
echo "This script should be located in the project root directory" | |
echo "and the virtual environment should be created." | |
else | |
# Change python back to run as pi |
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/sh | |
NULL="/dev/null" | |
# $1 = $LOCAL | |
# $2 = $REMOTE | |
# $3 = $MERGED | |
# get file extension in lowercase for selecting comparison tool | |
filename=$(basename "$1") | |
extension=$(echo "${filename##*.}" | awk '{print tolower($0)}'); |
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 is an example console application to illustrate the usage | |
* of the MonitoredLock class and technique. | |
*/ | |
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace MonitoredLock | |
{ |