| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
| using Android.Media; | |
| using NAudio.Wave; | |
| using System; | |
| using System.Threading; | |
| namespace NAudio.Wave | |
| { | |
| /// <summary> | |
| /// Represents an Android wave player implemented using <see cref="AudioTrack"/>. | |
| /// </summary> |
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
| using System; | |
| using System.Linq; | |
| using System.Web.Mvc; | |
| public abstract class BaseController : Controller | |
| { | |
| protected override JsonResult Json(object data, string contentType, System.Text.Encoding contentEncoding) | |
| { | |
| return new JsonNetResult | |
| { |
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
| /// <summary> | |
| /// Provides projection mapping from an IQueryable sourceto a target type. | |
| /// | |
| /// This allows from strongly-typed mapping and querying only necessary fields from the database. | |
| /// It takes the place of Domain -> ViewModel mapping as it allows the ViewModel to stay as | |
| /// IQueryable. AutoMapper works on in-memory objects and will pull all full records to perform | |
| /// a collection mapping. Use AutoMapper for Input -> Domain scenarios, but not DAL. | |
| /// | |
| /// Reference: http://devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code | |
| /// </summary> |
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
| Choose a ticket class: <select id="tickets"></select> | |
| <p id="ticketOutput"></p> | |
| <script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
| {{if chosenTicket}} | |
| You have chosen <b>${ chosenTicket().name }</b> | |
| ($${ chosenTicket().price }) | |
| <button data-bind="click: resetTicket">Clear</button> | |
| {{/if}} |
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
| output = | |
| (from i in session.Query<Input>() | |
| select i) | |
| .Project().To<Output>( | |
| mapper => | |
| mapper | |
| .Map(o => o.BasicCustom, i => i.Custom) | |
| .Map(o => o.WackyCustom, i => "modified " + i.Custom) | |
| .Ignore(o => o.Ignored) | |
| ) |