Skip to content

Instantly share code, notes, and snippets.

View RobotOptimist's full-sized avatar

James RobotOptimist

View GitHub Profile
@RobotOptimist
RobotOptimist / Salary_Data.csv
Last active November 18, 2020 16:30
Simple Regression in Python
YearsExperience Salary
1.1 39343.00
1.3 46205.00
1.5 37731.00
2.0 43525.00
2.2 39891.00
2.9 56642.00
3.0 60150.00
3.2 54445.00
3.2 64445.00
@RobotOptimist
RobotOptimist / image-from-builtin-content-type.md
Created February 12, 2020 14:19
Sitefinity code snippits and explanations

get an image from a built in content type

For news and events content items you can't use the built in GetRelatedItems or anything like you would with a Dynamic Content Item. Instead you have to do this to get a related item, this is for an Image (in cshtml):

@model Telerik.Sitefinity.Frontend.Mvc.Models.ContentDetailsViewModel

@using Telerik.Sitefinity.Libraries.Model