(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
+-------------------+------------+-----------------+ | |
| Athlete | Sport | Years in Career | | |
+-------------------+------------+-----------------+ | |
| Sachin Tendulaker | Cricket | 24 | | |
| Diego Maradona | Football | 21 | | |
| Kapil Dev | Cricket | 16 | | |
| Kobe Bryant | Basketball | 20 | | |
| Michael Jordan | Basketball | 19 | | |
+-------------------+------------+-----------------+ |
+-------------------+---------+----------+------------+-----------------+ | |
| Athlete | Cricket | Football | Basketball | Years in Career | | |
+-------------------+---------+----------+------------+-----------------+ | |
| Sachin Tendulaker | 1 | 0 | 0 | 24 | | |
| Diego Maradona | 0 | 1 | 0 | 21 | | |
| Kapil Dev | 1 | 0 | 0 | 16 | | |
| Kobe Bryant | 0 | 0 | 1 | 20 | | |
| Michael Jordan | 0 | 0 | 1 | 19 | | |
+-------------------+---------+----------+------------+-----------------+ |
+-------------------+---------+------------+-----------------+ | |
| Athlete | Cricket | Basketball | Years in Career | | |
+-------------------+---------+------------+-----------------+ | |
| Sachin Tendulaker | 1 | 0 | 24 | | |
| Diego Maradona | 0 | 0 | 21 | | |
| Kapil Dev | 1 | 0 | 16 | | |
| Kobe Bryant | 0 | 1 | 20 | | |
| Michael Jordan | 0 | 1 | 19 | | |
+-------------------+---------+------------+-----------------+ |
.--------------.---------------.---------------. | |
| t+1 | t+(k1+k2+2) | t+2(k1+k2+2) | | |
:--------------+---------------+---------------: | |
| t-(k1+k2) | t | t+(k1+k2+1) | | |
:--------------+---------------+---------------: | |
| t-2(k1+k2) | t-(k1+k2+1) | t-1 | | |
'--------------'---------------'---------------' |
data class Customer(private val firstName: String, | |
private val lastName: String, | |
private val age: Int) { | |
private val fullName = "$firstName $lastName" | |
fun isAdult(): Boolean { | |
return age >= 18 | |
} | |
fun getGreetingName(): String { |
ALTER PROCEDURE[dbo].[spCheckin_BadgeAttendance] | |
@PersonId int | |
, @RoleGuid uniqueidentifier = null | |
, @ReferenceDate datetime = null | |
, @MonthCount int = 24 | |
, @ShowAsIndividual bit = 0 | |
AS | |
BEGIN | |
DECLARE @cROLE_ADULT uniqueidentifier = '2639F9A5-2AAE-4E48-A8C3-4FFE86681E42' | |
// Add Page | |
// Internal Name: Migration Job Test | |
// Site: Rock RMS | |
RockMigrationHelper.AddPage( true, "7F1F4130-CB98-473B-9DE1-7A886D2283ED","D65F783D-87A9-4CC9-8110-E83466A0EADB","Migration Job Test","","18EE0F64-57D5-43BE-B3B4-DA3A77EC28D6",""); | |
// Add/Update Obsidian Block Entity Type | |
// EntityType:Rock.Blocks.CMS.PageShortLinkDetail | |
RockMigrationHelper.UpdateEntityType("Rock.Blocks.CMS.PageShortLinkDetail", "Page Short Link Detail", "Rock.Blocks.CMS.PageShortLinkDetail, Rock.Blocks, Version=1.16.0.5, Culture=neutral, PublicKeyToken=null", false, false, "AD614123-C7CA-40EE-B5D5-64D0D1C91378"); |
public class SortCMSPages : Migration | |
{ | |
/// <summary> | |
/// Operations to be performed during the upgrade process. | |
/// </summary> | |
public override void Up() | |
{ | |
// Remove page display options for Section Pages in CMS Config | |
var cmsSectionPageGuids = new string[] { | |
"\'CCDFEA8F-CF33-49C7-86C0-C4B10DCF1E89\'", // Website Configurations Section Page |
/// <summary> | |
/// PA - Updated Registration Template Confirmation Email to not include Additional Confirmation Details if all registrants are in wait list | |
/// </summary> | |
public override void Up() | |
{ | |
// Replace the old Templates to include check for waitlist while getting the count of registrants. | |
Sql( @"UPDATE [RegistrationTemplate] | |
SET [ConfirmationEmailTemplate] = REPLACE([ConfirmationEmailTemplate], | |
'{% assign registrantCount = Registration.Registrants | Size %}', | |
'{% assign registrantCount = Registration.Registrants | Where:''OnWaitList'', false | Size %}')" ); |