Skip to content

Instantly share code, notes, and snippets.

View tanayseven's full-sized avatar
🎯
Focusing

Tanay PrabhuDesai tanayseven

🎯
Focusing
View GitHub Profile
@tanayseven
tanayseven / intro_to_kotlin.ipynb
Last active September 9, 2020 01:49
A simple intro to kotlin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tanayseven
tanayseven / fancy_terminology.txt
Last active January 4, 2023 05:30
A list of terminologies to throw around while speaking (usually about people's behaviour)
nirvana fallacy, perfect solution fallacy
bicycle-shed effect, bike-shed effect, bike-shedding, Parkinson's law of triviality
supernormal stimulus, superstimulus
broken windows theory
tragedy of the commons
dunning-kruger effect
imposter syndrome: a psychological occurrence in which an individual doubts their skills, talents, or accomplishments and has a persistent internalized fear of being exposed as a fraud
strawman argument fallacy, when someone takes another person's argument or point, distorts it or exaggerates it in some kind of extreme way: and then attacks the extreme distortion, as if that is really the claim the first person is making
yak shaving: Any apparently useless activity which, by allowing you to overcome intermediate difficulties, allows you to solve a larger problem
flog a dead horse: waste energy on a lost cause or a situation that cannot be changed
@tanayseven
tanayseven / lscpu.txt
Created October 9, 2017 17:42
For Lenovo X1 Carbon
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
@tanayseven
tanayseven / SuccessInLife.java
Last active April 24, 2018 08:37
A simple mantra for success in life writen in the form of code. Needs more improvements, please suggest it in the code.
class SuccessInLife{
public Result chantSuccessInLifeMantra() {
while(success.isNotAchieved()){
try{
yourBest();
doWhatYouNeedTo();
workHardAtIt();
keepDoingItConstantly();
if (youFail()) throw AllYourWorries.Yourself;
}
@tanayseven
tanayseven / marie-curie.xml
Created August 16, 2016 12:32
A simple xml file that shows scientist details
<person>
<name>
<birth-names>
<birth-name>Maria Salomea Skłodowska</birth-name>
</birth-names>
<given-names>
<given-name>Maria</given-name>
<given-name>Marie</given-name>
</given-names>
</name>
@tanayseven
tanayseven / ParallelFilter.cs
Created April 17, 2016 13:22
Image Processing: Applying a grayscale filter to a an image (sequential and parallel algorithm) using C#
/*
Copyright (c) 2016 Tanay PrabhuDesai
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@tanayseven
tanayseven / StringToUpper.cs
Created April 8, 2016 11:19
String to upper
using System;
using System.Threading;
using System.Threading.Tasks;
namespace StringToUpper
{
class ParallelString
{
string str;
ParallelString(string str){
@tanayseven
tanayseven / Program.cs
Last active July 9, 2024 17:56
Parallel Computation for Matrix Multiplication in C#
/*
Copyright (c) 2016 Tanay PrabhuDesai, Sameer Jain, Akshaya Prabhu Salgaonkar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@tanayseven
tanayseven / Program.cs
Created March 18, 2016 01:10
Parallel Matrix Multiplication using different programming models
using System;
using System.Threading;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using Aneka;
using Aneka.Threading;
using Aneka.Tasks;
@tanayseven
tanayseven / ext1_average.c
Created February 26, 2016 03:22
MPI Codes for cloud lab 1
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#define ROOT 0
int main (int argc, char **argv) {
int rank, size;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);