Skip to content

Instantly share code, notes, and snippets.

View nzhul's full-sized avatar
Power Overwhelming!

Dobromir Ivanov nzhul

Power Overwhelming!
View GitHub Profile
@nzhul
nzhul / CellularAutomata.cs
Last active November 11, 2015 12:31
Cellular automata - procedural cave generation
using System;
namespace CellularAutomata
{
class Program
{
static void Main(string[] args)
{
char key = new char();
MapHandler Map = new MapHandler();
Removing all deleted files: git ls-files --deleted -z | xargs -0 git rm
Removing deleted directory:
git rm -r --cached App/App.Web/DirectoryName
git commit -m 'Remove the now ignored directory "some-directory"'
git push
--------------------------- THE MODEL --------------------------------------
public class DatePickerInputModel
{
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)]
public DateTime Date { get; set; }
}
------------------------------ APP START CONFIGURATION ----------------
@nzhul
nzhul / UsingAutomapper.cs
Last active August 29, 2015 14:25
This is an simple example of how one can use AutoMapper Library
using Models;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
namespace Data
{
public class UsersService
{
public ICollection<User> Users { get; set; }