Skip to content

Instantly share code, notes, and snippets.

View marcin-chwedczuk's full-sized avatar

Marcin Chwedczuk marcin-chwedczuk

View GitHub Profile
var s="var s=\x22%\x22; console.log(s.replace(\x22%\x22,s.replace(new RegExp(String.fromCharCode(34),\x22g\x22),String.fromCharCode(92)+\x22x22\x22)))"; console.log(s.replace("%",s.replace(new RegExp(String.fromCharCode(34),"g"),String.fromCharCode(92)+"x22")))
@marcin-chwedczuk
marcin-chwedczuk / Using scopes
Created July 30, 2014 18:32
Using scoped lifestyle windsor.castle
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.MicroKernel.Lifestyle;
namespace Castle_ScopeLifetime {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NullChecking {
struct NonNull<T>
where T : class
{