Ordered set.
[1, 2] != [2, 1]| using System; | |
| namespace ZumeroUtils | |
| { | |
| public class ZumeroResult | |
| { | |
| public int Partial { get; private set; } | |
| public int Quarantine { get; private set; } | |
| public int BytesUpFull { get; private set; } | |
| public int BytesDownFull { get; private set; } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Linq.Expressions; | |
| using System.Collections.ObjectModel; | |
| using System.Reflection; | |
| namespace Destrier | |
| { |
| // You need to have the following installed: | |
| // https://github.com/admc/wd | |
| // https://github.com/kriskowal/q | |
| // https://github.com/holidayextras/node-saucelabs | |
| var wd = require('wd') | |
| , Q = require('q') | |
| , assert = require('assert') | |
| , sauce = require('saucelabs') | |
| , host = "ondemand.saucelabs.com" |
| // You need to have the following installed: | |
| // https://github.com/admc/wd | |
| // https://github.com/kriskowal/q | |
| // https://github.com/holidayextras/node-saucelabs | |
| var wd = require('wd') | |
| , Q = require('q') | |
| , assert = require('assert') | |
| , sauce = require('saucelabs') | |
| , host = "ondemand.saucelabs.com" |
| using System; | |
| using System.Data.Odbc; | |
| using System.Data.SqlClient; | |
| namespace ODBC_Import | |
| { | |
| // Sourced from: http://darrylagostinelli.com/2011/06/27/create-a-sql-table-from-a-datatable-in-c-net/ | |
| // with modifications for copying from an ODBC data source | |
| class SqlServerTableCreator | |
| { |
| -- Sourced from: http://decipherinfosys.wordpress.com/2007/02/13/counting-number-of-records-for-all-the-tables-sql-server/ | |
| -- with only slight modifications | |
| SELECT SUM(ind.rows) AS Total_Rows_in_all_user_tables | |
| FROM sysobjects AS obj | |
| INNER JOIN sysindexes AS ind | |
| ON obj.id = ind.id | |
| WHERE obj.xtype = 'u' | |
| AND ind.indid < 2 |
| // See: http://api.jquery.com/jQuery.ajaxPrefilter/ | |
| $.ajaxPrefilter( function( options ) { | |
| if ( options.crossDomain ) { | |
| var newData = {}; | |
| // Copy the options.data object to the newData.data property. | |
| // We need to do this because javascript doesn't deep-copy variables by default. | |
| newData.data = $.extend({}, options.data); | |
| newData.url = options.url; | |
| // Reset the options object - we'll re-populate in the following lines. |
| // ProxyRequest proxies a request to a JSON-based API | |
| // to avoid the cross origin request issue. | |
| // It assumes the API supports POST. | |
| // JsonResult is an ASP.NET MVC construct. | |
| private JsonResult ProxyRequest(string url, string data) | |
| { | |
| HttpWebRequest wr = (HttpWebRequest)HttpWebRequest.Create(url); | |
| wr.Method = "POST"; | |
| wr.ContentType = "application/json"; |
| byDateGroup: { | |
| map: function(doc) { | |
| if (doc.date && (doc.group == "group1" || doc.group == "group2")) { | |
| emit(doc.date, null); | |
| } | |
| } | |
| } |