Skip to content

Instantly share code, notes, and snippets.

View rhythm92's full-sized avatar

fun_dl rhythm92

  • Japan
View GitHub Profile
@jmtatsch
jmtatsch / setup.sh
Last active March 15, 2017 13:00 — forked from mikepurvis/gist:9837958
Install ROS Jade on OS X El Capitan
# NOTE: These instructions do not represent a robust, self-troubleshooting install; they
# are definitely not suitable for dumping to a giant script and running as one. If you
# use them, they should be run one at a time, with an eye out for errors or problems
# along the way.
#
# The #1 issue you are likely to encounter is with Homebrew or Python packages whose
# binary components link against system Python. This will result in runtime segfaults,
# especially in rviz. If you suspect this is occurring, you can attempt to remove and
# reinstall the offending packages, or go for the nuclear option--- empty your Cellar
# and site-packages folders and start over with brewed python from the beginning.
@cwoebker
cwoebker / apod.py
Last active February 4, 2017 22:41
A simple script that crawls NASA's Astronomy Picture of the Day.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
*********************************************
Nasa's picture of the day since 1995.
by Cecil Woebker (http://cwoebker.com)
*********************************************
Usage:
$ ./apod.py
@tristanwietsma
tristanwietsma / govfeed.py
Created June 12, 2014 15:59
Bit.ly USA.gov feed
import socket, time
# http://www.usa.gov/About/developer-resources/1usagov.shtml
s = socket.socket()
s.connect(('developer.usa.gov', 80))
s.send('GET /1usagov HTTP/1.0\n\n')
s.setblocking(False)
while True:

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)

@watermouth
watermouth / gist:4418360
Created December 31, 2012 08:52
Installing GSL in Mac OS X (version 10.7.5 ) の記録
GSL - GNU Scientific Library - GNU Project - Free Software Foundation (FSF)
ライブラリの使用方法についてはmanual
http://www.gnu.org/software/gsl/manual/html_node/
を参照する.
以下の通りに, 最終的には動作確認することができた.
0. ダウンロード
http://core.ring.gr.jp/pub/GNU/gsl/
バージョンの一番新しいものをとる. .sigは無視.