Skip to content

Instantly share code, notes, and snippets.

@lele85
lele85 / di_hello.cs
Created January 31, 2012 20:39
Dependency Injection Hello World in C#
using System;
using System.Configuration;
using System.Threading;
using System.Collections;
using System.Collections.Generic;
namespace HelloDI
{
public class MainClass
{
@lele85
lele85 / di_hello.py
Created January 31, 2012 20:36
Dependency Injection Hello World in python
from datetime import *
class ConsoleMessageWriter:
def __init__(self):
pass
def write(self, message):
print message
class LoggedMessageWriter:
@lele85
lele85 / wordpress_comment.py
Created June 1, 2009 13:35
wordpress_comment.py
import xmlrpclib
class comment:
def __init__(self, content, author, author_url, author_email, comment_parent = 0):
self.comment_parent = comment_parent
self.content = content
self.author = author
self.author_url = author_url
self.author_email = author_email