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
create database YAMS | |
go | |
use YAMS | |
go | |
-- stores versioned service packages | |
-- each version of a package can be used in multiple clusters and node types | |
create table dbo.ServicePackages | |
( |
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
function randnormal(minimum, mean, maximum, stdev) | |
{ | |
// start with two uniformly distributed random numbers | |
var rn1 = Math.random(); | |
var rn2 = Math.random(); | |
// Box-Muller transform | |
var r = Math.sqrt(-2 * Math.log(rn1)); | |
var theta = 2 * Math.PI * rn2; | |
var x = r * Math.cos(theta); // 1st of 2 random numbers generated |
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.Threading.Tasks; | |
using Xamarin.Forms; | |
public static class ViewExtensions | |
{ | |
public static void ShiftColorTo (this VisualElement view, Color sourceColor, Color targetColor, Action<Color> setter, uint length = 250, Easing easing = null) | |
{ | |
view.Animate ("ShiftColorTo", | |
x => |
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
<local:ContentButton x:Name="DetailButton" WidthRequest="100" HeightRequest="60" BackgroundColor="Blue"> | |
<StackLayout HorizontalOptions="Center" VerticalOptions="CenterAndExpand"> | |
<Label Text="Hello" TextColor="White" Font="16"/> | |
<Label Text="World" TextColor="White" Font="16"/> | |
</StackLayout> | |
</local:ContentButton> |