Skip to content

Instantly share code, notes, and snippets.

View ajspadial's full-sized avatar

Antonio J Sánchez-Padial ajspadial

  • Fundación Española para la Ciencia y la Tecnología (FECYT). Universidad Complutense de Madrid
  • Madrid, Spain
  • X @ajspadial
View GitHub Profile
@ajspadial
ajspadial / agrep_codes.txt
Created November 5, 2018 14:29
AGREP Subject Areas
/*
Copyright notice
© European Union, 2018
Reuse of legal, administrative and case-law documents and data published on this website for commercial or non-commercial purposes is authorised provided the source is acknowledged. The reuse policy of the European Commission is implemented by a Decision of 12 December 2011.
The European Commission general publications may also be reused provided the source is acknowledged, according to the above-mentioned Decision.
For general publications of other EU institutions, bodies, offices and agencies, the following rules apply:
Downloading and reproduction are authorised provided the source is acknowledged.
Translations of publications into languages other than the language editions published on this website are subject to the conclusion of a free-of-charge licence agreement.
@ajspadial
ajspadial / install_qiime.sh
Last active April 20, 2017 12:06
This script installs `qiime` following the instructions at http://qiime.org/install/install.html
#!/bin/bash
# This script installs `qiime` following the instructions at http://qiime.org/install/install.html, creating a conda enviroment
# called `qiime1`
# It also installs miniconda following the steps at https://conda.io/docs/install/quick.html, in case it's not found within
# the user's path
source activate qiime1 2> /dev/null
if [ $? -eq 0 ]; then
echo "qiime is already installled. Use \`source activate qiime1i\` to activate its working environment"
a[lang]:after {
content: " [" attr(lang) "]";
font-size: .75em;
}
@ajspadial
ajspadial / taconeo
Last active July 1, 2016 14:38
Taconeo
Licensed GPL3
@ajspadial
ajspadial / score.json
Created June 21, 2016 07:49
Dancing score
[
{time:0,
type: 'dancer',
id:'xuan',
gender:'m'},
{time:0,
type: 'dancer',
id:'pep',
gender:'m'},
{time:0,
@ajspadial
ajspadial / count_nucleotinds.lol
Created December 2, 2015 09:08
Rosalind Problems 1. Counting DNA Nucleotids in LOLCODE
HAI
I HAS A AIS ITZ 0
I HAS A CIS ITZ 0
I HAS A TIS ITZ 0
I HAS A GIS ITZ 0
I HAS A DATASET
GIMMEH DATASET
I HAS A I ITZ 0
IM IN YR LOOP UPPIN YR I TIL BOTH SAEM I AN LEN OF DATASET
DATASET!I, WTF?
@ajspadial
ajspadial / download-sampletest.php
Created September 8, 2015 22:54
Simple script for downloading every picture in http://bl-labs.github.io/arcadeinterface/sample_images.html for the Brittish Library Crodwsourcing Jam
<?php
$sampleset = file_get_contents('data/sampleset.csv');
$samples = explode("\n", $sampleset);
array_shift($samples);
array_walk($samples, function($s) {
$sampleData = explode(',', $s);
$namefile = $sampleData[0];
$smallURL = $sampleData[4];
copy($smallURL, 'data/repo/' . $namefile . '.jpg');
});
@ajspadial
ajspadial / closureVS1methodians.java
Last active August 29, 2015 14:28
Java closure vs 1-method malefic class
// # Common declarartion
interface Displayable {
void draw();
}
// # Closure style
Function<Void, Void> blinker;
@ajspadial
ajspadial / DumbDrain.py
Last active August 29, 2015 14:10
Dumb Drain: A sinfonier drain that does nothing
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal