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 class House | |
{ | |
public LivingRoom livingRoom; | |
public void LivingRoom () | |
{ | |
ILcd lcd = new Video(); | |
livingRoom = new LivingRoom(lcd); | |
livingRoom.EnterRoom(); | |
} |
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 class MockNode | |
{ | |
private readonly IDictionary<string, object> properties; | |
public MockNode() | |
{ | |
this.properties = new Dictionary<string, object>(); | |
} | |
public MockNode AddProperty(string alias, string 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 Gravyframe.Service.Messages; | |
namespace Gravyframe.Service.Example | |
{ | |
public class ExampleRequest : Request | |
{ | |
} | |
} |
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 NUnit.Framework; | |
using Gravyframe.Kernel.Umbraco.Tests.Examine; | |
using NSubstitute; | |
namespace Gravyframe.Data.Umbraco.Tests | |
{ | |
[TestFixture] | |
public class ExampleExamineTests | |
{ | |
private MockedIndex mockedIndex; |
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
var fields = typeof(BaseUmbracoIndexer).GetFields(BindingFlags.NonPublic | BindingFlags.Static); | |
var disableInitializationCheckField = fields.SingleOrDefault(x => x.Name == "DisableInitializationCheck"); | |
if (disableInitializationCheckField == null) | |
{ | |
Assert.Fail("Could Not Set DisableInitializationCheck"); | |
} | |
disableInitializationCheckField.SetValue(null, true); |
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
protected override void OnDocumentWriting(DocumentWritingEventArgs docArgs) | |
{ | |
var currentNode = _nodeFactoryFacade.GetNode(docArgs.NodeId); | |
var categories = currentNode.GetProperty("categories").Value; | |
if (!string.IsNullOrEmpty(categories)) | |
{ | |
var categoryNodeIdsXml = XElement.Parse(categories); | |
var categoryNodeIds = categoryNodeIdsXml.Descendants("nodeId"); | |
foreach (var categoryNodeId in categoryNodeIds) |
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
namespace Patterns.AbstractFactory.People | |
{ | |
using Patterns.AbstractFactory.Drinks; | |
/// <summary> | |
/// The aaron. | |
/// </summary> | |
public class Aaron : ICocktailFactory | |
{ | |
/// <summary> |
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
server { | |
server_name <name>; | |
root /var/www/<name>r; ## <-- Your only path reference. | |
# Enable compression, this will help if you have for instance advagg module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { |
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
The website encountered an unexpected error. Please try again later. | |
Drupal\Core\Entity\EntityStorageException: Cannot set a list with a non-array value. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 757 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php). | |
Drupal\Core\TypedData\TypedDataManager->create(Object, 'some@email.com') | |
Drupal\Core\Plugin\Context\Context->setContextValue('some@email.com') | |
Drupal\Core\Plugin\Context\Context->__construct(Object, 'some@email.com') | |
Drupal\Core\Plugin\Context\Context::createFromContext(Object, 'some@email.com') | |
Drupal\rules\Plugin\RulesExpression\RulesAction->mapContext(Object, Object) | |
Drupal\rules\Plugin\RulesExpression\RulesAction->executeWithState(Object) | |
Drupal\rules\Plugin\RulesExpression\ActionSet->executeWithState(Object) |
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
<a id="try_link" href="" target="_balnk">Try this link</a> | |
<script type="text/javascript"> | |
var yourSite = 'test'; | |
function getUrlVars() | |
{ | |
var vars = [], hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++) | |
{ |
OlderNewer