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
RouteBuilder.CreateRoutesFrom() | |
.CurrentAssembly() | |
.WithActionNamesWithUnderscoresAsSeperatedRoutes() | |
.IgnoreAspNetMvcDefaultRoute("Home","Index") | |
.AssignRoutes(routes); | |
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] | |
public class ExplicitRouteAttribute : Attribute | |
{ |
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
template<typename T> | |
void array_merge(T* first1, T* first2, T* second1, T* second2, T* result){ | |
bool first_longest = (first2 -1 - first1) > (second2 -1 - second1); | |
while((first1 != first2) && (second1 != second2)){ | |
if(*first1 < *second1) | |
*result = *first1++; | |
else | |
*result = *second1++; |
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
template<typename T> | |
class array{ | |
public: | |
array(){ | |
elements_ = new T[10]; | |
size_ = 10; | |
} | |
array(int size){ | |
elements_ = new T[size]; |
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
#include <algorithm> | |
#include <iostream> | |
template<typename T> | |
class Array { | |
public: | |
template<typename E> | |
class ArrayIterator { | |
public: | |
ArrayIterator(Array<E>& elements, int index) : position_(index), elements_(elements) { |
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
{ | |
"DisplayName": "php user", | |
"Username": "php", | |
"Email": "[email protected]", | |
"Password": "xxxxxx", | |
"MemberTypeAlias": "WebsiteUser", | |
"Roles": [ | |
"Support" | |
] | |
} |
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.Linq; | |
using System.Text; | |
using System.Web.Security; | |
using System.Runtime.InteropServices; | |
using OpenRasta.Web; | |
using umbraco.cms.businesslogic.member; | |
using uREST.Core.Attributes; | |
using uREST.Core.Handlers; |
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.Linq; | |
using System.Text; | |
using System.Web.Security; | |
using System.Runtime.InteropServices; | |
using OpenRasta.Web; | |
using umbraco.cms.businesslogic.member; | |
using uREST.Core.Attributes; | |
using uREST.Core.Handlers; |
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.Linq; | |
using System.Reflection; | |
using Castle.Core; | |
using Castle.DynamicProxy; | |
using Castle.MicroKernel.Proxy; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
namespace WindsorExamples |
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.Linq; | |
using System.Reflection; | |
using Castle.DynamicProxy; | |
namespace DpWorkshop | |
{ | |
public class Person | |
{ |
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.Reflection; | |
using Castle.Core; | |
using Castle.DynamicProxy; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
namespace DpWorkshop | |
{ |
OlderNewer