Skip to content

Instantly share code, notes, and snippets.

View ajainarayanan's full-sized avatar
💭
💻 🕙 🦄

Ajai ajainarayanan

💭
💻 🕙 🦄
View GitHub Profile
@ajainarayanan
ajainarayanan / node-config.json
Last active November 20, 2015 22:19
node-config
{
"metadata": {
"artifact-version": "1.0.0",
"spec-version": "1.0",
"name": "Plugin Name",
"type": "batchsource"
},
"inputs": null,
"configuration-groups": [
{
@ajainarayanan
ajainarayanan / oldToNewConfig.js
Created December 4, 2015 00:45
Script to change old config json to new json SPEC.
var path = [
'cdap-etl-batch',
'cdap-etl-realtime',
'common'
];
var basePath = __dirname + '/';
var fs = require('fs');
path.forEach((folderName) => {
@ajainarayanan
ajainarayanan / oldToNewConfig-app-templates.js
Last active December 10, 2015 22:14
This is for automatically converting old predefined app templates to new ones.
// Usage: node --harmony <filename>.js path=./templates/apps/predefined/
// Templates from <3.2 to new template structure in 3.3
var uuid = require('node-uuid');
var fs = require('fs');
var paths = [];
var fileExt = require('path');
process.argv
.filter( (arg, i) => {
if (arg.indexOf('path') !== -1) {
@ajainarayanan
ajainarayanan / apps-artifact-version-change.js
Created January 5, 2016 23:49
Automatically change artifact name & version from predefined apps
// Usage: node --harmony <filename>.js path=./templates/apps/predefined/ --artifact=core-plugins --version=1.2.0
// Templates from <3.2 to new template structure in 3.3
var uuid = require('node-uuid');
var fs = require('fs');
var paths = [];
var fileExt = require('path');
var yargs = require('yargs').argv;
var path = yargs.path;
var artifact = yargs.artifact;
@ajainarayanan
ajainarayanan / BLOG.md
Last active October 6, 2017 08:06
A Bevy of Beggers

Originally posted on Jun 27, 2014

CoverPhoto

In the recent past I happen to visit a place in whose vicinity I saw a building with people pouring out of it. When made inquiries revealed the fact that a job fair is about to commence at that place. It was the first time I realised that a country could possess so much 'unemployees'. Of course I have seen many 'Non-Employees' who simply cease to work for the very fact that they are lazy, but this sight of so many un-employees struck me very badly.

@ajainarayanan
ajainarayanan / BLOG.md
Last active October 6, 2017 08:06
Androgyne

Originally posted on Jun 28, 2014

She was envyed for her grace and charm, for her beauty and smartness, for her tenderness and manliness. A descendant of a huge family, the one where she was brought up and didn't looked with contempt and mockery, was the hermophroditus Androgynee. It was the name that she had it herself after detaching from her own family, the one to which she had blood relationship. Even though her work was to beg, occasionally the gastrochemicals that secreted on her stomach led her to involve in sexual intercourse to neutralise the acids with its base- food(Of course she did it for money and with money she is going to find food). The history about hermophrodites dates back to the age of zues where hermes and aphrodite fell in love and gave birth to a child which on seeing a nymph salmaicis falls in love with her and on request by hermes and aphrodite zues unites both salmaicis

@ajainarayanan
ajainarayanan / BLOG.md
Last active January 28, 2018 18:45
Half Women God

Originally posted on Jun 28, 2014

CoverPhoto

Androgynee was a fruit at heart. Even though she never got the right treatment from her society she never reciprocated the same. It was simply the fact that people refused to get a helping hand from her because of the fact that she was half woman. She was seen for her vulnerablity in attracting men for some cheap sex, which by law was condemnable. People never realised that the men who went to her for some pleasure were one among them but were never condemned. Androgynee aimed for a reform, a reformation that would make them to be considered as peers in their community and never to be looked upon with disgrace. Even though they stoop do things in their life for survival, who does not, all she aimed was a normal life just like any other human so that she could lead a life with dignity. All she aimed was the inclusion of him and her community people to be one among their society and never looked upon in an indiffe

@ajainarayanan
ajainarayanan / BLOG.md
Last active February 17, 2023 01:54
Algorithms - 101 (Back in 2014)

Originally posted on Jul 12, 2014

This blog is going to be an account of my understanding about the concept of algorithms in computer science field. I could be wrong sometime and right the other time. Please let me know if I am terribly getting something wrong. In this blog I will be discussing about some basic theories of algorithms and some problems associated with it.

Since this is the first post of my blog I don’t want to waste it with some random jabber talks. So let us try for a nice start of the subject.

So what do you mean by the term algorithm?
@ajainarayanan
ajainarayanan / BLOG.md
Last active October 6, 2017 08:05
The Metamorphosis

Originally posted on Jul 12, 2014

CoverPhoto

.... he laid his first step in the island of Galapagos as his ship anchored 1000 kms from the Ecuadorian mainland. He was a man consumed by wanderlust who had a glutenous mind in search for knowledge. He turned back and invited his friends to join him towards a journey which history documented it as Origin of Species.

John was teaching his students the concept of humanity and why we live in a system which operates on strict rules, mundane routines and

@ajainarayanan
ajainarayanan / BLOG.md
Last active October 6, 2017 08:04
Recurrence Equation - An Intro

Originally posted on Jul 15, 2014

We had discussions about starting off with the topic of algorithms and discussing about mathematical background for the same.

We had planned in discussing about characteristic equation.

What is a characteristics equation?

Its the mathematical representation of a problem. Generally we may encounter (almost all the time) a problem that