This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mongo = require('mongodb'), | |
| EventEmitter = require('events').EventEmitter; | |
| function Connector(settings) { | |
| settings.port = settings.port || mongo.Connection.DEFAULT_PORT; | |
| this.settings = settings; | |
| this.server = new mongo.Server(settings.host, settings.port); | |
| this.db = new mongo.Db(settings.database, this.server, {native_parser: true}); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (* | |
| * Finder Open iTerm Here - v1.0.2 - 4/14/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| *) | |
| tell application "Finder" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {- | |
| - Copyright (C) 2010 Ovillo <http://github.com/jannschu/ovillo> | |
| - Thanks to Ben Rudiak-Gould on comp.compression for a description | |
| - and Mark Adler for an intresting implementation with "blast.c". | |
| - | |
| - This file is part of Ovillo. | |
| - | |
| - Ovillo is free software: you can redistribute it and/or modify | |
| - it under the terms of the GNU General Public License as published by | |
| - the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
NewerOlder