This file contains 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
App.InputChosenComponent = Ember.Component.extend({ | |
init: function () { | |
this._super(); | |
}, | |
// settings | |
labelClass: 'col-sm-2', | |
label: 'Date', | |
inputContainerClass: 'col-sm-2', | |
inputClass: '', |
This file contains 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
didSaveRecord: function (record, data) { | |
if (data) { | |
this.didSaveRecordForHasManyItems(this, record.constructor, data, record); | |
} | |
this._super(record, data); | |
}, | |
// Fixes introdution in ember-data.1.0.0.beta4 (see method "addUnsavedRecords" in Store) | |
// assume that "any unsaved records that are | |
// in a hasMany they won't be in the payload" |
This file contains 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
using System; | |
using EdgeJs; | |
namespace LearnEdgeJs | |
{ | |
class Program | |
{ | |
public void Start() | |
{ | |
var func = Edge.Func(@"return require('../edgeEntryPoint.js')"); |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
namespace YourSystem.Tests |
This file contains 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
using System; | |
using Microsoft.VisualStudio.TestTools.WebTesting; | |
namespace YourAppLoadTesting | |
{ | |
public class AddCorrelationIdToReportPutRequest: WebTestPlugin | |
{ | |
public string ApplyToRequestsThatContain { get; set; } | |
public string BodyStringParam { get; set; } |
This file contains 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
using System; | |
namespace LearnEvents | |
{ | |
// Defining delegate type (similar to System.EventHandler) | |
delegate void SomeHandler(object sender, EventArgs e); | |
class Person | |
{ | |
// Field-like event declared using keyword 'event' |
This file contains 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
// reading workbook from binary contents | |
var workbook = XLSX.read(excelBinaryContents, {type: 'binary'}); | |
// retrieve properties of workbook (will be needed later) | |
var wbProps = workbook.Workbook.WBProps; | |
// get any particular worksheet by name | |
var worksheet = workbook.Sheets['Work Sheet Name']; | |
// get any cell |
This file contains 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
using (var excelPackage = new ExcelPackage(newFileInfo)) | |
{ | |
var ws = excelPackage.Workbook.Worksheets["Work Sheet Name"]; | |
// do the stuff, here are some examples | |
var cellRange = ws.Cells[string.Format("{0}{1}:{0}{2}", "A", 2, 4)]; | |
// merging cells | |
cellRange.Merge = true; | |
// setting value | |
cellRange.Value = "Any object that serves as cell value"; |
This file contains 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
// ... | |
using Microsoft.Owin.Hosting; | |
// ... | |
public class ServiceHost | |
{ | |
private IDisposable server = null; | |
const string baseAddress = "https://*:443"; | |
public void Start() |
OlderNewer