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 <stdio.h> | |
#include <stdint.h> | |
#include <glib.h> | |
#include <gmp.h> | |
int main(){ | |
uint64_t i, maybe_prime; | |
mpz_t candidate, next, remainder; | |
GArray *primes; |
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 <dirent.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
/* filter for regular files only */ | |
static int dirent_select(const struct dirent* ent) | |
{ | |
return ent->d_type == DT_REG; | |
} |
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
#!/bin/bash -eux | |
cat <<EOF >package.json | |
{ | |
"name": "npm-install-order-test", | |
"private": true, | |
"version": "0.0.0", | |
"dependencies" : { | |
"express" : "*" | |
} |