Skip to content

Instantly share code, notes, and snippets.

View nishanthvijayan's full-sized avatar

Nishanth Vijayan nishanthvijayan

View GitHub Profile
@nishanthvijayan
nishanthvijayan / post-commit
Created May 14, 2019 15:58
PortCommit Hook that builds project directory into zip with last commit ID
# Clean dist.
# We don't want previous release files getting included in this release.
rm dist/*
# Get git last commit ID
lastcommitID=$(git log --format="%H" -n 1)
echo "Create zip file release: dist/${lastcommitID}.zip"
# Zip quietly
@nishanthvijayan
nishanthvijayan / GitHubStarNotification.md
Last active April 7, 2019 15:13
Recieve an Email notification when someone stars your GitHub repository

GitHub Star Notification

AWS Lambda script to recieve email notifcation when someone stars your GitHub repository.

Instructions

AWS Lambda

Set up an AWS Lambda function with an API gateway endpoint (POST method) that triggers this lambda function. The code for the Lambda function is in index.js.

@nishanthvijayan
nishanthvijayan / PipeForward.md
Last active April 30, 2023 12:54
Simple Pipe forward operator in Kotlin

Here I try to implement a simple pipe forward operator similar to |> operator in Elixir or the andThen operator in Scala

Let's say you have a need for doing something like this

val x = f("something")
val y = g(x)
val z = h(y)

This is also equivalent to saying:

@nishanthvijayan
nishanthvijayan / GSOC_Final.md
Last active December 30, 2016 12:45
GSOC Final Work Submission

GSOC Final Work Submission


The following are the features that I worked on implementing as part of Google Summer of Code 2016

Changelog/Revision History page

Sets up a Revision History page to OSEM using which displays a list of changes made to conferences and their associated resources.

Features

  • Tracks changes to various models and displays these changes in a human readable form
  • Allows users to revert changes
  • Makes it easy to pinpoint what changes were made by displaying which attributes were changed and their previous and new values