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
| private static string GetDropboxPath() { | |
| string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); | |
| string dbPath = Path.Combine(appDataPath, "Dropbox\\host.db"); | |
| if (!File.Exists(dbPath)) return null; | |
| string[] lines = File.ReadAllLines(dbPath); | |
| return Encoding.UTF8.GetString(Convert.FromBase64String(lines[1])); | |
| } |
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 Umbraco.Web.Mvc.UmbracoTemplatePage | |
| @using Bjerner.Website.Web | |
| @{ | |
| Layout = null; | |
| RssFeed feed = new RssFeed { | |
| Title = "Bjerner.dk Blog", | |
| Link = "http://blog.bjerner.dk/", | |
| PubDate = DateTime.Now, | |
| }; | |
| foreach (IPublishedContent child in Model.Content.Children.OrderByDescending(x => x.CreateDate).Take(20)) { |
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 System.Xml.Linq; | |
| namespace Bjerner.Website.Web { | |
| public class RssFeed { |
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 Skybrud.Social.OAuth; | |
| using Skybrud.Social.Twitter; | |
| using Skybrud.Social.Twitter.OAuth; | |
| using Skybrud.Social.Twitter.Objects; | |
| namespace Skybrud.Social.Test.Twitter { | |
| public partial class OAuth : System.Web.UI.Page { |
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 Skybrud.Social.OAuth; | |
| using Skybrud.Social.Twitter; | |
| using Skybrud.Social.Twitter.OAuth; | |
| using Skybrud.Social.Twitter.Objects; | |
| namespace Skybrud.Social.Test.Twitter { | |
| public partial class OAuth : System.Web.UI.Page { |
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
| // Get the raw string | |
| string response = service.Methods.Raw.Me(); | |
| // Parse the JSON | |
| JsonObject obj = JsonObject.ParseJson(response); | |
| // Parse the JSON object (use as normal) | |
| FacebookMeResponse me = FacebookMeResponse.Parse(obj); | |
| // Get email |
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.IO; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Mvc.Html; | |
| namespace Skybrud.Umbraco.ExtensionMethods { | |
| public static class HtmlHelperExtensionMethods { |
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('GoogleAddressSearchController', ['$scope', '$http', function ($scope, $http) { | |
| if (!$scope.model.address) $scope.model.address = ''; | |
| $scope.address = $scope.model.address; | |
| $scope.suggestions = []; | |
| $scope.addressKeyDown = function () { |
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 ParentPage { | |
| public int Id { get; set; } | |
| public string Name { get; set; } | |
| public string Url { get; set; } | |
| public IEnumerable<TestPage> Pages { 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
| <div ng-controller="PreValueEditor.Controller"> | |
| <label> | |
| <input type="checkbox" ng-model="model.value.a" /> | |
| Option A | |
| </label> | |
| <label> | |
| <input type="checkbox" ng-model="model.value.b" /> | |
| Option B |
OlderNewer