Using the tmp.cpp
snippet below and clang-query
with the following query...
// single line:
match typeLoc(isExpansionInMainFile(), loc(qualType(hasDeclaration(decl(hasAncestor(namespaceDecl(hasName("std"))))))))
// prettified:
Using the tmp.cpp
snippet below and clang-query
with the following query...
// single line:
match typeLoc(isExpansionInMainFile(), loc(qualType(hasDeclaration(decl(hasAncestor(namespaceDecl(hasName("std"))))))))
// prettified:
cmake \ | |
-DCMAKE_INSTALL_PREFIX="$(BUILD_DIR)" \ | |
-DCMAKE_PREFIX_PATH="$(DEPS_DIR)/dist" \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DPXR_PREFER_SAFETY_OVER_SPEED=ON \ | |
-DPXR_ENABLE_PYTHON_SUPPORT=ON \ | |
-DPXR_USE_PYTHON_3=ON \ | |
-DPXR_USE_DEBUG_PYTHON=OFF \ | |
-DPYTHON_EXECUTABLE="/usr/bin/python3" \ | |
-DPYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/libpython3.8.so" \ |
#define _GNU_SOURCE | |
#include <unistd.h> | |
#include <sys/mman.h> | |
#include <assert.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import math | |
_DIGIT_CHAR_OFFSET = ord('0') | |
_SIGN_TABLE = ('-', '') |
#include <stdio.h> | |
/* -------------------------------------------------------------------------- */ | |
#define EXPAND(x) x | |
#define CONCAT_(a, b) a##b | |
#define CONCAT(a, b) CONCAT_(a, b) | |
#define ARG( \ |
/* | |
Credits: Jens Gustedt | |
https://gustedt.wordpress.com/2010/06/08/detect-empty-macro-arguments | |
*/ | |
#include <stdio.h> | |
#define EXPAND(x) x | |
#define CONCAT_(a, b) a##b |
#!/usr/bin/env mayapy | |
import itertools | |
import math | |
import random | |
import timeit | |
from maya import cmds, OpenMaya, OpenMayaAnim |
#!/usr/bin/env python2.7 | |
"""Find the Access Codes | |
In order to destroy Commander Lambda's LAMBCHOP doomsday device, you'll need | |
access to it. But the only door leading to the LAMBCHOP chamber is secured with | |
a unique lock system whose number of passcodes changes daily. Commander Lambda | |
gets a report every day that includes the locks' access codes, but only she | |
knows how to figure out which of several lists contains the access codes. You | |
need to find a way to determine which list contains the access codes once |
# Relies on https://github.com/christophercrouzet/banana.maya | |
import collections | |
import json | |
from maya import OpenMaya, OpenMayaAnim, cmds | |
import banana.maya | |
banana.maya.patch() |
#!/usr/bin/env python3 | |
import logging | |
import multiprocessing | |
_LOGGER = multiprocessing.log_to_stderr() | |
_LOGGER.setLevel(logging.DEBUG) |