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
window.Dish = class Dish | |
constructor: (rawDescription="") -> | |
@title = rawDescription.match(/([^$]+)/)?[1]?.trim() | |
hello: -> | |
alert('I am a yummy ' + @title) | |
window.YummyDish = class YummyDish extends Dish | |
hello: -> |
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
local _H = display.contentHeight; | |
local _W = display.contentWidth; | |
local monster = display.newText("a", 0, 0, "Monsterz", 120); | |
monster.x = _W * 0.5; monster.y = _H * 0.5; | |
local hello = display.newText("Tap me, I'z hungree", 0, 0, "BorisBlackBloxx", 24); | |
hello.x = _W * 0.5; hello.y = (_H * 0.5) + 80; | |
local nom = display.newText("Nom nom", 0, 0, "BorisBlackBloxx", 12); |
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 Bootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void InitialiseInternal(TinyIoCContainer container) | |
{ | |
base.InitialiseInternal(container); | |
FormsAuthentication.Enable(this, new FormsAuthenticationConfiguration() | |
{ | |
RedirectUrl = "~/login", | |
UsernameMapper = container.Resolve<IUsernameMapper>() |
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.Runtime.Serialization.Formatters.Binary; | |
using Loot.Logging; | |
using Mindscape.LightSpeed.Caching; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; | |
namespace Loot | |
{ |
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 Nancy.Authentication.Forms; | |
using Nancy.Testing; | |
namespace Nancy.Authentication.Forms | |
{ | |
public static class BrowserContextExtenstions | |
{ | |
public static void FormsAuth(this BrowserContext browserContext, Guid userIdentifier) |
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; | |
namespace Devastator | |
{ | |
public static class DateTimeExtensions | |
{ | |
/// <summary> | |
/// Converts a DateTime compared to the current time into plain english for explaining how recently the datetime occurred in the past. | |
/// </summary> | |
public static string ToVerbalTimeSince(this DateTime sourceDateTime) |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<div class="clearfix"> | |
Before Grid |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<div class="clearfix"> | |
Before Grid |
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
$(function() { | |
var $document = $(document); | |
$document.trigger('domloaded', $document); | |
$('.someselector').load('/my/url', function(nodes) { | |
$document.trigger('ajax_loaded', nodes); | |
}); | |
}); |
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 HtmlFormatter : MediaTypeFormatter | |
{ | |
public HtmlFormatter() | |
{ | |
SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html")); | |
SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/plain")); | |
} | |
protected override bool CanReadType(Type type) | |
{ |