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
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: cassandra | |
spec: | |
serviceName: "cassandra" | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: cassandra |
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
//Implement the class Box | |
//l,b,h are integers representing the dimensions of the box | |
// The class should have the following functions : | |
// Constructors: | |
// Box(); | |
// Box(int,int,int); | |
// Box(Box); |
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
object BubbleSort { | |
def sort(xs: List[Int]) = { | |
def bsort(xs: List[Int], current: Int, dest: Int): List[Int] = { | |
dest match { | |
case 0 => xs | |
case _ if (dest == current) => bsort(xs, 0, dest - 1) | |
case _ => | |
if (xs(current) > xs(current + 1)) { |
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 obj = JSON.parse(json); | |
function getMilestone(cardLabels) { | |
for(var i = 0; i < cardLabels.length; i++) { | |
if (cardLabels[i].name === 'High priority' || cardLabels[i].name === 'Critical priority') { | |
return 1; | |
} else if (cardLabels[i].name == 'Medium priority') { | |
return 2; | |
} else if (cardLabels[i].name == 'Low priority') { | |
return 3; |
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
date | account | category | amount | currency | description | |
---|---|---|---|---|---|---|
04/12/2015 | Payment card | Food | -2 | GBP | Fastuci | |
12/12/2015 | Payment card | Sports | -23 | GBP | Za novi maratonki ot jenskiq | |
07/12/2015 | Cash | Entertainment | -14 | GBP | Za diskoteka | |
12/12/2015 | Cash | Clothes | -50 | GBP | Za ancung na adidas (da sme batki) | |
08/12/2015 | Payment card | Sports | -5 | GBP | Na mach na govedata | |
09/12/2015 | Cash | Car | -260 | GBP | Platih zastrahovkata na trabanta | |
11/12/2015 | Payment card | Transport | -20 | GBP | Karta za gradskiq | |
09/12/2015 | Payment card | House | -36 | GBP | Za nova prahosmukachka | |
11/12/2015 | Payment card | Health | -13 | GBP | Za antibiotici |
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
<minify> | |
<account> | |
Cash | |
<date> | |
07/12/2015 | |
<amount>-45</amount> | |
<amount>-14</amount> | |
</date> | |
<date> | |
09/12/2015 |
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
#include <stdio.h> | |
typedef struct { | |
int day; | |
int hour; | |
int minute; | |
int second; | |
} day_t; | |
typedef struct { |