Skip to content

Instantly share code, notes, and snippets.

View proppy's full-sized avatar

Johan Euphrosine proppy

View GitHub Profile
proppy@unubore:~/Desktop/mape$ cat connectform.js
var connect = require('connect');
var form = require('connect-form');
var server = connect.createServer(
form({ keepExtensions: true }),
function(req, res, next){
// Form was submitted
if (req.form) {
// Do something when parsing is finished
// and respond, or respond immediately
var assert = require('assert');
var s = '';
var append_char = function(arg) {
s+= arg;
};
function rendezvous(callback) {
return {
callbacks: [],
callback: function(cb) {
(in /home/proppy/Desktop/playground/watir-webdriver)
All dependencies seem to be installed.
trying 0.0.0.0:2000...
[2010-08-23 19:31:16] INFO WEBrick 1.3.1
[2010-08-23 19:31:16] INFO ruby 1.8.7 (2010-01-10) [x86_64-linux]
trying 0.0.0.0:2000...
trying 0.0.0.0:2000...
trying 0.0.0.0:2000...
trying 0.0.0.0:2000...
trying 0.0.0.0:2000...
diff --git a/lib/watir-webdriver/container.rb b/lib/watir-webdriver/container.rb
index 691f499..fa8bf29 100644
--- a/lib/watir-webdriver/container.rb
+++ b/lib/watir-webdriver/container.rb
@@ -28,5 +28,13 @@ module Watir
raise ArgumentError, "expected Hash or (:how, 'what'), got #{selectors.inspect}"
end
+ def element(selectors)
+ return Watir::BaseElement.new self, extract_selector(selectors)
diff --git a/windmill/server/proxy.py b/windmill/server/proxy.py
index 216887c..b699d2e 100644
--- a/windmill/server/proxy.py
+++ b/windmill/server/proxy.py
@@ -77,10 +77,7 @@ def get_wsgi_response(response):
if type(response) is str:
return [response]
- if response.length > 512000:
- return IterativeResponse(response)
/*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Date: Sat Feb 13 22:33:48 2010 -0500
*/
diff --git a/LICENSE b/LICENSE
index f83efa6..2c7f2ce 100644
--- a/LICENSE
+++ b/LICENSE
@@ -19,7 +19,7 @@ are:
the Massachusetts Institute of Technology; authored by Greg Hudson,
Daniel Stenberg and others. Released under an MIT license.
- - Node, optionally, dynmaically links to OpenSSL, cryptographic software
+ - Node, optionally, dynamically links to OpenSSL, cryptographic software
Object.prototype.setdefault = function(key, value) {
if (this[key] === undefined) {
this[key] = value;
}
return this[key];
};
test('Object.prototype.setdefault', function() {
var o = { b: 2 };
equals(1, o.setdefault('a', 1));
import Test.QuickCheck
myFirst :: [x] -> x
myFirst (x:xs) = x
prop_myFirst xs = not (null xs) ==> myFirst xs == head xs
myLast :: [x] -> x
myLast [x] = x
myLast (x:xs) = myLast xs
isPalindrome :: Eq a => [a] -> Bool
isPalindrome [] = True
isPalindrome [x] = True
isPalindrome (x:xs) = (x == (last xs)) && isPalindrome (init xs)
prop_isPalindrome xs = isPalindrome xs == (xs == reverse xs) where types = (xs :: [Char])