Skip to content

Instantly share code, notes, and snippets.

Irving Rodríguez irvingprog

Block or report user

Report or block irvingprog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@irvingprog
irvingprog / labyrinth.py
Created Nov 11, 2014
Get directions to final point in a labyrinth represented by a multidimensional list
View labyrinth.py
from collections import namedtuple
def get_directions_to_final_point(labyrinth):
def check_neighbour(f, c, direction):
""" Check if the neighbour might be added to branch
or is needed create a new branch """
if labyrinth[f][c] == 0 and (f, c) not in copy_pos_branch:
if len(branch) == len_branch:
@irvingprog
irvingprog / hash_reversed.go
Created Aug 12, 2014
Hash reversed challenge to developer job position at Trello.com
View hash_reversed.go
package main
import ("fmt"
"strings")
func main() {
var letters string = "acdegilmnoprstuw"
var chars = []string{}
var hash int64 = 956446786872726
var reverse_chars = []string{}
@irvingprog
irvingprog / hash_reversed.py
Last active Aug 29, 2015
Hash reversed challenge to developer job position at Trello.com
View hash_reversed.py
#!/usr/bin/python
# -*- encoding: utf-8 -*-
#
# Copyright 2014 - Irving Prog
# License: LGPLv3 (see http://www.gnu.org/licenses/lgpl.html)
def hash_reversed(hash_):
LETTERS = 'acdegilmnoprstuw'
chars = []
View webscrapping segundamanomx
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import json
import requests
class ConsultarDatos:
def __init__(self, pagina_base, numero_paginas=1):
self.pagina_busquedas = ""
@irvingprog
irvingprog / gist:7828479
Last active Dec 30, 2015
PilasWeb: Vaca Voladora
View gist:7828479
class ejemplo {
vaca_voladora;
constructor() {
this.vaca_voladora = Vaca_Voladora;
}
}
class FondoCielo extends Fondo {
constructor() {
super("fondos/nubes.png", 0, 0);
You can’t perform that action at this time.