Skip to content

Instantly share code, notes, and snippets.

View mleyvaz's full-sized avatar

Maikel Leyva mleyvaz

  • Universidad de Poltécnica Salesiana
  • Guayaquil
View GitHub Profile
@mleyvaz
mleyvaz / Consulta-bigQuery
Created December 12, 2020 12:54
Consulta bigQuery
WITH question_answers_join AS (
SELECT *
, GREATEST(1, TIMESTAMP_DIFF(answers.first, creation_date, minute)) minutes_2_answer
FROM (
SELECT id, creation_date, title
, (SELECT AS STRUCT MIN(creation_date) first, COUNT(*) c
FROM `bigquery-public-data.stackoverflow.posts_answers`
WHERE a.id=parent_id
) answers
, SPLIT(tags, '|') tags
@mleyvaz
mleyvaz / procesador.py
Last active May 18, 2018 02:54
Obteniendo información del procesador en Python
import platform
print platform.system()
print platform.architecture()
print platform.processor()
@mleyvaz
mleyvaz / dash.ipynb
Created May 6, 2018 15:20
Ejemplo de dashboard i
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mleyvaz
mleyvaz / SVN-Decision Models.ipynb
Last active October 8, 2018 05:04
Para revista NCML
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#hombresinzapatos
print("caminante tus zapatos el camino ya gastó")
print("pero queda por delante el futuro que es mejor")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Read the temperature in the -40 to 120 interval and shows in the leds
from sense_hat import SenseHat
sense = SenseHat()
red = (255, 0, 0)
blue = (0, 0, 255)
while True:
temp = sense.temp