(This is a translation of ko1's blog. All mistakes are mine.)
This is the 8th day of the Ruby VM Advent Calendar.
I'm slowly running out of breath.
Today is,
| Looking at the preceding token when the lexer points to a '/' | |
| character is insufficient to determine which context it's in. In | |
| fact, you need to look at an arbitrary number of preceding tokens | |
| to figure it out. This example demonstrates a case where we can | |
| pump up the number of preceding tokens to an arbitrary size | |
| before you can disambiguate your syntactic context. |
(This is a translation of ko1's blog. All mistakes are mine.)
This is the 8th day of the Ruby VM Advent Calendar.
I'm slowly running out of breath.
Today is,
| %%%------------------------------------------------------------------- | |
| %%% @author egobrain <egobrain@linux-ympb> | |
| %%% @copyright (C) 2012, egobrain | |
| %%% @doc | |
| %%% Function for uploading files and properties,which were sent as a | |
| %%% multipart. Files are stored in tmp_folder with random name, | |
| %%% generated by tmp_filename function. | |
| %%% @end | |
| %%% Created : 25 Mar 2012 by egobrain <egobrain@linux-ympb> | |
| %%%------------------------------------------------------------------- |
| A list of features that we want to see in CouchDB. Needs to be voted on so that it can become a priority queue. | |
| User Facing Features | |
| ==================== | |
| 1. Conflicts are the rule, not the exception | |
| All previous versions of CouchDB hide conflicts by default (selecting | |
| an arbitrary but consistent winning revision). Expert users can find | |
| and resolve conflicts. |
| #!/usr/bin/env ruby | |
| # giftube – Generates an animated gif from a YouTube url. | |
| # | |
| # Usage: | |
| # | |
| # giftube [youtube url] [minute:second] [duration] | |
| # | |
| # ex. | |
| # |
| source :rubygems | |
| gem 'webmachine' | |
| gem 'rack' |
Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.
Say you have a method that fetches data from a network resource:
Install the latest [Couchbase Server for OS X][cbserver].
Tell Terminal you want to be on the alpha track
defaults write com.couchbase.couchbase-server SUFeedURL http://appcast.couchbase.com/couchbase-alpha.xml
Check for updates.
See new stuff.
A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".
Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.
The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.
| #!/bin/bash | |
| # have to hand install this one sorry http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.tar.gz | |
| if [ "$1" == "cleanup" ]; then | |
| echo "Cleaning up old luajit install" | |
| cd /usr/local/share | |
| sudo rm -rf lua luajit-2.0.0-beta6 |