Skip to content

Instantly share code, notes, and snippets.

View arnaudoff's full-sized avatar

Ivaylo Arnaudov arnaudoff

  • Trading 212
  • Sofia, Bulgaria
View GitHub Profile
#include <stdio.h>
typedef struct {
int day;
int hour;
int minute;
int second;
} day_t;
typedef struct {
<minify>
<account>
Cash
<date>
07/12/2015
<amount>-45</amount>
<amount>-14</amount>
</date>
<date>
09/12/2015
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
@arnaudoff
arnaudoff / humanize.js
Created February 18, 2016 17:29
Trello JSON export to human readable cards
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;
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)) {
//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);
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: cassandra
spec:
serviceName: "cassandra"
replicas: 3
selector:
matchLabels:
app: cassandra