Skip to content

Instantly share code, notes, and snippets.

View pveller's full-sized avatar

Pavel Veller pveller

View GitHub Profile
@techphoria414
techphoria414 / ItemProviderScenarios.cs
Created November 16, 2013 22:41
Sitecore ItemProvider does not provide 100% coverage for manipulating data behavior. You potentially need to implement both an ItemProvider and a GetItemCommand, or just the latter.
//ItemProvider works via GetItem override
Sitecore.Context.Database.Items[Sitecore.Data.ID.Parse("{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}")].Children;
//ItemProvider works via GetChildren override
Sitecore.Data.Items.Item[] items = Sitecore.Context.Database.SelectItems("/sitecore/content/Home/*[@__isFolder='1']");
//ItemProvider doesn’t work, never called
items = Sitecore.Context.Database.SelectItems("/sitecore/content/Home/*");
//ItemProvider doesn’t work, never called
@imjasonh
imjasonh / markdown.css
Last active February 12, 2024 17:18
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@entaroadun
entaroadun / gist:1653794
Created January 21, 2012 20:10
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@staltz
staltz / introrx.md
Last active April 24, 2024 19:47
The introduction to Reactive Programming you've been missing