Skip to content

Instantly share code, notes, and snippets.

@FormatFish
FormatFish / genetic.py
Created October 2, 2017 06:47 — forked from bellbind/genetic.py
[python]Genetic Algorithm example
"""Genetic Algorithmn Implementation
see:
http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php
"""
import random
class GeneticAlgorithm(object):
def __init__(self, genetics):
self.genetics = genetics
pass
@FormatFish
FormatFish / optimize_notes.md
Created July 11, 2017 08:25 — forked from zhpmatrix/optimize_notes.md
Scipy中的Optimize包中的算法

Scipy的子模块列表


模块名称 功能简介
scipy.cluster 矢量量化/K均值
scipy.constants 数学和物理常数
scipy.fftpack 傅立叶变换
scipy.integrate 积分程序
scipy.interpolate 插值
@FormatFish
FormatFish / face detect
Last active January 16, 2017 05:36
face detect
#coding=utf-8
from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render_to_response
import requests
import json
import base64
import time
from PIL import Image , ImageDraw
# Create your views here.
@FormatFish
FormatFish / upload.py
Created January 2, 2017 11:10
针对sm.ms的图床
#coding=utf-8
import requests
import json
import mimetypes
from PIL import ImageGrab
import datetime
def upload(files):
APIKey = "YOUR API KEY"
format = "json"