Skip to content

Instantly share code, notes, and snippets.

View abelsonlive's full-sized avatar
🕳️
[ o o ]

Brian Abelson abelsonlive

🕳️
[ o o ]
View GitHub Profile
Thanks for stopping on our website and dropping your request. I am <name>, your point of contact to help turn your idea to a Mobile App.
I would like to share that our team has develop a Demo app that is a combination of Yo/SnapChat in iOS 8 to test the features/functionality. Following is the video for reference: https://www.dropbox.com/s/fowvyi8a48ur0cz/YoME.MOV
As I see that you would like to develop an app that is similar to Yo! with some additional feature, to provide you a ball-park an app similar to Yo! would roughly cost between $3500 - $5000 USD for iPhone and it would take approx 4 - 6 weeks.
Above estimation includes.
-- Development of UI/UX design for iOS app
-- Development of iOS application.

Performance of Flask, Tornado, GEvent, and their combinations

Wensheng Wang, 10/1/11

Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html

When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:

1, Pure Flask (pure_flask.py)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from functools import wraps
import requests
from requests import Session, ConnectionError
from requests.exceptions import MissingSchema
from requests.packages.urllib3.exceptions import ProtocolError, LocationParseError
from socket import error as SocketError
@abelsonlive
abelsonlive / demands.py
Created September 16, 2014 21:38
decorator for catching uncaught request errors.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from functools import wraps
import requests
from requests import Session, ConnectionError
from requests.exceptions import MissingSchema
from requests.packages.urllib3.exceptions import ProtocolError, LocationParseError
from socket import error as SocketError
from suds.xsd.doctor import ImportDoctor, Import
from suds.client import Client
def connect_to_soap_service():
url = 'https://cgmix.uscg.mil/xml/PSIXData.asmx?WSDL'
imp = Import('http://www.w3.org/2001/XMLSchema', location='http://www.w3.org/2001/XMLSchema.xsd')
imp.filter.add('http://cgmix.uscg.mil')
doctor = ImportDoctor(imp)
return Client(url, doctor=doctor)
@abelsonlive
abelsonlive / cachelib.py
Last active August 29, 2015 14:13
Abstract Cache With Class
import hashlib
import s3plz
import os
import requests
class Cache(object):
"""
An Abstract class for caching
urls.
"""
1 50 Diamond St. Brooklyn NY
2 442 George Road, New York, NY
@abelsonlive
abelsonlive / scrapeBikeShare.R
Created May 13, 2012 23:41
Scrape NYC BikeShare Data
require("rjson")
#generate urls to scrape
#I determined the lowest and highest unique ids
#by looking at the page that had just the coordinates
root.url <- "http://a841-tfpweb.nyc.gov/bikeshare/get_point_info?point="
id<- seq(11992,12404, by=1)
urls <- paste(root.url, id, sep="")
@abelsonlive
abelsonlive / localMorans.R
Created May 17, 2012 01:00
Add p-values from Local Moran's test to a shapefile with counts.
library("foreign")
library("rgdal")
library("sp")
library("spdep")
library("maptools")
library("SpatialEpi")
library("plyr")
data <- read.dbf("counts.dbf")
shapes <- readShapePoly("counts.shp")
@abelsonlive
abelsonlive / R: unix time to date object
Created May 17, 2012 06:50
unix time to date object conversion
data$date <- as.POSIXlt(data$unix_time, origin="1970-01-01", tz="America/New_York")
data$date <- as.Date(data$date, format="%Y-%m-%d")