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
| proppy@powerminer:~/Documents$ ledger -f proppy.ledger xml | xsltproc stripnamespace.xsl - | xsltproc xmltojsonv1.xsl - | sed s@,,@,@g | sed s@,}@}@g | python -mjson.tool | python -c 'import sys; import json; import couchdb; print [couchdb.Server("http://localhost:8000")["ledger"].create(e) for e in json.loads(sys.stdin.read())[0]["ledger"]["entry"]]' | |
| ['e673c7ad3f1c35d7226f6a5f9a89a410', '425bf48875ec51665515a9445bd5142c', '9bc1e3e2ac1fd898d1402edda4148e52', 'ca9718d6ed6b3ed25b53868254e035ce', 'df1858cda314f14e2ed151e17e44508e'] |
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
| simplejson.dumps([dict([(k.replace('PLAYGROUND_', '').lower(), v)for k, v in imp.load_source('localsettings', os.path.join(BASE_DIR, f,'geodjango', 'localsettings.py')).__dict__.items() if k.startswith('PLAYGROUND_')]) for f in os.listdir(BASE_DIR) if os.path.isdir(f)]) |
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
| set -e | |
| cleanup() { | |
| kill -9 $pincaster_pid | |
| rm /tmp/pincaster.db | |
| } | |
| trap 'cleanup' 0 | |
| HOST=localhost | |
| ./src/pincaster pincaster.conf & |
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
| 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]) |
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
| 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 |
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
| 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)); |
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
| 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 |
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
| /*! | |
| * 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 | |
| */ |
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
| 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) |
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
| 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) |
OlderNewer