Skip to content

Instantly share code, notes, and snippets.

View veelo's full-sized avatar

Bastiaan Veelo veelo

  • Trondheim, Norway
View GitHub Profile
@veelo
veelo / howto.md
Last active September 27, 2018 01:03
ddox on Travis CI

Serve ddox documentation on github.io deployed by Travis CI

This guide makes no assumptions on prior knowledge of Github Pages or Travis CI. You'll know which steps to skip (if the project uses Pages already, this will overwrite them). Assumed is you have a public D project on GitHub and you have documented its API with embedded ddoc comments. You should probably be aware of the known issues of ddox, which we use here.

For a project URL like https://github.com/<user>/<project>, the documentation will appear at https://<user>.github.io/<project>/.

Enable Travis CI for your repository

The long story: https://docs.travis-ci.com/user/getting-started/, https://docs.travis-ci.com/user/languages/d/

The short story:

@veelo
veelo / twinprimes_ssoz.d
Created November 8, 2018 10:57 — forked from jzakiya/twinprimes_ssoz.d
Twinprimes generator, multi-threaded, using SSoZ (Segmented Sieve of Zakiya), written in D
/**
* Find the Twin Primes <= N using the Segmented Sieve of Zakiya (SSoZ)
* This is a D port of the Nim program twinprimes_ssoz.nim:
* https://gist.github.com/jzakiya/6c7e1868bd749a6b1add62e3e3b2341e
*
* This D source file, and subsequent modifications, can be found here:
* https://gist.github.com/jzakiya/ae93bfa03dbc8b25ccc7f97ff8ad0f61
*
* To compile with ldc2: $ ldc2 --release -O3 twinprimes_ssoz.d
*