Skip to content

Instantly share code, notes, and snippets.

🤓
Hacking my way through this world..

T.V.VIGNESH tvvignesh

Block or report user

Report or block tvvignesh

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
@tvvignesh
tvvignesh / flattenArray.js
Created Oct 15, 2016
Flatten an array of nested arrays of integers
View flattenArray.js
/**
* Flatten an Array of Arbitrarily nested Arrays of Integers
* into a Flat Array of Integers.
* @param {Array} intArray - Array of Numbers
* @param {Array} flatArray - Flatten array (recursive)
* @return {Array} - Array of Numbers
*
* Link to JSBin - http://jsbin.com/dofuneb/edit?js,output
*/
var flatten = function(intArray, flatArray) {
@tvvignesh
tvvignesh / program.js
Created Mar 19, 2018
Grep implementation in Node.js
View program.js
/*
Instructions to run:
node program.js grep "search term" file1.xyz file2.xyz /path/to/file/file3.xyz
*/
var fileList = [];
var countObj = {};
console.log(process.argv);
@tvvignesh
tvvignesh / gpg.md
Last active Jul 19, 2018
Encrypt and Decrypt files using GPG Algorithm - https://www.gnupg.org/
View gpg.md

Remove existing GPG Secret Keys

gpg --delete-secret-keys "Vignesh T.V."

Remove existing GPG Public Keys

gpg --delete-keys "Vignesh T.V."

Generate GPG Keys

gpg --gen-key

Export GPG Public Key

View DocumentProcessing.md

Convert PPTX to PDF using libreoffice

libreoffice --headless --invisible --convert-to pdf *.pptx

Combine multiple PDFs to form a single PDF with layout options

pdfjam *.pdf --nup 3x4 --landscape --outfile output.pdf

@tvvignesh
tvvignesh / MTech.md
Last active Nov 23, 2018
Notes/References for Masters
View MTech.md

These are the materials I used for some of the courses I studied at MTech. Links are given against specific topics.

Information Retrieval

  1. Term Document Matrix - https://www.youtube.com/watch?v=9Ib0SQkQmNA
  2. Positional Index - https://www.youtube.com/watch?v=QVVvx_Csd2I
  3. Order of processing - https://web.stanford.edu/class/cs276/handouts/lecture1-intro-handout-1-per.pdf
  4. Boolean Retrieval Model - https://www.youtube.com/watch?v=TIN_02pJU-Y&index=6&list=PLaZQkZp6WhWwoDuD6pQCmgVyDbUWl_ZUi&t=0s
  5. Permuterm Index - https://www.youtube.com/watch?v=j789k96g5aQ&index=4&list=PLPIRGCawmSHwdyQ5Ss_qqafUu02lL0Kl9&t=0s
  6. Naive Bayes Classifier - https://www.youtube.com/watch?v=RixQygYyDKI
  7. Information Retrieval courses -
@tvvignesh
tvvignesh / redis.md
Created Dec 6, 2018
Redis installation and commands
View redis.md

wget http://download.redis.io/releases/redis-5.0.2.tar.gz

tar xzf redis-5.0.2.tar.gz

cd redis-5.0.2

cd deps

make hiredis jemalloc linenoise lua geohash-int

@tvvignesh
tvvignesh / BuyingGuide.md
Created Dec 8, 2018
Checklist to consider before buying anything
View BuyingGuide.md
  1. Why am I buying it?
  2. Do I really need it? If not, do I really love it?
  3. What is the Return of Investment (ROI)?
  4. How many hours of work is it worth? How will I manage the finances?
  5. Can I take it for rent if it is a temporary need?
  6. Are there alternatives for the same?
  7. Can I recycle or sell it after usage?
  8. Is it socially and environmentally friendly?
You can’t perform that action at this time.