This document proposes an extension of the C++ standard library.
This is an informal draft for a proposal: its aim is to get feedback from other C++ users and implementers.
Basically, this proposal provides a starting point to use C++ as a basis for C++ build systems.
For this, it provides the minimal C++ header <native_build> which is implemented by the compiler maintainers.
It defines new types (which are basically strong-typed alias of std::filesystem::path),
a new templated function build(...) for building the project, and run(...) for running an executable.
It has also a permissive requirement: programs using `` are only required to work on the machine
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
| #!/usr/bin/env bash | |
| # Test script for checking if Cuda and Drivers correctly installed on Ubuntu 14.04, by Roelof Pieters (@graphific) | |
| # BSD License | |
| if [ "$(whoami)" == "root" ]; then | |
| echo "running as root, please run as user you want to have stuff installed as" | |
| exit 1 | |
| fi | |
| ################################### | |
| # Ubuntu 14.04 Install script for: |
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 <string> | |
| #include <vector> | |
| #include "jerryscript.h" | |
| namespace JerryScript { | |
| class Value; | |
| class Undefined; | |
| class Null; | |
| class Boolean; |
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
| #!/usr/bin/python | |
| # Import PySide classes | |
| import sys | |
| from PySide.QtCore import * | |
| from PySide.QtGui import * | |
| class App: | |
| def __init__(self): |
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 <map> | |
| #include <algorithm> | |
| #include <functional> | |
| #include <memory> | |
| using namespace std; | |
| class EventArgs { | |
| public: |
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
| <?php | |
| $mac_address = "FC:FB:FB:01:FA:21"; | |
| $url = "https://api.macvendors.com/" . urlencode($mac_address); | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| $response = curl_exec($ch); | |
| if($response) { | |
| echo "Vendor: $response"; |
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
| pty | |
| pty.o |
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
| // concurrent-queue.h | |
| #ifndef CONCURRENT_QUEUE_H_ | |
| #define CONCURRENT_QUEUE_H_ | |
| #include <queue> | |
| #include <thread> | |
| #include <mutex> | |
| #include <condition_variable> | |
| template <typename T> |
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
| from celery.task.control import revoke | |
| from celery.task.control import inspect | |
| def revoke_tasks_by_name(task_name, worker_prefix=''): | |
| """ | |
| Revoke all tasks by the name of the celery task | |
| :param task_name: Name of the celery task | |
| :param worker_prefix: Prefix for the worker |
OlderNewer