Skip to content

Instantly share code, notes, and snippets.

View sourishkrout's full-sized avatar

Sebastian Tiedtke sourishkrout

View GitHub Profile
@sourishkrout
sourishkrout / s3conceal.js
Created May 5, 2012 16:51
Small node.js utility to reset s3 buckets and their contents to a private state.
;(function() {
var awssum = require('awssum')
var amazon = awssum.load('amazon/amazon')
var s3Service = awssum.load('amazon/s3')
var opts = require('nomnom').parse()
var _ = require('underscore')
_.each(amazon, function(region) {
// List operations return buckets regardless of their origin. Iterating over the regions seems to be redundant.
if (typeof region === 'string' && region === 'us-east-1') {
@sourishkrout
sourishkrout / FailedLocations.txt
Created May 24, 2012 21:53
Little tool for A/B testing against different GIS data.
-87.607:41.868::Adler Planetarium and Astronomy Museum, Chicago
-87.6141:41.865406::John G. Shedd Aquarium, Chicago
1 Baxter Pky, Deerfield
1 Countryside Plz, La Grange (ILCO)
1 Culligan Pky, Northbrook
1 E North Ave, Melrose Park
1 N Dearborn Ave, Kankakee (ILKK)
1 N Field Ct, Lake Forest
1 Renaissance Blvd, Villa Park
1 Tower Ln, Villa Park
@sourishkrout
sourishkrout / EFTest.cs
Created May 30, 2012 01:52
Modified .SaveChanges(...) to pre-populate primary keys.
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;
using EFTracingProvider;
@sourishkrout
sourishkrout / helpers.js
Created November 20, 2012 21:12
Barebones of a model based on couchdb + nano
/**
* Adopted from jquery's extend method. Under the terms of MIT License.
*
* http://code.jquery.com/jquery-1.4.2.js
*/
exports.extend = function() {
// copy reference to target object
var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy, cb = arguments[length-1];
// Handle a deep copy situation
/*global it:true */
"use strict";
var describeWd = require("./helpers/driverblock.js").describeForApp('TestApp')
, should = require('should');
describeWd('elementByTagName', function(h) {
it('should return element using the web driver api', function(done) {
h.driver.elementByTagName('button', function(err, element) {
should.exist(element.value);
@sourishkrout
sourishkrout / wmwarevskvm.txt
Last active December 14, 2015 08:39
SunSpider (Safari): VMware vs. KVM
VMware (single core):
============================================
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total: 326.5ms +/- 8.8%
--------------------------------------------
3d: 47.3ms +/- 25.8%
cube: 21.1ms +/- 50.7%
morph: 13.8ms +/- 45.3%
@sourishkrout
sourishkrout / VMware-vs-KVM.txt
Last active December 14, 2015 12:09
Appium performance testing. All VMs run on 4GB ram.
Single core VMware (grunt functional - subset of 74 tests only):
real 19m53.522s
user 3m2.095s
sys 0m51.452s
Dual core VMware (grunt functional - subset of 74 tests only):
real 18m15.342s
it('should confirm table cell element is visible', function(done) {
h.driver.elementsByTagName('tableCell', function(err, els) {
// do something with native table cell (iOS) elements
});
});
it('should confirm spans are visible', function(done) {
h.driver.elementsByTagName('span', function(err, els) {
// do something with span elements (DOM)
});
yit("should open location map and dismiss modal dialog", function*() {
var options = yield h.driver.elementsByCssSelector('.actions a');
options.length.should.equal(6);
yield options[3].click();
yield nativeSeq(h, function*() {
yield dismiss(h.driver);
});
});
diff --git a/hostess/maitred/maitred/data/pages/calabashios.md b/hostess/maitred/maitred/data/pages/calabashios.md
index 84d877d..0af577c 100644
--- a/hostess/maitred/maitred/data/pages/calabashios.md
+++ b/hostess/maitred/maitred/data/pages/calabashios.md
@@ -33,7 +33,7 @@ If you’re familiar with Appium’s philosophy, you know that it is based on fo
3. Use a standard automation specification and API
4. Build a large and thriving open-source community effort
-[Calabash table](/images/calabash-table.png ”Calabash Table”)
+![Calabash table](/images/calabash-table.png ”Calabash Table”)