Skip to content

Instantly share code, notes, and snippets.

Benyamin Salimi benyaminsalimi

View GitHub Profile
View keybase.md

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 Dec 26, 2016
genetic algorithm for matyas founction
View Ga.py
"""
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 Jan 8, 2017
simple python script for getting report card form birjand university of technology portal
View reportcard_but.py
# 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 Sep 15, 2016
simple RestApi for RaspberryPi RPIO & camera model with flask
View Flask-raspberryPi-GPIO-camera-model.py
# 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 Aug 26, 2018
This example shows how regression can be used to create prediction intervals. i just change it for working in pandas data farm (coal data)
View plot_gradient_boosting_quantile.py
"""
=====================================================
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 Dec 19, 2018
Prediction jmp model to python stand alone script
View perdiction.py
"""
=====================================================
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 Dec 26, 2018
python function for login to puya.birjandut.ir
View puya-birjandut.py
# 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):
You can’t perform that action at this time.