poetry new <project-name>
poetry add <library>
#include <QCommandLineParser> | |
#include <QCoreApplication> | |
#include <QTextStream> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication app(argc, argv); | |
QCommandLineParser parser; | |
parser.setOptionsAfterPositionalArgumentsMode(QCommandLineParser::ParseAsOptions); | |
parser.addPositionalArgument("subcommand", |
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
@echo off | |
echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
echo Uninstalling KB3080149 (telemetry for Win7/8.1) | |
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart | |
echo Uninstalling KB3021917 (telemetry for Win7) | |
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart | |
echo Uninstalling KB3022345 (telemetry) | |
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart | |
echo Uninstalling KB3068708 (telemetry) |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
sudo pacman -S subversion help2man | |
echo "### Checking out GnuCobol:" | |
svn checkout svn://svn.code.sf.net/p/open-cobol/code/trunk open-cobol-code; | |
cd open-cobol-code/gnu-cobol; | |
echo "### Configuring:" | |
./configure --prefix=/usr; | |
echo "### Building:" | |
make -s; | |
echo "### Installing:" | |
sudo make -s install; |
""" | |
HTML logger inspired by the Horde3D logger. | |
Usage: | |
- call setup and specify the filename, title, version and level | |
- call dbg, info, warn or err to log messages. | |
""" | |
import logging | |
import time |
language: python | |
python: | |
- "2.6" | |
- "2.7" | |
before_install: | |
- cd .. | |
- curl -OL http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.6/sip-4.14.6.tar.gz | |
- tar -xvf sip-4.14.6.tar.gz | |
- cd sip-4.14.6 | |
- python configure.py |
#get the current directory. from | |
#http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in | |
pushd . > /dev/null | |
DIR="${BASH_SOURCE[0]}"; | |
if ([ -h "${DIR}" ]) then | |
while([ -h "${DIR}" ]) do cd `dirname "$DIR"`; DIR=`readlink "${DIR}"`; done | |
fi | |
cd `dirname ${DIR}` > /dev/null | |
DIR=`pwd`; | |
popd > /dev/null |