Skip to content

Instantly share code, notes, and snippets.

View StuntsPT's full-sized avatar

Francisco Pina-Martins StuntsPT

View GitHub Profile
@StuntsPT
StuntsPT / keybase.md
Created May 24, 2015 16:39
Keybase.io identity proof

Keybase proof

I hereby claim:

  • I am StuntsPT on github.
  • I am stunts (https://keybase.io/stunts) on keybase.
  • I have a public key whose fingerprint is 760B FD4A 22DA 0F03 D9CD 660F 5651 A1E2 FEDD 2002

To claim this, I am signing this object:

@StuntsPT
StuntsPT / randomatic_3000.pl
Created September 29, 2015 15:53
Randomatic_3000.pl patched to work on linux too.
#!/usr/bin/env perl
#
# randomatic_3000.pl
#
# Copyright (c) 2015 Keith Bradnam
#
# 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 use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@StuntsPT
StuntsPT / PKGBUILD
Created August 26, 2015 00:55
PKGBUILD for python-protobuf
# Maintainer: Jerome Leclanche <jerome@leclan.ch>
_pkgname=protobuf
pkgname=python-$_pkgname
pkgver=3.0.0a3
pkgrel=3
pkgdesc="Python 3 bindings to Google Protocol Buffers"
arch=("any")
license=("BSD")
url="https://github.com/google/protobuf"
@StuntsPT
StuntsPT / PKGBUILD
Created October 22, 2012 12:46
PKGBUILD for dreampie
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Stunts <f.pinamartins@gmail.com>
pkgname=dreampie
pkgver=1.2.1
pkgrel=1
pkgdesc="A Python shell which is designed to be reliable and fun."
arch=('any')
url="http://dreampie.sourceforge.net"
license=('GPL')
depends=('pygtksourceview2')
@StuntsPT
StuntsPT / analysis.py
Created October 25, 2012 22:26
Quick and dirty script for plotting netperf
#!/usr/bin/python3
import matplotlib.pyplot as plt
def makelist(filename):
infile = open(filename,'r')
data = []
for lines in infile:
if lines.startswith("\n"):
# Maintainer: bmpvieira <mail AT bmpvieira DOT com>
# Contributor: Stunts <f DOT pinamartins AT gmail DOT com>
pkgname=structure
pkgver=2.3.4
pkgrel=1
pkgdesc="Program for using multi-locus genotype data to investigate population structure."
arch=('i686' 'x86_64')
url="http://pritch.bsd.uchicago.edu/structure.html"
license=('GPL')
depends=('java-environment')
@StuntsPT
StuntsPT / PKGBUILD
Last active December 20, 2015 23:48
Updated PKGBUILD for genepop
# Maintainer: bmpvieira <mail@bmpvieira.com>
# Contributor: Stunts <f.pinamartins@gmail.com>
pkgname=genepop
_uppkgname=Genepop
pkgver=4.2.1
pkgrel=1
pkgdesc="A population genetics software."
arch=('i686' 'x86_64')
license=('CeCILL')
url="http://kimura.univ-montp2.fr/~rousset/Genepop.htm"
@StuntsPT
StuntsPT / fast_lister.R
Created December 19, 2016 14:26
A cross platorm file lister for R
switch(Sys.info()[['sysname']],
Windows = {lister="dir"},
Linux = {lister="ls -1"},
Darwin = {lister="ls -1"})
system(lister)
@StuntsPT
StuntsPT / PKGBUILD
Created January 3, 2017 00:45
PKGBUILD with uhid access for "roccat" group users.
# Maintainer: Aaron Fischer <mail@aaron-fischer.net>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
# Contributor: Xpander <xpander0@gmail.com>
# Contributor: Stefan Achatz <erazor_de@users.soruceforge.net>
# Contributor: Zachary Lund <admin@computerquip.com>
# Contributor: Jesus Gonzalez <jesusmgh@gmail.com>
# Contributor: Francisco Pina-Martins <f.pinamartins@gmail.com>
pkgname=('roccat-tools-common'
'roccat-tools-arvo'
@StuntsPT
StuntsPT / Trend_plotter.R
Created October 24, 2017 15:20
Trends plot
#!/usr/bin/env Rscript
library(ggplot2)
trend = read.csv("/home/francisco/MEOCloud/Science/PhD/Thesis/Subdocs/C1_assets/Bioinformatics_pubmed.tsv", sep="\t")
ggplot(data=trend, aes(x=Year, y=X.000)) +
geom_bar(stat="identity", fill = I("lightblue")) +
guides(fill=FALSE) +
xlab("Year") + ylab("Number of papers with term per 100K pubmed papers") +