Skip to content

Instantly share code, notes, and snippets.

@bougui505
bougui505 / ipy_hide_input
Last active August 29, 2015 14:06 — forked from hannes-brt/ipy_hide_input
Usage: ipython nbconvert Untitled0.ipynb --to slides --stdout | ./ipy_hide_input > index.html
#! /usr/bin/env python
"""
The MIT License (MIT)
Copyright (c) 2013 Hannes Bretschneider
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
@bougui505
bougui505 / 0_reuse_code.js
Last active August 29, 2015 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bougui505
bougui505 / pagerank.py
Created August 19, 2016 14:10 — forked from diogojc/pagerank.py
python implementation of pagerank
import numpy as np
from scipy.sparse import csc_matrix
def pageRank(G, s = .85, maxerr = .001):
"""
Computes the pagerank for each of the n states.
Used in webpage ranking and text summarization using unweighted
or weighted transitions respectively.
#!/usr/bin/env python
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr
# https://research.pasteur.fr/en/member/guillaume-bouvier/
# 2016-08-26 13:20:35 (UTC+0200)
# DSSP_SECONCARY.PY
# Trajectories of Secondary Structure by DSSP
# The keys [" ","B","E","G","H","I","T","S"]