Skip to content

Instantly share code, notes, and snippets.

View devanshdalal's full-sized avatar
🥝

Devansh D. devanshdalal

🥝
View GitHub Profile
## Brain MRI Report
 
MR imaging of the brain was performed on a 1.5 T MR scanner using head coil.  T1 FLAIR, FSE T2, GRE T2*-- Axial, FSE T2-- sagittal and T2 FLAIR coronal images were acquired.  The study was supplemented with diffusion weighted images using EPI sequence.  Post contrast SE T1 weighted images were also obtained in coronal, sagittal and axial planes.
The study reveals multiple discrete foci of T2 / FLAIR hyperintensity in left frontal, left parietal, periventricular and centrum semiovale region and bilateral posterior parietal periventricular white matter region and pericallosal interface.
Post contrast images reveals subtle enhancing lesions in the left periventricular white matter region, left pericallosal region, left frontal and posterior periventricular white matter region.
Rest of the cerebral parenchyma shows normal signal characteristics.  Myelination pattern of the brain is normal. No evidence of restricted diffusion noted.
@devanshdalal
devanshdalal / move.cpp
Last active November 11, 2019 17:36
understanding move semantics
#include <iostream>
#include <cstring>
class Foo
{
public:
Foo(): a(new char[10])
{
std::cout << "Contructor\n";
}

Cassandra Truncate stress

  1. workloads with tens of millions of keys.
-------------------------------------------------
PERF TEST [10485760 keys, 3072 block size]
  SEQUENTIAL WRITE
    num_keys: 10485760
    time: 8445.95s

Cassandra Truncate stress

build-opt/util/cassandra_store_stress --db_size=4294967296
-------------------------------------------------
PERF TEST [65536 keys, 65536 block size]
  SEQUENTIAL WRITE
    num_keys: 65536
    time: 81.508s
 payload: 4 GB

Stress-tests

System Config

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise
admin@s006:~/GitTest/apache-cassandra-3.11.1$ uname -a

Stress-tests

System Config

[genstor@genstor8 apache-cassandra-3.11.1]$ lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.4.1708 (Core) 
Release:	7.4.1708
[global_config]
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, MavenPluginURLHandler, LaunchpadBugURLHandler
[keybindings]
[profiles]
[[default]]
background_image = None
font = Monospace 14
visible_bell = True
scrollback_infinite = True
foreground_color = "#00ff00"
#include <iostream>
#include <vector>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
using namespace std;
int rand(int i){
return rand()%i;
}
/*
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or
transmitted across a network connection link to be reconstructed later in the same or another computer environment.
Design an algorithm to serialize and deserialize a binary tree. There is no restriction on how your serialization/deserialization
algorithm should work. You just need to ensure that a binary tree can be serialized to a string and this string can be deserialized to the original tree structure.
For example, you may serialize the following tree
1
/ \
2 -3
/
https://www.codeproject.com/articles/11835/wordnet-based-semantic-similarity-measurement