Skip to content

Instantly share code, notes, and snippets.

View yarox's full-sized avatar

Adrian Martin yarox

  • The Wonder Lab
  • Paradise
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yarox
yarox / setup-postgresql-vagrant.md
Last active March 2, 2018 17:33 — forked from carymrobbins/setup-postgresql-vagrant.md
Configure PostgreSQL in a Vagrant guest to allow connections from the host.

Configure PostgreSQL

  • Add host all all 0.0.0.0/0 trust to /etc/postgresql/<version>/main/pg_hba.conf
  • Update /etc/postgresql/<version>/main/postgresql.conf to use listen_addresses = '*'
  • Restart the server with sudo /etc/init.d/postgresql restart

Configure Vagrant

  • Add config.vm.network :forwarded_port, host: 5432, guest: 5432 to the Vagrant.configure block in your Vagrantfile.

Test your connection

@yarox
yarox / core02.ipynb
Created January 21, 2016 19:45
Ludobots - Your First Neural Network
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yarox
yarox / core01.ipynb
Last active January 20, 2016 17:22
Ludobots - The Hill Climber
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yarox
yarox / README.md
Last active December 14, 2015 15:38
d4d-visor

Visualization for the Orange "Data for Development" open data challenge. Use the up and down keys to change between days, and the left and right keys to move between hours.

This is only a demo with simulated data. For more information, please visit the project's repository.

@yarox
yarox / jarras.prolog
Created May 29, 2012 18:47
Resolución del problema de las jarras en prolog
% La jarra pequeña (P) tiene una capacidad de 3 unidades.
% La jarra grande (G) tiene una capacidad de 5 unidades.
% Existe una cantidad máxima de agua (A) que podemos utilizar para rellenar
% las jarras.
% Los estados se representan como e(P, G, A), donde P y G son las cantidades
% de agua que hay en cada jarra y A es la cantidad de agua disponible.
% Se define una transición como aplica(e(P, G, A), e(P', G', A')). Esto quiere
% decir que del estado e(P, G, A) podemos pasar al e(P', G', A') si se cumplen