Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <alias> | |
| <family>sans-serif</family> | |
| <prefer> | |
| <family>NotoSans</family> | |
| <family>NotoColorEmoji</family> | |
| <family>NotoEmoji</family> | |
| </prefer> |
| #!/bin/bash | |
| function s3du(){ | |
| bucket=`cut -d/ -f3 <<< $1` | |
| prefix=`awk -F/ '{for (i=4; i<NF; i++) printf $i"/"; print $NF}' <<< $1` | |
| aws s3api list-objects --bucket $bucket --prefix=$prefix --output json --query '[sum(Contents[].Size), length(Contents[])]' | jq '. |{ size:.[0],num_objects: .[1]}' | |
| } | |
| s3du $1; |
| # Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior! | |
| # disable the default submodule logic | |
| git: | |
| submodules: false | |
| # use sed to replace the SSH URL with the public URL, then init and update submodules | |
| before_install: | |
| - sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
| - git submodule update --init --recursive |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| elementFormDefault="qualified"> | |
| <xs:element name="coverage"> | |
| <xs:complexType> | |
| <xs:annotation> | |
| <xs:documentation> | |
| Top-most element describing the coverage report. Contains a | |
| project and a test project. | |
| </xs:documentation> |
| QVariantMap xmlStreamToVariant(QXmlStreamReader &xml, const QString &prefix = QLatin1String("."), const int maxDepth = 1024) | |
| { | |
| if (maxDepth < 0) { | |
| qWarning() << QObject::tr("max depth exceeded"); | |
| return QVariantMap(); | |
| } | |
| if (xml.hasError()) { | |
| qWarning() << xml.errorString(); | |
| return QVariantMap(); |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| before_install: | |
| - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa | |
| - sudo apt-get update -qq | |
| - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev | |
| script: | |
| - qmake -qt=qt5 -v | |
| - qmake -qt=qt5 | |
| - make |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # resulting image: http://i.imgur.com/E5CsReh.png | |
| # create a 1680x1050 image using Arial, 12pt | |
| set terminal pngcairo enhanced font "arial,12" fontscale 1.0 size 1680, 1050 | |
| # write to the file 'multiplot_test.png' | |
| set output 'multiplot_test.png' | |
| # turn key off since we will be plotting many different |