Skip to content

Instantly share code, notes, and snippets.

View cosme12's full-sized avatar
🐍
Working from home

Diego Lanciotti cosme12

🐍
Working from home
  • Argentina
View GitHub Profile
@cosme12
cosme12 / ejemplo_api.py
Created August 31, 2018 17:51
Ejemplo de como usar Requests
import requests
r = requests.get('https://api.opendota.com/api/heroes')
# Con esto obtenemos todos los datos de la pagina
print(r.text)
# Ahora tenemos que usar json para parsear los datos. Porque sino tenes un string mega gigante
import json
# Transformamos todo el muro de texto en un diccionario
heroes_dict = json.loads(r.text)
<!-- Email Form -->
<script>
$(document).ready(function() {
//Save references to elements. Don't do DOM walks in event handlers when not needed.
var $sendEmailEl = $('#send-email');
var $subjectEl = $('#form-subject');
var $bodyEl = $('#form-message');
function updateEmailLink() {
$sendEmailEl.attr('href', 'mailto:contact@zane.sh?' +
'subject=' + encodeURIComponent($subjectEl.val()) +

How to install Lua and LuaJIT on 64-bit Windows

  1. Download the latest Lua and LuaJIT sources

    • Create temporary folder for Lua sources.
      I assume you would use C:\Temp\ folder.

    • Visit Lua FTP webpage and download the latest Lua source archive, currently it is lua-5.4.3.tar.gz

  • Use suitable software (7-Zip, WinRar, WinZip or TotalCommander) to unpack the archive.