Compiler | Version | __cplusplus |
---|---|---|
g++ | 4.7.4 | 199711L |
5.5.0 | 199711L | |
6.1.0 | 201402L | |
10.2 | 201402L | |
11.1.0 | 201703L | |
clang++ | 3.4.2 | 199711L |
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 <QtCore> | |
#include <QtDebug> | |
QVariant call(QObject* object, QMetaMethod metaMethod, QVariantList args) | |
{ | |
// Convert the arguments | |
QVariantList converted; | |
// We need enough arguments to perform the conversion. |
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
INCDIR = $(HOME)/opt/local/include/luajit-2.0 | |
LIBDIR = $(HOME)/opt/local/lib | |
LIB = -lluajit-51 | |
all: native | |
native: | |
cc --std=c99 -o native-co native.c -I$(INCDIR) -L$(LIBDIR) $(LIB) -pagezero_size 10000 -image_base 100000000 | |
clean: |
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
#!/env/bin/python | |
from P4 import P4, P4Exception | |
import json | |
p4 = P4() | |
p4.user = "charz" | |
p4.password = "mypassword" | |
p4.port = "tcp:192.168.1.2:1666" | |
p4.client = "auto-build" |
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 bokeh.plotting import figure, output_file, vplot, show | |
import numpy as np | |
import random | |
n = 1024 | |
a = 1.0 | |
sample_period = 0.001 | |
t = np.linspace(0, n * sample_period, n) | |
dt = t[1] - t[0] | |
data = np.abs(np.sin(t * 2 * np.pi) * a) |