This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
python: 3.8 | |
pre_build: | |
commands: | |
- apt-get install -y python3-venv | |
- python3.6 -m venv test_venv |
In Person Engagements: 1213
1. NgColombia (International Conference)
Latin America first Angular conference held in Medellín and gathering +230 attendees and 8 different speakers, including 3 GDEs:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class TicTacToe: | |
def __init__(self, playerX, playerO): | |
self.board = [' ']*9 | |
self.playerX, self.playerO = playerX, playerO | |
self.playerX_turn = random.choice([True, False]) | |
def play_game(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, cv2 | |
# Refactored https://realpython.com/blog/python/face-recognition-with-python/ | |
def cascade_detect(cascade, image): | |
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
return cascade.detectMultiScale( | |
gray_image, | |
scaleFactor = 1.15, | |
minNeighbors = 5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a1 = [0,0,0] | |
var a2 = [0,0,0] | |
var a3 = [0,0,0] | |
var tablero = [a1,a2,a3] | |
function introPieza (jugador, x,y){ | |
si tablero[x][y] == 0 | |
tablero[x][y]== jugador // si la casilla es 0, esta libre, el jugador n puede poner la casilla | |
devuelve verdadero // cuando es valida la accion, cambia de jugador. si devuelve falso sigue jugando el mismo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (C) 2010 Matteo Bertini <[email protected]> | |
# Licensed as http://creativecommons.org/licenses/BSD/ | |
# | |
# This is a naive implementation of the k-means unsupervised clustering | |
# algorithm (http://en.wikipedia.org/wiki/K-means_clustering). | |
from __future__ import division | |
import sys |