This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Models; | |
using System.Collections.Generic; | |
using System.Linq; | |
using AutoMapper; | |
namespace Data | |
{ | |
public class UsersService | |
{ | |
public ICollection<User> Users { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- THE MODEL -------------------------------------- | |
public class DatePickerInputModel | |
{ | |
[DataType(DataType.Date)] | |
[DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)] | |
public DateTime Date { get; set; } | |
} | |
------------------------------ APP START CONFIGURATION ---------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CellularAutomata | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
char key = new char(); | |
MapHandler Map = new MapHandler(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script exports photoshop layers as individual PNGs. It also | |
// writes a JSON file that can be imported into Spine where the images | |
// will be displayed in the same positions and draw order. | |
// Setting defaults. | |
var writePngs = true; | |
var writeTemplate = false; | |
var writeJson = true; | |
var ignoreHiddenLayers = true; | |
var pngScale = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
namespace WebPageWatcher | |
{ | |
public class Program | |
{ | |
public static State state; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace EventManager | |
{ | |
public class EventManager | |
{ | |
private static EventManager instance = null; | |
public static EventManager Instance | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Javascript example | |
$(function(){ | |
var webSocket = window.WebSocket || window.MozWebSocket, | |
ws = new webSocket('ws://localhost:8181'); | |
ws.onopen = function(e){ | |
console.log('Connection opened'); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$path = $(Read-Host "Path to folder") | |
) | |
$foldersToDelete = Get-ChildItem -Path $path -Recurse -Name "bin" -Directory | %{ Join-Path -Path $path -ChildPath $_.ToString() } | |
Remove-Item $foldersToDelete -Recurse -Confirm:$false | |
#Write-Host $foldersToDelete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------- GenerateForumsSpamProtectionNuGetPackages.ps1 --------------- | |
[CmdletBinding()] | |
Param( | |
[alias("sln")] | |
$slnName = "Web.SitefinityModules.PublishingExtender", | |
[alias("slnDir")] | |
$slnDirectory = $null, | |
[alias("outDir")] | |
$outputDir = "C:\LEAN\local-nuget-repository", | |
[alias("projects")] |
OlderNewer