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 April 23, 2024 23:53
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}