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
/* Create a registry of classes | |
* Original idea: https://stackoverflow.com/questions/34858341/c-compile-time-list-of-subclasses-of-a-class | |
* also see https://stackoverflow.com/questions/72884647/when-are-static-member-variables-optimized-away | |
* for info about the subtleties of static members. | |
*/ | |
#include <functional> | |
#include <iostream> | |
#include <map> | |
#include <typeinfo> |
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 | |
# Get a screen capture from an Agilent 5462x series oscilloscope vis serial port | |
# The device must use 57600 baud and DTR flow control. | |
# The image is in TIFF format and is output to stdout | |
TTYDEV=${1:-/dev/ttyUSB0} | |
stty -F $TTYDEV 57600 raw -echo min 0 time 5 | |
exec 123<>$TTYDEV |
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
# Doxyfile 1.8.14 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project. | |
# | |
# All text after a double hash (##) is considered a comment and is placed in | |
# front of the TAG it is preceding. | |
# | |
# All text after a single hash (#) is considered a comment and will be ignored. | |
# The format is: |
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
#/etc/nginx/sites-available/trac | |
upstream trac { | |
server 127.0.0.1:3050; | |
server 127.0.0.1:3051; | |
server 127.0.0.1:3052; | |
server 127.0.0.1:3053; | |
} | |
server { | |
listen 80 default_server; |
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 | |
# Easy script to create OpenVPN client configuration with the user, pre-generating user's | |
# RSA key and certificate. | |
# | |
# Configuration template must exist in the same directory, with only missing part: certificates. | |
# | |
# (c) Dmytro Kovalov, 2015 | |
# Modified by Juan Carrano, 2018 | |
cd $(dirname ${BASH_SOURCE[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
SPEC-1 | 7 | -2 | 1 | ||
---|---|---|---|---|---|
RES-1 | 14 | -4 | 5 | ||
PROTO-1 | RES-1 | 14 | -4 | 10 | |
SPEC-2 | SPEC-1, PROTO-1 | 4 | -1 | 2 | |
DSN-1 | SPEC-2 | 30 | -10 | 15 | |
ORD-1 | SPEC-2, DSN-1 | 2 | -1 | 3 | |
PROD-1 | DSN-1 | 30 | -5 | 20 | |
DSN-2 | SPEC-1 | 7 | -3 | 1 | |
DSN-3 | SPEC-1 | 3 | -1 | 1 | |
PROD-2 | DSN-2 | 45 | -10 | 15 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAXROMAN 3999 /*MMMCMXCIX*/ | |
#define DIEZ 2 | |
#define CINCO 1 | |
#define UNO 0 | |
const char seq[4][3]={ {'M', '?' , '?' }, { 'C' , 'D', 'M'}, { 'X' , 'L', 'C'}, {'I', 'V', 'X'} }; |