Skip to content

Instantly share code, notes, and snippets.

View leslysandra's full-sized avatar
🏠
Working from home

Lesly Zerna leslysandra

🏠
Working from home
View GitHub Profile
@gandroz
gandroz / buildspec.yml
Created April 9, 2020 02:19
buildspec yaml file
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
We couldn’t find that file to show.
@jdjuan
jdjuan / angular.md
Created January 21, 2018 16:04
Angular Community Efforts

Community Impact: Juan Herrera

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:

@PurpleBooth
PurpleBooth / README-Template.md
Last active March 11, 2025 16:38
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@fheisler
fheisler / q.py
Created March 31, 2015 23:02
Q-learning Tic-tac-toe
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):
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,
@lauralaurilauro
lauralaurilauro / Tres en raya
Created November 13, 2012 10:26
Pseudocodigo Tres en Raya
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
@naufraghi
naufraghi / kmeans.py
Created June 29, 2010 15:47
kmeans algorithm in python + iris dataset (naive implementation)
#!/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