Skip to content

Instantly share code, notes, and snippets.

View aaossa's full-sized avatar
馃К
Working as ML Engineer

Antonio Ossa-Guerra aaossa

馃К
Working as ML Engineer
View GitHub Profile
@aaossa
aaossa / import_compiled.py
Last active September 8, 2015 15:28
This snippets allows to import a compiled python file in a simple way
import imp
# This snippet allows to import a compiled python file
# in a simple way
my_module = imp.load_compiled(
"my_module", r"full\or\relative\path\to\module.pyc")
@aaossa
aaossa / demo.tex
Last active November 21, 2015 01:43
\documentclass[letter]{article}
\usepackage[utf8]{inputenc}
\begin{document}
Hola soy \textbf{Antonio Ossa :)} y mi funci贸n cuadr谩tica favortita es $x^2 + 1$
\end{document}
@aaossa
aaossa / .gitignore
Last active July 8, 2016 23:32
Template Tareas en LaTeX
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
@aaossa
aaossa / AutoPull.bat
Created March 27, 2016 04:17
Batch utilities
@ECHO OFF
REM This bat file iterates on the folders in this directory and
REM makes a "git pull" over every folder (only "git repos")
FOR /f "delims=" %%D IN ('dir /a:d-h /b') DO (
CD %%~D
IF EXIST ".git" (
ECHO Repo: %%D
git pull
@aaossa
aaossa / asyncio_template.py
Last active July 10, 2016 17:31
Simple Python 3.5 asyncio base
import asyncio
async def slow_operation(n):
await asyncio.sleep(n)
print("{} Slow operation complete".format(n))
async def main():
await asyncio.wait([slow_operation(1),
slow_operation(2),
@aaossa
aaossa / Bing.py
Created July 29, 2016 05:09
Run it and change your desktop wallpaper to "Bing's Image of the Day". Tested in Win7
from requests import Session
from os.path import join
from os import getcwd, remove
from PIL import Image
import ctypes
URL = 'http://www.bing.com'
PATH = getcwd() + '\\images'
SPI_SETDESKWALLPAPER = 20
@aaossa
aaossa / .gitmessage
Created January 26, 2017 23:26
My git commit template
# |<---- Using a Maximum Of 50 Characters ---->|
# If this commit is applied, it will...
# Examples of imperative mood: Refactor X, Update Y, Remove Z
Subject
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# What/why/how was this change made?
Body
# Any references to relevant tickets, articles, resources, etc?
@aaossa
aaossa / README.md
Created October 1, 2017 19:28
C贸mo trabajar con git branches

Workflow con git

Para este proyecto seguiremos la metodolog铆a de tener una branch principal master (equivalente a release en otros proyectos), una branch dev (o development) para comprobar que todo funcione antes de enviar los cambios a master y m煤ltiples "feature branches" para que cada colaborador pueda enacrgarse de una tarea definida, trabajarla y probarla a gusto antes de reunir los cambios en dev. Para m谩s detalle y ejemplos pueden usar de esta lectura la secci贸n Feature Branch Workflow.

From: https://www.atlassian.com/pt/git/workflows

Pasos para empezar a trabajar en una feature

@aaossa
aaossa / Exploraci贸n de commits IIC2233 2020-1.ipynb
Created May 11, 2020 03:32
An谩lisis de commits para IIC2233 2020-1
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.