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
FC := ifort | |
CFLAGS := | |
LFLAGS := | |
SRCS := $(wildcard *.f90) | |
OBJS := $(patsubst %.f90,%.o,$(SRCS)) | |
PROGRAM := dipgen |
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
Intel IA64 Documentation Section 2.1.5: Addressing-Mode Encoding of ModR/M and SIB Bytes | |
Figure 2-2: | |
Mod 11 | |
RM 000 | |
/digit (Opcode): REG = 001 | |
-------------------------------- | |
C8H 11001000 |
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
#include <iostream> | |
#include <regex> | |
#include <string> | |
#include <vector> | |
int main(int argc, char *argv[]) | |
{ | |
const std::string defaultRegex { "\\(?\\d{3}[-\\) ]+\\d{3}[- ]?\\d{4}" }; |
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
/** In this example, the regular expression /<(.*)>(.*)</(\1)>/ searches for | |
* any number of any characters in angle brackets, any number of any characters | |
* in after the angle brackets, and then finally a forward slash followed by | |
* any number of any characters, again in angle brackets. This thus forms the | |
* XML tags search expression. | |
* | |
*/ | |
#include <iostream> |
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
/** Dietmar Kuhl, the C++ IO and Internationalization expert, wrote this blogpost | |
* (https://kuhllib.com/2012/01/14/stop-excessive-use-of-stdendl/) | |
* discussing the need to stop overusing `std::endl`. In the blog post, he implemented | |
* this function as a replacement. | |
* | |
* While it looks almost exactly the same in use, this function only outputs a | |
* new line character; it does not flush the output stream. In contrast, `std::endl` | |
* both outputs a new character and calls `std::fflush()`. | |
* |
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
// MSVC 17 warns about using the `strtok` function | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
template <typename T, typename Traits = char_traits<T>> | |
std::basic_ostream<T, Traits>& |
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
#include <cstdlib> | |
#include <fstream> | |
#include <iostream> | |
#include <string> | |
/** Description: | |
* Replacement for std::endl. Prints new line without | |
* flushing the output buffer. | |
* |
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
#include <cstdlib> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
namespace IO | |
{ | |
template <typename CharT, typename Traits = std::char_traits<CharT>> |
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
#include <iostream> | |
#include <iterator> | |
#include <string> | |
int main() | |
{ | |
const std::string text("Hello, my name is Jean-Pierre Williams."); | |
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
" ============================================================================= | |
" | |
" | |
" VIM CONFIGURATION FILE | |
" | |
" | |
" ============================================================================= | |
set nocompatible |
OlderNewer