Skip to content

Instantly share code, notes, and snippets.

Ivaylo Arnaudov arnaudoff

  • Sofia, Bulgaria
Block or report user

Report or block arnaudoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wtf.cc
//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);
View foo.scala
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)) {
@arnaudoff
arnaudoff / humanize.js
Created Feb 18, 2016
Trello JSON export to human readable cards
View humanize.js
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;
View ok.csv
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
View output.xml
<minify>
<account>
Cash
<date>
07/12/2015
<amount>-45</amount>
<amount>-14</amount>
</date>
<date>
09/12/2015
View structs.c
#include <stdio.h>
typedef struct {
int day;
int hour;
int minute;
int second;
} day_t;
typedef struct {
You can’t perform that action at this time.