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 | |
DISTINCT | |
CAST(FLOOR(CAST(Created as FLOAT)) as DateTime) as date | |
FROM | |
dbo.table | |
ORDER BY 1 ASC |
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 SiteStartupHandler : IApplicationEventHandler | |
{ | |
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication,ApplicationContext applicationContext) | |
{ | |
// Register bunding for umbraco | |
RegisterStyles(BundleTable.Bundles); | |
RegisterJavascript(BundleTable.Bundles); | |
} | |
private static void RegisterStyles(BundleCollection bundles) | |
{ |
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
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles/" /> |
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
// The fact that user actor is created using the props does not mean | |
// anything as it needs to be registered with the system to know about it. | |
Props demoActorRef = Props.Create<MyDemoActor>(); | |
// Lets register the actor with the system | |
IActorRef actorRef = BulkProcessingSystem.ActorOf(demoActorRef, "DemoActor"); | |
// Send message to the actor | |
actorRef.Tell("Akka.net rocks"); |
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
Feature: Calculator | |
In order to avoid silly mistakes | |
As a math idiot | |
I want to be told the sum of two numbers | |
@mytag | |
Scenario: Add two numbers | |
Given I have entered 50 into the calculator | |
And I have also entered 70 into the calculator | |
When I press add |
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 DemoClass | |
{ | |
public string Message {get;set;} | |
} |
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
<!-- Twitter Settings --> | |
<provider name="Twitter" type="Umbraco.Web.Media.EmbedProviders.OEmbedRich, umbraco"> | |
<urlShemeRegex><![CDATA[twitter\.com/]]></urlShemeRegex> | |
<apiEndpoint><![CDATA[https://api.twitter.com/1/statuses/oembed.xml]]></apiEndpoint> | |
<requestParams type="Umbraco.Web.Media.EmbedProviders.Settings.Dictionary, umbraco"> | |
</requestParams> | |
</provider> |
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 ActorSystemRefs | |
{ | |
public static Akka.Actor.ActorSystem ActorSystem; | |
} |
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
<!doctype html> | |
<html ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Monitoring $http Activity With $http Interceptors In AngularJS | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css"></link> |
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
###################################### | |
# Ignore .cpp files in the ProjA sub-folder and all its subfolders | |
ProjA\*.cpp | |
# | |
# Ignore .txt files in this folder | |
\*.txt | |
# | |
# Ignore .xml files in this folder and all its sub-folders | |
*.xml | |
# |