Skip to content

Instantly share code, notes, and snippets.

View tadeha's full-sized avatar
🏠
Working from home

Tadeh Alexani tadeha

🏠
Working from home
View GitHub Profile
@tadeha
tadeha / sample-telegram-bot.php
Created September 6, 2017 10:51
This is a sample Telegram bot written in PHP.
<?php
/*
* Sample Telegram Bot Source Code
*
* @author Tadeh Alexani
* @version 1.00, 2017-09-06
* PHP
*/
@tadeha
tadeha / README-Template.md
Last active September 9, 2017 05:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Techpin Telegram Bot

What can this bot do❔

▶️ Watch the list of startups depending on their categories

▶️ Search for details of any startup using keywoards or names

▶️ Watch a random startup and its details

Keybase proof

I hereby claim:

  • I am tadeha on github.
  • I am tadeh (https://keybase.io/tadeh) on keybase.
  • I have a public key ASCg8R_95kfKFEFl93hEm_FAhKxp-RxxwX9mHK4zl05Pjwo

To claim this, I am signing this object:

@tadeha
tadeha / MapViewController.swift
Last active July 20, 2022 14:47
🗺Map View with Bottom Components for each Marker // Using Google Maps and written in Swift 5
//
// MapViewController.swift
//
// Created by Tadeh Alexani on 7/14/19.
// Copyright © 2019 Tadeh Alexani. All rights reserved.
//
import UIKit
import GoogleMaps
@tadeha
tadeha / UITextField+Extension.swift
Created November 2, 2019 12:33
Add padding and icon to the left/right of the textfield rect.
//
// UITextField+Extension.swift
//
// Created by Tadeh Alexani on 02/11/2019.
// Copyright © 2019 Tadeh Alexani
//
import UIKit.UITextField
extension UITextField {
@tadeha
tadeha / HTTPClient.swift
Created May 9, 2020 14:41
An HTTP Client class that handles global requests to our API (GET, POST & PATCH) using Alamofire.
import Foundation
import Alamofire
import SwiftyJSON
class HTTPClient {
static func apiRequestCall(withUrl url: String, method: HTTPMethod, params: [String:Any] = [:], headers: [String:String],encoding: ParameterEncoding = JSONEncoding.default, completion: @escaping (JSON?, Error?) -> Void) {
AF.request(url, method: method,parameters: params,encoding: encoding, headers: HTTPHeaders(headers)).validate(statusCode: 200..<600).responseJSON {
response in
@tadeha
tadeha / TEDxTehran_Recommender_System.ipynb
Created August 12, 2020 07:08
Developed TEDxTehran Recommender System using the k-nearest neighbor machine learning algorithm. The dataset is prepared by our curation team who categorized 70+ TEDxTehran talks since 2013 using 7 divided forms and the official TED custom categories.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.