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 <stdlib.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <netdb.h> | |
#include <netinet/in.h> |
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
# number of subjects in each condition | |
n <- 10000 | |
# number of replications of the study in order to check the Type I error rate | |
nsamp <- 10000 | |
ps <- replicate(nsamp, { | |
#population mean = 0, sd = 1 for both samples, therefore, no real effect | |
y1 <- rnorm(n, 0, 1) | |
y2 <- rnorm(n, 0, 1) | |
tt <- ks.test(y1, y2) |
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/bash | |
MYDIR=~/.local/share/idid | |
mkdir -p "$MYDIR" | |
echo $(date -u --iso-8601=seconds) $@ >> "$MYDIR"/log |
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 __future__ import print_function | |
import sys | |
import getopt | |
import math | |
g = None | |
m = None | |
argv = sys.argv[1:] | |
opts, args = getopt.getopt(argv, "m:") |
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 __future__ import print_function | |
import sys | |
import getopt | |
import math | |
g = None | |
m = None | |
argv = sys.argv[1:] | |
opts, args = getopt.getopt(argv, "m:") |
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 __future__ import print_function | |
import sys | |
import getopt | |
import math | |
g = None | |
e = None | |
m = None | |
argv = sys.argv[1:] |
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
/* | |
* xfs-bloat.c | |
* | |
* Create a file that allocates a large amount of space on an XFS file system. | |
* | |
* Compilation: | |
* gcc -Wall xfs-bloat.c -o xfs-bloat | |
*/ | |
#include <xfs/xfs.h> |