This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
| # mongo_template.rb | |
| # fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
| # | |
| # To use: | |
| # rails project_name -m http://gist.github.com/gists/219223.txt | |
| # remove unneeded defaults | |
| run "rm public/index.html" | |
| run "rm public/images/rails.png" | |
| run "rm public/javascripts/controls.js" | 
| #!/usr/bin/env ruby | |
| # Input: WordPress XML export file. | |
| # Outputs: a series of Textile files ready to be included in a Jekyll site, | |
| # and comments.yml which contains all approved comments with metadata which | |
| # can be used for a Disqus import. | |
| require 'rubygems' | |
| require 'hpricot' | |
| require 'clothred' | 
| require 'redis' | |
| # SADD key, member | |
| # Adds the specified <i>member</i> to the set stored at <i>key</i>. | |
| redis = Redis.new | |
| redis.sadd 'my_set', 'foo' # => true | |
| redis.sadd 'my_set', 'bar' # => true | |
| redis.sadd 'my_set', 'bar' # => false | |
| redis.smembers 'my_set' # => ["foo", "bar"] | 
| <% if logged_in? -%> | |
| <script type="text/javascript"> | |
| function wheresWaldo(users) { | |
| document.write("<p>Users on this page: ") | |
| var links = [] | |
| users.forEach(function(user) { | |
| var pieces = user.split('/') | |
| links.push('<a href="/users/' + pieces[0] + '">' + pieces[1] + '</a>') | |
| }) | |
| document.write(links.join(", ") + "</p>") | 
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | 
| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', | 
This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
| public class BigPipeServlet extends HttpServlet { | |
| private static ExecutorService executor = Executors.newFixedThreadPool(500, new ThreadFactory() { | |
| public Thread newThread(Runnable r) { | |
| Thread t = new Thread(r); | |
| t.setName("Service Thread "+ t.getId()); | |
| t.setDaemon(true); | |
| return t; | |
| } | |
| }); | 
| #!/usr/bin/env ruby | |
| # Input: WordPress XML export file. | |
| # Outputs: a series of Textile files ready to be included in a Jekyll site, | |
| # and comments.yml which contains all approved comments with metadata which | |
| # can be used for a Disqus import. | |
| # Changes from the original gist: http://gist.github.com/268428 | |
| # 1. Handles titles containing special characters. Those have to be YAML escaped | |
| # 2. Use the original permalinks in wordpress. | 
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |