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("umbraco") | |
.controller("My.Workshop.EditController", function ($routeParams) { | |
var vm = this; | |
vm.workshop = {}; | |
vm.buttonState = "init"; | |
vm.properties = { | |
description: { label: "Description", description: "Workshop description" } | |
}; |
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 name="TownIndexer" | |
type="Examine.LuceneEngine.Providers.SimpleDataIndexer, Examine" | |
indexSet="ukTownsIndexSet" | |
dataService="ExamineBootcamp.BusinessLogic.Indexer.DbIndexer, ExamineBootcamp.BusinessLogic" | |
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexTypes="ukTowns" runAsync="true"/> | |
<add name="TownSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine" | |
indexSet="ukTownsIndexSet" | |
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/> | |
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
@using Examine.LuceneEngine.SearchCriteria; | |
@{ | |
var criteria = Examine.ExamineManager.Instance | |
.CreateSearchCriteria() | |
.Field("artist", "pnk".Fuzzy()) | |
.And() | |
.Field("title", "wall") | |
.Compile(); |
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("umbraco").controller("my.forumsearcher.controller", | |
function ($scope, $http) { | |
if (angular.isArray($scope.model.value) === false) { | |
$scope.model.value = []; | |
} | |
$scope.add = function (result) { | |
$scope.model.value.push(result); |
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="twitter-username thumbnail" style="width: 220px"> | |
<!-- here we display the updated value using ng-src to display it as part of a image pulled from twitter - by default it pulls the image from the twitter account --> | |
<img ng-src="https://twitter.com/{{model.value || 'Twitter'}}/profile_image?size=original" class="img-circle"> | |
<!-- this is where we input our username and bind it to the value of the field --> | |
<input type="text" placeholder="Username" ng-model="model.value"> | |
</div> |
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
<dependentAssembly> | |
<assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/> | |
<bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1"/> | |
</dependentAssembly> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Umbraco.Core; | |
namespace Meh.App_Code | |
{ | |
public class ChangeMenu : ApplicationEventHandler | |
{ |
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
// ==UserScript== | |
// @name AntiStupidity | |
// @description Hides facebook and EB nationent comments on all sites | |
// @author pph | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
(function() { | |
var css = "#comments.widget-container, .fb_ltr, .fbComments, .fbTimelineUFI{ display: none !important; }"; | |
if (typeof GM_addStyle != "undefined") { |
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
@inherits PartialViewMacroPage | |
@using Umbraco.Cms.Web | |
@using Umbraco.Cms.Web.Macros | |
@using Umbraco.Framework | |
@{ | |
//declare variables | |
var rootNode = DynamicModel.AncestorsOrSelf.Last(); | |
} |