Skip to content

Instantly share code, notes, and snippets.

View cannin's full-sized avatar

Augustin Luna cannin

View GitHub Profile
@Fedik
Fedik / markdown_doc
Last active December 20, 2024 11:53 — forked from jiffyclub/markdown_doc
Turn Markdown into HTML using Python markdown library and wraps the result in a complete HTML document with default Bootstrap styling. Requires the python libraries markdown.
#!/usr/bin/env python
import argparse, sys, markdown
TEMPLATE = """<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="referrer" content="no-referrer" />
<meta name="referrer" content="unsafe-url" />
@tanaikech
tanaikech / submit.md
Last active April 29, 2025 08:30
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
@cannin
cannin / basicTraversal_3.groovy
Last active November 28, 2024 05:39
BioPAX Tutorial; Examples from the Paxtools User's Guide. (PubMed ID: 24068901 Link: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003194)
//BASIC TRAVERSAL
// Get names for all elements in a BioPAX OWL file and then for just Proteins
import org.biopax.paxtools.io.BioPAXIOHandler;
import org.biopax.paxtools.io.SimpleIOHandler;
import org.biopax.paxtools.model.Model;
import org.biopax.paxtools.model.BioPAXElement;
import org.biopax.paxtools.model.level3.Protein;
// Load a sample test BioPAX File via Simple IO Handler
InputStream f = new FileInputStream(new File("data/biopax3-short-metabolic-pathway.owl"));