Skip to content

Instantly share code, notes, and snippets.

@irvingprog
irvingprog / gist:7828479
Last active December 30, 2015 12:19
PilasWeb: Vaca Voladora
class ejemplo {
vaca_voladora;
constructor() {
this.vaca_voladora = Vaca_Voladora;
}
}
class FondoCielo extends Fondo {
constructor() {
super("fondos/nubes.png", 0, 0);
@irvingprog
irvingprog / labyrinth.py
Created November 11, 2014 23:53
Get directions to final point in a labyrinth represented by a multidimensional list
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 August 12, 2014 05:42
Hash reversed challenge to developer job position at Trello.com
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 August 29, 2015 14:04
Hash reversed challenge to developer job position at Trello.com
#!/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 = []
#!/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 = ""