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 <string> | |
#include <boost/python.hpp> | |
using namespace std; | |
using namespace boost::python; | |
class World | |
{ |
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 <QApplication> | |
#include <QDebug> | |
#include <QMetaProperty> | |
#include <QPushButton> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); |
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
QWidget *ProjectWidget::_createBoolTreeEntry(QObject *cloudData, QMetaProperty property) | |
{ | |
auto checkbox = new QCheckBox(this); | |
checkbox->setChecked(property.read(cloudData).toBool()); | |
connect(checkbox, &QCheckBox::clicked, [=](bool checked) | |
{ | |
property.write(cloudData, checked); | |
}); |
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 "graph.h" | |
Node::Node(int f1, int f2) | |
{ | |
field1 = f1; | |
field2 = f2; | |
next = 0; | |
} | |
Node::~Node() |
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 <chrono> | |
#include <ctime> | |
#include <cmath> | |
class Timer | |
{ | |
public: | |
void start() | |
{ |
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 multiprocessing import Pool | |
import math | |
import time | |
def func(param): | |
print 'Iniciando funcao para param=' + str(param) | |
k = 0.0 | |
for i in range(0, 1000000*param): | |
k += math.sin(i) * math.sqrt(i) * math.pow(i, 20) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Teste de Input</title> | |
</head> | |
<body> | |
<input id="textinput" type="text"></input> | |
<input id="textoutput" type"text"></input> | |
</body> |
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 <stdio.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <float.h> | |
#include <math.h> | |
#if 0 | |
// Assossiative operations |
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
// Resolve um sistema linear pela substituição LU. | |
double* LU (double **A, double *b) | |
{ | |
int i, j, k, p; | |
double *pivot = new double[n]; | |
double Amax, t, m, r, Mult; | |
// 1 PASSO: Transformar a matriz A do problema em duas matrizes triangulares L e U. | |
for (i = 0; i < n; i++) | |
pivot[i] = i; | |
for (j = 0; j < n-1; j++) |
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
#!/bin/sh | |
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm | |
cd llvm/tools | |
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang | |
cd ../projects | |
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt | |
cd ../.. | |
mkdir llvm-build | |
cd llvm-build |
OlderNewer