Skip to content

Instantly share code, notes, and snippets.

View camicasii's full-sized avatar

Jhonattan Ramirez camicasii

View GitHub Profile
@camicasii
camicasii / telegram_web_app_bot_validate_hash.js
Created July 9, 2024 13:48 — forked from MakStashkevich/telegram_web_app_bot_validate_hash.js
Telegram Web App Bot (Validate hash function) on Javascript (JS or NodeJs)
// Bot token
const bot_token = '0123456789:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
// https://core.telegram.org/bots/webapps#validating-data-received-via-the-web-app
function isValidHash() {
// Parse query data
const parsedData = Telegram.Utils.urlParseQueryString(Telegram.WebApp.initData)
// Get Telegram hash
const hash = parsedData.hash
using System;
using System.Collections.Generic;
using System.Linq;
namespace MeetingSchedulerApp
{
class Program
{
static void Main(string[] args)
{
// Ejemplo de uso de la clase MeetingScheduler
@camicasii
camicasii / juego-vida.py
Created November 3, 2021 02:13 — forked from astrojuanlu/juego-vida.py
Juego de la vida de Conway en Python
# coding: utf-8
"""Juego de la vida de Conway.
Autor: Juan Luis Cano <juanlu001@gmail.com>
El tablero es un array de NumPy, donde 0 significa célula muerta y 1 célula
viva. Se muestra una animación con matplotlib.
"""
function Unidades(num){
switch(num)
{
case 1: return "UNO";
case 2: return "DOS";
case 3: return "TRES";
case 4: return "CUATRO";
case 5: return "CINCO";
case 6: return "SEIS";
@camicasii
camicasii / NumeroALetras.js
Created January 23, 2020 14:08 — forked from alfchee/NumeroALetras.js
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@camicasii
camicasii / cloudSettings
Last active November 26, 2019 13:24
BetaReact
{"lastUpload":"2019-11-26T13:24:31.605Z","extensionVersion":"v3.4.3"}