Skip to content

Instantly share code, notes, and snippets.

View VadokDev's full-sized avatar
💭
Learning how to play Trumpet

Gonzalo Fernández VadokDev

💭
Learning how to play Trumpet
View GitHub Profile
import React, { useState } from "react"
import PropTypes from 'prop-types'
import "./input.css"
import TypingIndicator from "./TypingIndicator"
const input = (props) => {
const styles = ["plank", "staggered", "split"]
const [stateIsFocused, setStateIsFocused] = useState(false)
@sergiolucero
sergiolucero / cne_api.py
Last active July 27, 2023 17:41
Precios combustibles
import pandas as pd
from token import TOKEN # token personal: http://www.energiaabierta.cne.cl/
TIPOS = ['calefaccion','vehicular']
SOURCE = 'http://api.cne.cl/v3/combustibles/{}/estaciones?token={}'
COPY_VARS = ['nombre_comuna', 'id_region', 'direccion_calle', 'fecha_hora_actualizacion']
for tipo in TIPOS:
print(tipo)
df = pd.read_json(SOURCE.format(tipo, TOKEN))
out = pd.DataFrame()
{"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
}