This file contains hidden or 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 file contains hidden or 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
Console.WriteLine("Progress bar demo using carriage returns"); | |
const int STEPS = 40; | |
const string SPINNER = "|/-\\"; | |
var random = new Random(); | |
for (var i = 0; i <= STEPS; i++) { | |
Console.Write("\r"); | |
Console.Write("Progress: "); | |
Console.Write(SPINNER[i%4]); | |
Console.Write(" ["); | |
Console.Write(String.Empty.PadRight(i, '▓').PadRight(STEPS, ' ')); |
This file contains hidden or 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
abstract class Animal { | |
public int distanceFromEdge = 1; | |
protected bool edge => distanceFromEdge <= 0; | |
protected void run() { | |
distanceFromEdge--; | |
} | |
public abstract void go(); | |
} |
This file contains hidden or 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.Text; | |
namespace DotNetSummitBy { | |
class Program { | |
static NormalizationForm[] forms = new[] { | |
NormalizationForm.FormC, NormalizationForm.FormD, | |
NormalizationForm.FormKC, NormalizationForm.FormKD |
This file contains hidden or 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 ObjectExtensions { | |
public static dynamic ToDynamic(this object value) { | |
IDictionary<string, object> expando = new ExpandoObject(); | |
var properties = TypeDescriptor.GetProperties(value.GetType()); | |
foreach (PropertyDescriptor property in properties) { | |
expando.Add(property.Name, property.GetValue(value)); | |
} | |
return (ExpandoObject)expando; | |
} | |
} |
This file contains hidden or 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
Forever takes a lifetime. | |
The sunset is silence (it seems) | |
Until a lifetime is nothing, | |
Roll a lifetime into your dreams, | |
Cast your dreams into the night, | |
Let the sunset be with the night. | |
Give back the sunset | |
Give back the night |
This file contains hidden or 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 ObjectExtensions { | |
public static dynamic ToDynamic(this object value) { | |
IDictionary<string, object> expando = new ExpandoObject(); | |
var properties = TypeDescriptor.GetProperties(value.GetType()); | |
foreach (PropertyDescriptor property in properties) { | |
expando.Add(property.Name, property.GetValue(value)); | |
} | |
return (ExpandoObject)expando; | |
} | |
} |
This file contains hidden or 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
DECLARE @places TABLE (name nvarchar(max)); | |
insert into @places(name) values('Aarhus'); | |
insert into @places(name) values('Berlin'); | |
insert into @places(name) values('Zurich'); | |
insert into @places(name) values('Aachen'); | |
select name from @places order by name COLLATE Latin1_General_CI_AI | |
select name from @places order by name COLLATE Danish_Norwegian_CI_AI | |
select name from @places order by name COLLATE Finnish_Swedish_CI_AI |
This file contains hidden or 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
CREATE TABLE RockClub ( | |
ID INT IDENTITY(1, 1), | |
Address_NS NVARCHAR(128) COLLATE SQL_Latin1_General_CP1_CI_AI, | |
Address_VS VARCHAR(128) COLLATE SQL_Latin1_General_CP1_CI_AI, | |
Address_NW NVARCHAR(128) COLLATE Latin1_General_CI_AI, | |
Address_VW VARCHAR(128) COLLATE Latin1_General_CI_AI | |
) | |
INSERT INTO RockClub (Address_NS, Address_VS, Address_NW, Address_VW) VALUES (N'Saarbrücker Straße 24, 10405 Berlin','Saarbrücker Straße 24, 10405 Berlin',N'Saarbrücker Straße 24, 10405 Berlin','Saarbrücker Straße 24, 10405 Berlin') |
This file contains hidden or 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
#parse parameters supplied by TeamCity script step | |
param ( | |
[string]$branch = "refs/heads/master", | |
[string]$branch_is_default = "true", | |
[string]$build_number = "0" | |
) | |
function Update-AssemblyVersion { | |
param ([string]$version) |
NewerOlder