I hereby claim:
- I am phdp on github.
- I am phdp (https://keybase.io/phdp) on keybase.
- I have a public key whose fingerprint is 081D 2E96 EC38 85A1 4E50 5C8C 9FA9 BB43 2964 5021
To claim this, I am signing this object:
// Compile with the -std=c++0x or -std=c++11 flag | |
#include <iostream> | |
#include <set> | |
#include <algorithm> | |
int main() { | |
// Create a set of numbers with the new initializer: | |
std::set<int> xs{ 6, 42, 47 }; |
// From Gaster et al.'s "Heterogeneous Computing with OpenCL". | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#if defined(__APPLE__) && defined(__MACH__) | |
#include <OpenCL/OpenCL.h> | |
#else | |
#include <CL/cl.h> |
I hereby claim:
To claim this, I am signing this object:
os: Windows Server 2012 | |
platform: x64 | |
branches: | |
only: | |
- master | |
install: | |
- cinst cmake | |
- cinst make |
// From: http://c.learncodethehardway.org/book/ex20.html | |
#ifndef __dbg_h__ | |
#define __dbg_h__ | |
#include <stdio.h> | |
#include <errno.h> | |
#include <string.h> | |
#ifdef NDEBUG |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <randamu/rng.h> | |
int main() { | |
const clock_t start = clock(); | |
rd_rng r; // A random number generator. | |
rd_rng_init_time(&r); // Initialize with the current time. | |
const int max = 2000000000; |
from random import randint as rand | |
max = 10000000 | |
sum = 0 | |
sumR = 0 | |
for i in range(0, max): | |
x = rand(1, 1000) / 2.0 | |
sum += x | |
sumR += round(x) | |
print((sumR - sum) / max) |
<html> | |
<section> | |
<p>AAA</p> | |
</section> | |
<p>BBB</P> | |
<P id='z'>CCC</p> | |
<div> | |
<p>DDD</p> | |
<div> | |
<p>EEE</p> |
<html>Test</html> |