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
>seq0 | |
FQTWEEFSRAAEKLYLADPMKVRVVLKYRHVDGNLCIKVTDDLVCLVYRTDQAQDVKKIEKF | |
>seq1 | |
KYRTWEEFTRAAEKLYQADPMKVRVVLKYRHCDGNLCIKVTDDVVCLLYRTDQAQDVKKIEKFHSQLMRLME | |
LKVTDNKECLKFKTDQAQEAKKMEKLNNIFFTLM | |
>seq2 | |
EEYQTWEEFARAAEKLYLTDPMKVRVVLKYRHCDGNLCMKVTDDAVCLQYKTDQAQDVKKVEKLHGK | |
>seq3 | |
MYQVWEEFSRAVEKLYLTDPMKVRVVLKYRHCDGNLCIKVTDNSVCLQYKTDQAQDVK | |
>seq4 |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use List::Util qw(shuffle); | |
use Fcntl qw(SEEK_CUR); | |
my $inFn = "example.fa"; | |
my $n = 5; |
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
#!/usr/bin/perl -w | |
use strict; | |
use Getopt::Long; | |
use Data::Dumper; | |
use EulerSet; | |
# | |
# sample input: | |
# |
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
A B C | |
0 1 0 | |
0 1 0 | |
0 1 0 | |
0 1 0 | |
0 0 1 | |
0 1 1 | |
0 1 1 | |
0 1 1 | |
0 1 0 |
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
#!/usr/bin/perl | |
package EulerSet; | |
sub new { | |
my $class = shift; | |
my $self = { | |
_subsetRef => shift, | |
_indicator => shift, | |
_length => shift, |
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 <string.h> | |
#define MAX_LETTERS 5 | |
int main(int argc, char *argv[]) | |
{ | |
const char *source = "candle"; | |
char *destination = NULL; |
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
[areynolds@fiddlehead src]$ pwd | |
/home/areynolds/proj/sjn/25Feb2015/src | |
[areynolds@fiddlehead src]$ ./merge-all-dhs.parallel.debug.tcsh | |
set hotdir = ../data/hotspots | |
find -L ../data/hotspots/ -maxdepth 2 -mindepth 2 -type f -name *.gz -print0 | |
parallel -0 -X -m zcat {} | |
valgrind --tool=massif --pages-as-heap=yes --peak-inaccuracy=0.1 /home/sjn/Github/BEDOPS/bedops/applications/b\ | |
ed/sort-bed/bin/debug.sort-bed --max-mem 1G - | |
==30303== Massif, a heap profiler |
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 <sys/stat.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
struct stat st; | |
if (stat(argv[1], &st) == -1) { | |
fprintf(stderr, "Error: stat() failed\n"); |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use File::Basename; | |
use File::Path; | |
use File::Copy; | |
use Getopt::Long; | |
use IO::File; |
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
package org.stamlab.test; | |
public class EqualTestClass { | |
private final static double kEpsilon = 1e-12; | |
public static boolean isEqual(double a, double b) { | |
return Math.abs(a - b) < kEpsilon; | |
} | |
public static void main(String[] args) { |