create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| static N:int = 100000; | |
| // | |
| // Chinese Whispers in Rust | |
| // Based on example by Rob Pike | |
| // in http://www.youtube.com/watch?v=f6kdp27TYZs | |
| // | |
| fn main() { | |
| let (leftmost_port, leftmost_chan) = Chan::new(); | |
| let mut leftc: Chan<int> = leftmost_chan; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| /* | |
| * drivertest.cpp | |
| * Vector addition (host code) | |
| * | |
| * Andrei de A. Formiga, 2012-06-04 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| from math import cos, sin, atan2, sqrt | |
| def center_geolocation(geolocations): | |
| """ | |
| Provide a relatively accurate center lat, lon returned as a list pair, given | |
| a list of list pairs. | |
| ex: in: geolocations = ((lat1,lon1), (lat2,lon2),) | |
| out: (center_lat, center_lon) | |
| """ | |
| x = 0 |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>Graphics, Games, Programming, and Physics Blogs</title> | |
| </head> | |
| <body> | |
| <outline text="Tech News" title="Tech News"> | |
| <outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/> | |
| <outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/> | |
| <outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| #!/bin/sh | |
| # | |
| # This is a simple alternative to /usr/bin/lsb_release which | |
| # doesn't require python. | |
| # | |
| # If /etc/os-release exists then we use that to output data | |
| # in a compatible format to the original lsb_release utility. | |
| # | |
| # I consider this script trivial enough to be in the public-domain, | |
| # but any patches or suggestsions will be welcome. |
| """Demonstration of server-sent events with Tornado. To see the | |
| stream, you can either point your browser to ``http://localhost:8080`` | |
| or use ``curl`` like so:: | |
| $ curl http://localhost:8080/events | |
| """ | |
| import signal | |
| from tornado import web, gen |
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: