Skip to content

Instantly share code, notes, and snippets.

🕳
[ o o ]

Brian Abelson abelsonlive

🕳
[ o o ]
Block or report user

Report or block abelsonlive

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0973e97ab859438ee754
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.
View Performance of Flask, Tornado, GEvent, and their combinations.md

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)

View gist:13c213ddf9fa744e7dc1
#!/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 Sep 16, 2014
decorator for catching uncaught request errors.
View demands.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
View us_detentions.py
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 Aug 29, 2015
Abstract Cache With Class
View cachelib.py
import hashlib
import s3plz
import os
import requests
class Cache(object):
"""
An Abstract class for caching
urls.
"""
View input.csv
1 50 Diamond St. Brooklyn NY
2 442 George Road, New York, NY
@abelsonlive
abelsonlive / scrapeBikeShare.R
Created May 13, 2012
Scrape NYC BikeShare Data
View scrapeBikeShare.R
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
Add p-values from Local Moran's test to a shapefile with counts.
View localMorans.R
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
unix time to date object conversion
View R: unix time to date object
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")
You can’t perform that action at this time.