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
public class IndexlessEnumerableModelBinder<TItemType> : DefaultModelBinder | |
where TItemType : class | |
{ | |
protected override void BindProperty(ControllerContext controllerContext, ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor) | |
{ | |
if (typeof(IEnumerable<TItemType>).IsAssignableFrom(propertyDescriptor.PropertyType)) | |
{ | |
var nameOfPropertyToBind = propertyDescriptor.Name; | |
var form = controllerContext.HttpContext.Request.Form; |
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
// Wireframe rules | |
// Created by Igor Brejc | |
// Edited by Rory Fitzpatrick | |
// Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/) | |
features | |
lines | |
line : highway=primary OR highway=tertiary OR highway=motorway OR highway=trunk OR highway=secondary | |
coastline : natural=coastline |
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
public class DeliminatorSeparatedPropertyNamesContractResolver : DefaultContractResolver | |
{ | |
private readonly string _separator; | |
protected DeliminatorSeparatedPropertyNamesContractResolver(char separator) : base(true) | |
{ | |
_separator = separator.ToString(); | |
} | |
protected override string ResolvePropertyName(string propertyName) |
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
import org.json.*; | |
import java.net.*; | |
import java.util.Iterator; | |
import processing.video.*; | |
PImage bg; | |
MovieMaker mm; | |
JSONObject data; | |
double west = -3.414001; |
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
angular.module('ui.router').config(['$provide', function($provide) { | |
$provide.decorator('$controller', [ | |
'$delegate', '$state', | |
function($delegate, $state) { | |
return function(expression, locals) { | |
if ($state.$current) { | |
locals = _.extend(locals, $state.$current.locals.globals); | |
} | |
return $delegate(expression, locals); |
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
var one = { | |
name: 'one', | |
hello: function() { | |
console.log(this.name); | |
} | |
}; | |
var two = { | |
name: 'two' | |
}; |
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
repository.Query(Arg.Is<FindUserByEmailQuery>(x => x.PeekPrivateField("emailAddress") == "foo@bar.com")).Returns(user); |
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
<div class="responsive-tabs"> | |
<section class="tab-panel"> | |
<h2 class="tab-anchor">Item 1</h2> | |
<div class="tab-content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tincidunt pellentesque lorem, id suscipit dolor rutrum id. Morbi facilisis porta volutpat. Fusce adipiscing, mauris quis congue tincidunt, sapien purus suscipit odio, quis dictum odio tortor in sem. Ut sit amet libero nec orci mattis fringilla. Praesent eu ipsum in sapien tincidunt molestie sed ut magna. Nam accumsan dui at orci rhoncus pharetra tincidunt elit ullamcorper. Sed ac mauris ipsum. Nullam imperdiet sapien id purus pretium id aliquam mi ullamcorper.</p> | |
</div> | |
</section> | |
<section class="tab-panel"> |
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
build/ | |
release/ | |
package/ | |
*.suo | |
*.user | |
bin | |
!/bin | |
obj | |
_ReSharper* | |
*.csproj.user |
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
SELECT this_.Id as Id16_9_, | |
this_.DateCreated as DateCrea2_16_9_, | |
this_.DefaultName as DefaultN3_16_9_, | |
this_.AttributeSchemaDefinition_id as Attribut4_16_9_, | |
this_.NodeId as NodeId16_9_, | |
attribalia3_.NodeVersionId as NodeVers3_11_, | |
attribalia3_.Id as Id11_, | |
attribalia3_.Id as Id5_0_, | |
attribalia3_.AttributeDefinitionId as Attribut2_5_0_, | |
attribalia3_.NodeVersionId as NodeVers3_5_0_, |
NewerOlder