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
@Bilka2
Bilka2 / webhook.py
Last active June 4, 2025 04:52
Simple discord webhook with python
import requests # dependency
url = "<your url>" # webhook url, from here: https://i.imgur.com/f9XnAew.png
# for all params, see https://discordapp.com/developers/docs/resources/webhook#execute-webhook
data = {
"content" : "message content",
"username" : "custom username"
}
@radutzan
radutzan / Transantiago public endpoints.md
Last active October 13, 2023 03:31
APIs REST p煤blicas con data del Transantiago. Respuestas en JSON.

Nuevo: SCLTransit

Ignacio Hermosilla implement贸 un servicio web de acceso p煤blico usando los feeds GTFS de Transantiago y los puntos de acceso oficiales que normalmente requieren acuerdos con el DTPM, para que t煤 no tengas que hacerlo.

Est谩 toda la informaci贸n de Transantiago que puedas necesitar, con formatos de alta calidad y sin tr谩mites. Estas APIs son las que ahora alimentan a Cromi.

APIs internas de Transantiago (no recomendadas)

Transantiago implement贸 estas APIs para uso interno, por lo que no hay ninguna garant铆a sobre su funcionalidad, mantenimiento o futura existencia. 脷salas bajo tu propio riesgo. (Probablemente no es aconsejable que las uses para nada cr铆tico.)

@biglovisa
biglovisa / oauth-example.md
Last active July 13, 2020 01:49
OAuth Example using the omniauth-github gem
@map0logo
map0logo / libro_pdf.py
Last active August 29, 2015 14:15
Para crear el PDF a partir de las im谩genes descargadas con https://gist.github.com/map0logo/d97911f3d7dae2d30804
# instalar img2pdf usando
# $ pip install img2pdf
import img2pdf
import glob
page_list = glob.glob("*.jpg")
def page_num(s):
start = s.index("-") + 1
end = s.index(".", start + 1)
@pgilad
pgilad / Instructions.md
Last active March 31, 2024 22:30
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

@cormacrelf
cormacrelf / gist:3760427
Created September 21, 2012 08:45
Pandoc Markdown -> latex with syntax highlighting
\documentclass[]{article}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{鈧瑌
\else
\ifluatex
\usepackage{fontspec}