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
// Run as snippet in chrome when on event lottery page. | |
(function () { | |
// Returns a random integer between min (included) and max (excluded) | |
// Using Math.round() will give you a non-uniform distribution! | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
function renderTable(placeholderSelector, names) { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<UserSettings> | |
<ApplicationIdentity version="14.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/> | |
</ToolsOptions> | |
<Category name="Environment_Group" RegisteredName="Environment_Group"> | |
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="Version">2</PropertyValue> | |
<FontsAndColors Version="2.0"> |
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
Expression<Func<int, int, int>> addExp = (a, b) => a + b; | |
Console.WriteLine(addExp); | |
var aArg = Expression.Parameter(typeof(int), "a"); | |
var bArg = Expression.Parameter(typeof(int), "b"); | |
var addBody = Expression.Add(aArg, bArg); | |
var buildAddExp = (Expression<Func<int, int, int>>)Expression.Lambda(addBody, aArg, bArg); | |
Console.WriteLine(buildAddExp); |
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
Expression<Func<int, int, int>> exp = | |
(a, b) => a + b; | |
Console.WriteLine(exp); |
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
Func<int, int, int> addDel = (a, b) => a + b; | |
Console.WriteLine(addDel); | |
int d = addDel(1, 2); | |
Console.WriteLine(d); | |
Expression<Func<int, int, int>> addExp = (a, b) => a + b; | |
Console.WriteLine(addExp); |
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
Expression<Func<int, int, int>> exp = | |
(a, b) => a + b; | |
Console.WriteLine(exp); |
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
int a = 0; | |
int b = 0; | |
int c = 0; | |
c = a + b; |
NewerOlder