Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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

Benyamin Salimi benyaminsalimi

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am benyaminsalimi on github.
  • I am benyamin (https://keybase.io/benyamin) on keybase.
  • I have a public key whose fingerprint is 960E 03C8 2839 9B36 FD3D B23C 4832 C83D 7D5C DBB6

To claim this, I am signing this object:

@benyaminsalimi
benyaminsalimi / Ga.py
Created December 26, 2016 05:40
genetic algorithm for matyas founction
"""
based on :http://lethain.com/genetic-algorithms-cool-name-damn-simple/
run: python ga.py
fitness function is performed for matyas problem
mtyas problem : https://www.sfu.ca/~ssurjano/matya.html
"""
from random import randint, random, uniform
## sakhte yek fard
def individual(length, min, max):
return [ uniform(min,max) for x in xrange(length) ]
@benyaminsalimi
benyaminsalimi / reportcard_but.py
Last active January 8, 2017 08:08
simple python script for getting report card form birjand university of technology portal
# its just for command line geeks!
# Enter your username and password and run reportcard_but.py :)
# I got tired to loging and refreshing my university portal!
#try to make my and my friends life much easer with this simple script
#if you are developer u can use my functions to develope application or bot for university portal, MAKE ME HAPPY with that :)
import requests,hashlib,pickle
from bs4 import BeautifulSoup
def get_session(username, password):
md5 = hashlib.md5()
@benyaminsalimi
benyaminsalimi / Flask-raspberryPi-GPIO-camera-model.py
Created September 15, 2016 17:42
simple RestApi for RaspberryPi RPIO & camera model with flask
# BPi restFull-api by @BenyaminSalimi
# you can see log of this program in "BPi.log"
from flask import Flask,jsonify,send_file
import picamera
import time
import RPi.GPIO as GPIO
app = Flask(__name__)
@benyaminsalimi
benyaminsalimi / plot_gradient_boosting_quantile.py
Created August 26, 2018 02:24
This example shows how regression can be used to create prediction intervals. i just change it for working in pandas data farm (coal data)
"""
=====================================================
Prediction Intervals for Gradient Boosting Regression
=====================================================
This example shows how quantile regression can be used
to create prediction intervals.
the regression model is created for coal data.
Author : Benyamin Salimi <benyamin.salimi@gmail.com>
@benyaminsalimi
benyaminsalimi / perdiction.py
Last active December 19, 2018 22:50
Prediction jmp model to python stand alone script
"""
=====================================================
Data Prediction Fucntion
=====================================================
Author : Esmaeil Hadavandi <es.hadavandi@gmail.com>
Python : Benyamin Salimi <benyamin.salimi@gmail.com>
input : input.xlsx
output: output.xlsx
@benyaminsalimi
benyaminsalimi / puya-birjandut.py
Last active December 26, 2018 09:20
python function for login to puya.birjandut.ir
# this function can be use for loging to every old sadaf university portal ! also can use for evil thing :)
# there is no captcha and childern can do EVIL thing with this portal :-D
# sadaf portal developed by this company : http://dpm.ir/
# sadaf portal used for Birjand university of techonology and Ferdowsi university of Mashhad
# usage as you know : check('9313344449','123456')
import requests
import hashlib
import bs4
def check(username, password):