Skip to content

Instantly share code, notes, and snippets.

View AdryDev92's full-sized avatar
🎯
Focusing

Adrian M. Prados AdryDev92

🎯
Focusing
  • Spain
  • Seville
View GitHub Profile
@AdryDev92
AdryDev92 / request.php
Last active March 22, 2019 10:58
file request to connect with telegram bot
<?php
//api token bot
$botToken = " ";
$website = "https://api.telegram.org/bot".$botToken;
$update = file_get_contents('php://input');
$update = json_decode($update, TRUE);
@AdryDev92
AdryDev92 / simple_buy_list.html
Created October 30, 2019 01:14
A simple buy list with add/delete buttons
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lista de la compra</title>
</head>
<body>
<script type="text/javascript">
@AdryDev92
AdryDev92 / basic_calculator.rb
Created March 27, 2020 20:21
Basic calculator in ruby with four operations. If you press "N" after an operation, the app ends.
puts "======================"
puts "| CALCULADORA BÁSICA |"
puts "| EN RUBY |"
puts "======================"
ops = ["1.suma","2.resta","3.multiplicación","4.división"]
begin
puts "\n¿Qué operación deseas realizar?"
@AdryDev92
AdryDev92 / isIsogram.py
Created May 17, 2025 14:11
A function to check if a word has repeated characters and tell you if it's an isogram or not
word = input("Please write a word: ")
word = word.lower()
def isIsogram(word):
array = []
for character in word:
if character not in array:
array.append(character)
else:
print("Is not an isogram")