Skip to content

Instantly share code, notes, and snippets.

View espetro's full-sized avatar
🐴

Quino Terrasa espetro

🐴
View GitHub Profile
@espetro
espetro / ADMISSIONS_ORBDA.csv
Created May 22, 2019 14:03
Adapting ORBDA database to match MIMIC-III-based ML pipelines requirements
We can't make this file beautiful and searchable because it's too large.
ROW_ID,SUBJECT_ID,HADM_ID,ADMITTIME
0,703429893,703429893,2008-01-10 00:00:00
1,220337894,220337894,2011-01-01 00:00:00
2,-1896179957,-1896179957,2010-01-09 00:00:00
3,-1058825032,-1058825032,2011-01-09 00:00:00
4,-1989812084,-1989812084,2010-01-05 00:00:00
5,-44304723,-44304723,2008-01-03 00:00:00
6,1144574430,1144574430,2011-01-04 00:00:00
7,978111639,978111639,2009-01-03 00:00:00
8,1975580888,1975580888,2012-01-05 00:00:00
@espetro
espetro / _template.world
Last active May 19, 2019 18:22
Parrot-Sphinx world template
<?xml version="1.0"?>
<sdf version='1.5'>
<world name='default'>
<gui fullscreen='0'>
<camera name='user_camera'>
<pose frame=''>2.70464 -1.54753 3.05779 0 0.339643 2.2362</pose>
<track_visual>
<static>true</static>
<use_model_frame>true</use_model_frame>
@espetro
espetro / console_log.txt
Created May 7, 2019 09:46
Parrot Sphinx 1.2.1 (Gazebo 7.0) "Cannot get param" error
sphinx $SPHINX_ROOT/drones/bebop.drone
Gazebo multi-robot simulator, version 7.0.1
Copyright (C) 2012-2015 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Gazebo multi-robot simulator, version 7.0.1
Copyright (C) 2012-2015 Open Source Robotics Foundation.
Released under the Apache 2 License.
@espetro
espetro / blog.md
Last active October 2, 2017 19:50
PHP fresh start

PHP is the most widely-known scripting language for server-side applications. Yet still, a lot of people like me have never had the need to learn it. Maybe because it's not that fast, or because it's the granny of server development. Nevertheless, it's a language worth to know. Here, I've curated a list of what you need to learn it, so there you go:

  • A great [course on PHP][1] that shows you the advantages of its easy syntax and included functionalities.
  • Pick up [a project][4] to work on developing your skills.
  • Get your side projects to work in a real-world environment, developing with popular libraries like [Laravel][5] and publishing your versions in [Heroku][6].

There is yet another thing that is not always remembered, and that is code style. Don't bother to write a tremendous application if you are not willing to make it accessible to other developers. There are [multiple books on the topic][2], but I recommend you to bring always a [code style guide][3] with you.

*tip:

@espetro
espetro / index.html
Last active October 30, 2020 09:11
JS color interpolation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Color Interpolator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
Interim steps: <input type="range" id="numsteps" value="10" min="1" max="20" />
<ul id="list">
@espetro
espetro / LICENSE.md
Last active July 3, 2017 22:27
d3.slopegraph() | reusable slopegraph v3
@espetro
espetro / .block
Created June 16, 2017 17:17
fresh block
license: mit
@espetro
espetro / odyssey.R
Created June 4, 2017 12:30
Function composition in R - text mining application
# Using 'Book I', the Odyssey from The Internet Classics Archive
# http://classics.mit.edu/Homer/odyssey.html
needed <- c("tm", "functional")
# install.packages(needed)
sapply(needed, require, character.only = TRUE)
text <- readLines("http://classics.mit.edu/Homer/odyssey.mb.txt")
str(text)
text[198]
@espetro
espetro / index.html
Last active July 24, 2017 22:26
Google's Stochastic Matrix on R
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
@espetro
espetro / cities.csv
Last active May 13, 2017 18:32
D3 challenge month [2,1]: intro to maps + zooming + ES6
code city country lat lon
ZNZ ZANZIBAR TANZANIA -6.13 39.31
TYO TOKYO JAPAN 35.68 139.76
AKL AUCKLAND NEW ZEALAND -36.85 174.78
BKK BANGKOK THAILAND 13.75 100.48
DEL DELHI INDIA 29.01 77.38
SIN SINGAPORE SINGAPOR 1.36 103.75
BSB BRASILIA BRAZIL -15.67 -47.43
RIO RIO DE JANEIRO BRAZIL -22.90 -43.24
YTO TORONTO CANADA 43.64 -79.40