This file contains 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
[Reflection.Assembly]::LoadWithPartialName("System.ServiceModel.Web") | out-null | |
$reader = [System.Xml.XmlReader]::Create("http://news.ninemsn.com.au/rss/headlines/") | |
$formatter = New-Object System.ServiceModel.Syndication.Rss20FeedFormatter | |
$formatter.ReadFrom($reader) | |
$formatter.Feed.Items |
This file contains 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.IO; | |
using System.Linq; | |
using System.Security.Cryptography; | |
namespace Hash | |
{ | |
public class Program | |
{ |
This file contains 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.IO.IsolatedStorage; | |
using System.Net; | |
using Newtonsoft.Json; // You'll need to add JSON.Net to your solution. | |
namespace TotalPimp | |
{ | |
public class DeviceRegistrar | |
{ |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using System.Data; | |
public class TodoApiController : ApiController | |
{ | |
private BetterMobileSpaContext db = new BetterMobileSpaContext(); | |
// GET /api/todoapi |
This file contains 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; | |
namespace Web.Registration | |
{ | |
public class AutoRegisterAttribute : Attribute | |
{ | |
public Scope Scope { get; set; } | |
public AutoRegisterAttribute() | |
{ |
This file contains 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
(function (window) { | |
var moquire = { definedModules: [] }; | |
window.define = function (module, dependencies, factory) { | |
moquire.definedModules[module] = { name: module, dependencies: dependencies, factory: factory }; | |
}; | |
window.require = function (modules, callback) { | |
//TODO: something i guess... | |
}; |
This file contains 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
define( | |
['jquery', 'bootstrap'], | |
function () { | |
var modalMarkup = '<div class="modal fade">' + | |
' <div class="modal-dialog">' + | |
' <div class="modal-content">' + | |
' <div class="modal-header">' + | |
' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' + | |
' <h4 class="modal-title">Single Movie ID</h4>' + | |
' </div>' + |
This file contains 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
/* global baseUrl, alert, setTimeout */ | |
define( | |
['jquery'], | |
function ($) { | |
var loadingCount = 0, | |
loadingMarkup = '<div id="loading-indicator" style="display:none;"><div></div><img src="/Content/Images/loading.gif" /></div>', | |
hiding = false, | |
showLoading = function () { | |
loadingCount++; | |
if (loadingCount !== 1) { return; } |
This file contains 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.Web.Mvc; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; | |
using Newtonsoft.Json.Serialization; | |
namespace Web.Core | |
{ | |
public class JSendResult : JsonResult | |
{ |
This file contains 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 Newtonsoft.Json.Converters; | |
namespace Web.Core | |
{ | |
public class CamelCaseStringEnumConverter : StringEnumConverter | |
{ | |
public CamelCaseStringEnumConverter() | |
{ | |
CamelCaseText = true; | |
} |
OlderNewer