- 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 $$
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" | |
} |
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.
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.)
- Code: https://github.com/applegrain/oauth-example
- OAuth Protocol: http://tools.ietf.org/html/rfc6749#section-1.2
- Omniauth: https://github.com/intridea/omniauth
-
Create an app on github (make sure the callback url is http://localhost:3000/auth/github/callback)
-
Add an initializer, config/initializers/omniauth.rb
\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} |
# 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) |