Skip to content

Instantly share code, notes, and snippets.

View odarbelaeze's full-sized avatar
:shipit:
Studying

Oscar Arbeláez-Echeverri odarbelaeze

:shipit:
Studying
  • NextRoll
  • Dublin, Ireland
View GitHub Profile
@odarbelaeze
odarbelaeze / keybase.md
Last active July 14, 2021 15:51
Keybase proff

Keybase proof

I hereby claim:

  • I am odarbelaeze on github.
  • I am odarbelaeze (https://keybase.io/odarbelaeze) on keybase.
  • I have a public key ASDMkNJlYJ-JPrL9gjat_LG8AK46U_vYLQ6nYOOjRVlqQwo

To claim this, I am signing this object:

@odarbelaeze
odarbelaeze / fight_or_flight.feature
Created May 25, 2018 03:36
Behaviour driven development.
Feature: Fight of flight
In order to increase the ninja survival rate
As a ninja commander
I want my ninjas to decide whether to take on an
oponent based on their skill levels
Scenario: Weaker opponent
Given the ninja has a third level black-belt
When attacked by a samurai
@odarbelaeze
odarbelaeze / Functional.ipynb
Created November 11, 2017 17:29
Functional approach to a Tensor implementation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@odarbelaeze
odarbelaeze / Dockerfile
Created August 17, 2017 00:02
Vegas Dockerfile
FROM ubuntu:16.04
RUN apt-get update -q -y
RUN apt-get install -q -y libhdf5-dev libjsoncpp-dev
RUN apt-get install -q -y cmake build-essential
ADD . /vegas
RUN mkdir /vegas/build
WORKDIR /vegas/build
RUN cmake ../compilers/linux && make && make install
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@odarbelaeze
odarbelaeze / App.js
Created July 4, 2017 22:08
React router basic example.
import React, { Component } from 'react';
import {BrowserRouter, Route, Link} from 'react-router-dom';
import logo from './logo.svg';
import './App.css';
const Contacto = () => (
<div className="contacto">
Salude no mas
</div>
@odarbelaeze
odarbelaeze / hanoi.rs
Created May 19, 2017 03:55
A solution to the Hanoi tower problem.
/// One of the posts of the tower of Hanoi
#[derive(Debug, Clone, Copy)]
enum Post {
Left, Middle, Right,
}
/// Helper function to recursively resolve a Tower of Hanoi
fn recursive_hanoi(n: u64, from: Post, to: Post, auxiliar: Post) {
if n > 0 {
recursive_hanoi(n - 1, from, auxiliar, tp);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@odarbelaeze
odarbelaeze / decoradores.py
Created April 8, 2017 14:16
Decoradores y context managers.
import functools
import contextlib
@contextlib.contextmanager
def database():
print("creo una conexion")
db = {}
yield db
print ("cierro la conexion")