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
public static class LogExtentions | |
{ | |
/// <summary> | |
/// Writes an information message to the logger of the form "methodCalled start: msg" | |
/// </summary> | |
/// <param name="log">The logger instance</param> | |
/// <param name="message">The optional message to use</param> | |
/// <param name="memberName">The member name to use (automatically set by the compiler)</param> | |
public static void InfoMethodStart(this ILog log, string message = null, | |
[System.Runtime.CompilerServices.CallerMemberName] string memberName = "") |
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
import expect from 'expect'; | |
import whynotEqual from 'is-equal/why'; | |
import appLayoutReducer from '../reducer'; | |
import { | |
hideLeftMenuIcon, | |
showLeftMenuIcon, | |
} from '../actions'; | |
import { fromJS } from 'immutable'; |
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
* What went wrong: | |
Execution failed for task ':app:transformClassesWithRetrolambdaForIntgDebug'. | |
> Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 1 | |
* Try: | |
Run with --info or --debug option to get more log output. | |
* Exception is: | |
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithRetrolambdaForIntgDebug'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) |
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
[AcceptVerbs("PATCH")] | |
public HttpResponseMessage PatchOrder(int id, Delta<Order> deltaOrder) | |
{ | |
using (DBOrderEntities objContext = new DBOrderEntities()) { | |
var order = objContext.Orders.SingleOrDefault(o => o.ID == id); | |
if (order == null) | |
{ | |
throw new HttpResponseException(HttpStatusCode.NotFound); | |
} | |
deltaOrder.Patch(order); |
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
[AcceptVerbs("PATCH")] | |
public HttpResponseMessage PatchOrder(int id, Order updatedOrder) | |
{ | |
using (DBOrderEntities objContext = new DBOrderEntities()) { | |
var order = objContext.Orders.SingleOrDefault(o => o.ID == id); | |
if (order == null) | |
{ | |
throw new HttpResponseException(HttpStatusCode.NotFound); | |
} | |
//write code to update the given proerties here. |
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
//PATCH /admin/orders/#{id}.json | |
{ | |
"order": { | |
"id": 450789469, | |
"email": "new_email@example.com" | |
} | |
} |
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
//PUT /admin/orders/#{id}/email | |
{ | |
"email": "new_email@example.com" | |
} |
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
//PUT /admin/orders/#{id}.json | |
{ | |
"order": { | |
"id": 450789469, | |
"email": "new_email@example.com", | |
"line_items": [ | |
{ | |
"id": 12412415, | |
"title": "Shiny Black Boots", | |
"price": 82.99, |
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
//POST /api/orders.json | |
{ | |
"order": { | |
"email": "customer@example.com", | |
"line_items": [ | |
{ | |
"title": "Shiny Black Boots", | |
"price": 82.99, | |
"quantity": 1 | |
} |
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
// Run sub-grunt files | |
grunt.registerMultiTask('subgrunt', 'Run a sub-gruntfile.', function () { | |
var path = require('path'); | |
grunt.util.async.forEachSeries(this.filesSrc, function (gruntfile, next) { | |
grunt.util.spawn({ | |
grunt: true, | |
args: ['--gruntfile', path.resolve(gruntfile)].concat(grunt.option.flags()), | |
}, function (error, result) { | |
if (error) { | |
grunt.log.error(result.stdout).writeln(); |
NewerOlder