Skip to content

Instantly share code, notes, and snippets.

View richardokonicha's full-sized avatar
:electron:
learning to ask the right questions

r.e.e.c.h.e.e richardokonicha

:electron:
learning to ask the right questions
View GitHub Profile
@richardokonicha
richardokonicha / template-telebot.py
Created June 30, 2020 16:12
A Telegram bot flask template - webhook, getMessage, Debug setu
import telebot
import os
from config import *
from flask import Flask, request
server = Flask(__name__)
@server.route('/'+ TOKEN, methods=['POST'])
def getMessage():
request_object = request.stream.read().decode("utf-8")
@richardokonicha
richardokonicha / Home.vue
Created November 11, 2019 09:14
A vue js component to demostrate the power of v-for and flex box. Try adding another "0" in 100 and watch it crash your pc.
<template>
<v-container>
<v-row v-for="j in 100" :key="j" :class="j === 1 ? '' : 'mt-6'" no-gutters>
<v-col v-for="i in j + 1" :key="i">
<v-card class="pa-5" outlined>
{{ i }} of {{j + 1 }}
</v-card>
</v-col>
</v-row>
</v-container>