Skip to content

Instantly share code, notes, and snippets.

View astrojuanlu's full-sized avatar

Juan Luis Cano Rodríguez astrojuanlu

View GitHub Profile
@gansanay
gansanay / hdf_vs_feather.ipynb
Last active June 26, 2023 12:25
Compare HDF5 and Feather performance (speed, file size) for storing / reading pandas dataframes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrofrog
astrofrog / When will Stuart be Vertical?.ipynb
Created July 6, 2017 09:45
When will Stuart (@RTWbike) be vertical relative to the ecliptic?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nmayorov
nmayorov / solve_ivp_example.ipynb
Last active August 25, 2016 12:52
New ODE solver for scipy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrojuanlu
astrojuanlu / generate.py
Created March 21, 2016 16:34
Generate AeroPython certificates
from datetime import datetime
from lxml import etree
from natural.number import ordinal
def main(source_fname, names):
with open(source_fname, 'r') as fh:
doc = etree.parse(fh)

Most downloaded projects

SELECT
  file.project,
  COUNT(*) as total_downloads,
FROM
  TABLE_DATE_RANGE(
    [the-psf:pypi.downloads],
    TIMESTAMP("20160114"),
@brunosan
brunosan / index.md
Last active June 15, 2018 23:57
This is a list inspired by some of our current or potential lines of work at the World Bank Innovation Labs. The “Innovations in Big Data Analytics” program helps to strengthen the World Bank capabilities to effectively use big data in its operational and strategic work.

This is a list inspired by some of our current or potential lines of work at the World Bank Innovation Labs. The “Innovations in Big Data Analytics” program helps to strengthen the World Bank capabilities to effectively use big data in its operational and strategic work.

We are always looking for great Data Scientists. If you can solve any of these [using open software], you'll be heads down helping us from day one. Email us to brunosanchez@worldbank.org

(This list is updated frequently).

1. Nightlights from Satellite

We are building an open stack to process nightly data from satellite and query light output from all known villages. Currently we are doing 20 years of nightly data for 600,000 villages in India.

@tinproject
tinproject / Use case.ipynb
Created December 15, 2015 16:14
Caliair, process air quality data from Ayto. Madrid.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiaaro
jiaaro / _INSTRUCTIONS.md
Last active January 22, 2024 17:47
Using Swift libraries in Python

Using Swift libraries in Python

So... this is obviously totally, 100%, like for. real. not. supported. by. Apple. …yet?

But still... I thought it was pretty badass. And, seeing how there's already a Swift buildpack for Heroku you could move some slow code into Swift can call it as a library function. But, you know, not in production or anything. That would be silly, right?

Now, having said that, the actual Python/Swift interop may have bugs. I'll leave that as an exercise to the reader.

How to get Python code calling Swift functions:

@astrojuanlu
astrojuanlu / pybonacci.mplstyle
Last active January 23, 2016 12:18
Estilo de matplotlib para Pybonacci
axes.facecolor : eeeeee
axes.edgecolor : bcbcbc
axes.linewidth : 1
axes.grid : True
axes.labelcolor : 555555
axes.axisbelow : True
axes.prop_cycle : cycler('color', ['204a87', 'cc0000', 'c88a00', '4e9a06', '7a68a6', 'cf4457', '188487'])
xtick.major.size : 0
xtick.minor.size : 0
@ramnathv
ramnathv / Makefile
Last active January 16, 2021 13:47
R Markdown to IPython Notebook
example.md: example.Rmd
./knit
example.ipynb: example.md
notedown example.md | sed 's/%%r/%%R/' > example.ipynb