This is my recommended path for learning Haskell.
This file contains 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 lang="en" dir="ltr" class="client-nojs"> | |
<body> | |
<div class="x"> | |
<div id="y"> | |
<p>This is some <b>nice</b> <i>text</i>, right?</p> | |
<P>This is some nice text, right?</P> | |
</div> | |
<P class="Some text" id="xyz"> | |
<u>This</u> is some nice text, right? |
This file contains 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
<html>Test</html> |
This file contains 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
<html> | |
<section> | |
<p>AAA</p> | |
</section> | |
<p>BBB</P> | |
<P id='z'>CCC</p> | |
<div> | |
<p>DDD</p> | |
<div> | |
<p>EEE</p> |
This file contains 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 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) |
This file contains 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 <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; |
This file contains 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: http://c.learncodethehardway.org/book/ex20.html | |
#ifndef __dbg_h__ | |
#define __dbg_h__ | |
#include <stdio.h> | |
#include <errno.h> | |
#include <string.h> | |
#ifdef NDEBUG |
This file contains 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
os: Windows Server 2012 | |
platform: x64 | |
branches: | |
only: | |
- master | |
install: | |
- cinst cmake | |
- cinst make |
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:
This file contains 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 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> |
OlderNewer