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
# Put in the solution root and call with .\Update-Antix.ps1 | |
$startingWith = "Antix." | |
$projects = Get-Project -All | |
$packagesFound = @() | |
foreach($project in $projects) | |
{ | |
$path = Join-Path (Split-Path $project.FileName) packages.config | |
if(Test-Path $path) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
... | |
<system.webServer> | |
... | |
<rewrite> | |
... | |
<rules> | |
... | |
<rule name="Redirect from WWW" stopProcessing="true"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>forms</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> | |
<style> |
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
public static class Log | |
{ | |
public const string MessageFormat = "{0:mm:ss:ffff} [{1}]: {2}"; | |
public static readonly Delegate ToConsole | |
= l => (ex, f, a) => | |
{ | |
var m = string.Format(f, a); | |
Console.WriteLine( | |
MessageFormat, DateTime.UtcNow, l, m); |
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
<html> | |
<head> | |
<title>Testin</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.1/angular.min.js"></script> | |
</head> | |
<body ng-app="app" ng-controller="AppController"> | |
<input id="test" ng-model="dateInput" /> |
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
public class DataTableNameConvention : | |
Convention | |
{ | |
public DataTableNameConvention( | |
IPluralizationService pluralizationService, | |
IDictionary<string, string> explicitNames) | |
{ | |
Types().Configure( | |
c => c.ToTable( | |
GetName(c.ClrType, pluralizationService, explicitNames)) |
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
<!DOCTYPE html> | |
<html ng-app="antix.cells"> | |
<head> | |
<meta name="description" content="angularjs cell layout" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style> |
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
// what the data looks like | |
// demo http://jsbin.com/yocolomife/1/edit?html,js,output | |
scope.things = [ | |
{ id : 1, name: 'raindrows on roses' }, | |
{ id : 2, name: 'wiskers on kittens' }, | |
{ id : 3, name: 'brown paper packages tied up with strings' } | |
]; | |
scope.myModel = { |
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
var someFunction = function(text, moreThings) { | |
var moreThingsArray = paramArray(moreThings, arguments, 1); | |
// ... do stuff | |
}; | |
someFunction('test with array', [new thing(), new thing()]); | |
someFunction('test with params', new thing(), new thing()); |
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
public class CreateQRService : | |
ICreateQRService | |
{ | |
readonly Log.Delegate _log; | |
byte[] _qr; | |
public CreateQRService( | |
Log.Delegate log) | |
{ | |
_log = log; |
OlderNewer