Skip to content

Instantly share code, notes, and snippets.

View lindenb's full-sized avatar
😶
I hate people.

Pierre Lindenbaum lindenb

😶
I hate people.
View GitHub Profile
@lindenb
lindenb / ff.xsl
Last active December 14, 2017 18:28
xslt friendfeed xml
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<!--
Author:
Pierre Lindenbaum
http://plindenbaum.blogspot.com
Usage :
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"
xmlns:georss="http://www.georss.org/georss"
version='1.0'>
<!--
Author:
/**
Author: Pierre Lindenbaum PhD
http://plindenbaum.blogspot.com
January 2010
About: this code makes a Fasta File a source of Triples for a Jena RDF Graph
*/
package test;
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:doac="http://ramonantonio.net/doac/0.1/">
<foaf:PersonalProfileDocument rdf:about="">
<foaf:maker rdf:resource="http://code.google.com/p/lindenb/source/browse/trunk/src/xsl/linkedin2foaf.xsl"/>
<foaf:primaryTopic rdf:resource="http://www.linkedin.com/ppl/webprofile?id=152036"/>
</foaf:PersonalProfileDocument>
<foaf:Person rdf:about="http://www.linkedin.com/ppl/webprofile?id=152036">
<foaf:name>Kingsley Idehen</foaf:name>
<foaf:givenname>Kingsley</foaf:givenname>
<foaf:family_name>Idehen</foaf:family_name>
package org.lindenb.acn2taxonomy;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
/* C call from R
.Call("myroundCall",as.double(1204.245))
*/
SEXP myroundCall(SEXP a){
double *ap = REAL(a), *ansp;
digraph G {
transcript[shape=box];
protein_feature[shape=box];
unconventional_transcript_association[shape=box];
seq_region[shape=box];
exon_stable_id[shape=box];
meta_coord[shape=box];
attrib_type[shape=box];
oligo_feature[shape=box];
translation_attrib[shape=box];
all:
g++ -Wall binlinkage.cpp
./a.out -f linkage.bin -p write
./a.out -f linkage.bin -p read
rm linkage.bin
CFLAGS=-I ${SQLITE3DIR}/include -Wall
LDFLAGS=-L ${SQLITE3DIR}/lib
#export LD_LIBRARY_PATH=${SQLITE3DIR}/lib
test:hapmap2sqlite genotypes.txt.gz
rm -f database.db
./hapmap2sqlite -o database.db genotypes.txt.gz
genotypes.txt.gz:
wget -O $@ "http://hapmap.ncbi.nlm.nih.gov/downloads/genotypes/latest/forward/non-redundant/genotypes_chrY_CEU_r27_nr.b36_fwd.txt.gz"
hapmap2sqlite:hapmap2sqlite.c
/**
* test if the web services listed in http://www.biocatalogue.org/ are
* valid for wsimport
* Author : Pierre Lindenbaum PhD
* http://plindenbaum.blogspot.com
*/
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;