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.Linq; | |
using System.Web; | |
using System.Web.Http; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; |
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
public class Global : System.Web.HttpApplication { | |
protected void Application_Start(object sender, EventArgs e) { | |
// Register the SignalR route for our event context at /events | |
RouteTable.Routes.MapConnection<SampleUsageConnection>("chat", "chat/{*operation}"); | |
AreaRegistration.RegisterAllAreas(); | |
RegisterGlobalFilters(GlobalFilters.Filters); |
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 CacheCow.Client.FileCacheStore; | |
namespace Caching.WpfApp { | |
public class PeopleProxy { | |
public async Task<IEnumerable<Person>> GetAll() { | |
var handler = new CachingHandler( |
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.Linq; | |
using System.Reactive.Linq; | |
namespace RxGroupByUntil { | |
class Program { | |
static void Main(string[] args) { | |
PrintSequences(); | |
Console.ReadLine(); | |
} |
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
a: | |
b: | |
setting a = a1 | |
a: a1 | |
b: | |
setting b = b1 | |
a: a1 | |
b: b1 | |
setting a = b1 | |
a: a2 |
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
var robot = Require<Robot>(); | |
robot.Respond(@"(calc|calculate|calculator|convert|math|maths)( me)? (.*)", msg => | |
{ | |
msg | |
.Http("https://www.google.com/ig/calculator") | |
.Query(new | |
{ | |
hl = "en", | |
q = msg.Match[3] |
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
public class Math : IMMBotScript | |
{ | |
public void Register(Robot robot) | |
{ | |
robot.Respond(@"(calc|calculate|calculator|convert|math|maths)( me)? (.*)", async msg => | |
{ | |
dynamic res = await msg | |
.Http("https://www.google.com/ig/calculator") | |
.Query(new | |
{ |
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
static void Main(string[] args) | |
{ | |
var config = new Dictionary<string, string> | |
{ | |
{"MMBOT_JABBR_HOST", "https://jabbr.net/"}, | |
{"MMBOT_JABBR_NICK", "mmbot"}, | |
{"MMBOT_JABBR_PASSWORD", "mypassword"}, | |
{"MMBOT_JABBR_ROOMS", "mmbottestroom"}, | |
}; | |
} |
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
11/11/2013 | |
Basically I told them I was double billed when I ordered Xbox live gold via the console. | |
They | |
* Re-imbursed me one of the payments | |
* Cancelled my gold subscription | |
* Gave me a code - see 2. |
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
var robot = Require<Robot>(); | |
robot.Respond("updog", msg => msg.Send("What's up dog?")); |
OlderNewer