For PowerShell and Unix-like shells, here are example scripts to load and use Intel oneAPI.
This file contains hidden or 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
| namespace | |
| { | |
| QImage applyEffectToImage(QImage src, QGraphicsEffect *effect) | |
| { | |
| if(src.isNull()) return QImage(); // No need to do anything else | |
| if(!effect) return src; // No need to do anything else | |
| QGraphicsScene scene; | |
| QGraphicsPixmapItem item; | |
| item.setPixmap(QPixmap::fromImage(src)); | |
| item.setGraphicsEffect(effect); |
This file contains hidden or 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
| // | |
| // Created by Andrey Streltsov on 11/06/15. | |
| // Based on code from here: http://stackoverflow.com/a/28172162/365754 | |
| #include "AppRunGuard.h" | |
| #include <qcryptographichash.h> | |
| namespace | |
| { |
This file contains hidden or 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
| // | |
| // Simplify.swift | |
| // | |
| // Simplification of a 3D-polyline. | |
| // A port of https://github.com/hgoebl/simplify-java for Swift | |
| // | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Created by Lachlan Hurst on 10/02/2015. |
- Grab MiKTeX 2.9 and install. It doesn't really matter whether you get the complete or basic system, as the basic system will download packages as needed.
- Grab TeXstudio and install.
- Fire up TeXstudio and hit Options -> Configure TexStudio.
- Under "Commands", change "Bibtex" from "bibtex %" to "bibtex8 %" (bibtex8 is later and greater and is needed for biblatex, which is better than bibtex for reference handling).
- Under "Quick Build", check "PdfLaTeX + Ldf Viewer". Not all LaTeX compilers were created equal, and Pdf is likely the format you'll want.
- If you're feeling adventurous, go to "Editor" and change the font family to "Consolas" :)
This file contains hidden or 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
| /* | |
| * C11 <threads.h> emulation library | |
| * | |
| * (C) Copyright yohhoy 2012. | |
| * Distributed under the Boost Software License, Version 1.0. | |
| * (See copy at http://www.boost.org/LICENSE_1_0.txt) | |
| */ | |
| #ifndef EMULATED_THREADS_H_INCLUDED_ | |
| #define EMULATED_THREADS_H_INCLUDED_ | |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers