Skip to content

Instantly share code, notes, and snippets.

@xsurge83
xsurge83 / Program.cs
Created November 21, 2012 14:48
Power of Dynamics
using System;
using System.Collections.Generic;
using System.Dynamic;
namespace Demo
{
class Program
{
static void Main()
@xsurge83
xsurge83 / test.cs
Created September 26, 2012 15:57
Regex to replace password
using NUnit.Framework;
namespace REGEX.TESTS
{
[TestFixture]
public class RegexTests
{
[Test]
public void Regex()
@xsurge83
xsurge83 / TodosController
Created March 21, 2012 12:55
Batmanjs Todo Controller
class TodosController extends Batman.Controller
index: () ->
@set('todo', new Todo())
@render(false)
create: () =>
@todo.save(() => @set('todo', new Todo))
# clean checked todo items.
clean: () ->
todos = TodoApp.get('Todo.all')