Skip to content

Instantly share code, notes, and snippets.

@shane-powell
shane-powell / ClassGenerator.sql
Last active April 14, 2020 11:27
Generate C# class from database table (Implementing INotifyPropertyChanged)
--Forked from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table
declare @TableName sysname = 'TableNameHere'
declare @Result varchar(max) = 'using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
public class ' + @TableName + ' : INotifyPropertyChanged
{
'
@stephenroller
stephenroller / dots-and-boxes.py
Created July 23, 2012 14:46
2 Player Dots and Boxes
#!/usr/bin/env python
import curses, sys, re
from time import sleep
from random import randint
OFFSET_X, OFFSET_Y = 2, 1
BOARD_SIZE = 7
ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"