Skip to content

Instantly share code, notes, and snippets.

View lofcz's full-sized avatar
Working on WattleScript

Matěj Štágl lofcz

Working on WattleScript
View GitHub Profile
@vadymberkut
vadymberkut / ASP NET MVC Using wwwroot static files.txt
Created June 21, 2017 09:24
ASP NET MVC Using wwwroot static files
Create a new ASP.NET 4.5 project in VS2015, selecting the Empty Template
Add OWIN references through nuget (Install-Package Microsoft.Owin.Host.SystemWeb and Microsoft.Owin.StaticFiles)
Add a startup file similar to this:
[assembly: OwinStartup(typeof(MyApp.Startup))]
namespace MyApp.UI
{
public class Startup
{
public void Configuration(IAppBuilder app)
@xanathar
xanathar / MoonSharpInfiniteLoopCheck
Created April 13, 2015 08:36
[MoonSharp] - How to limit execution of a script to n instructions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoonSharp.Interpreter;
using MoonSharp.Interpreter.Debugging;
namespace Tutorials.Chapters
{