Skip to content

Instantly share code, notes, and snippets.

View tvvignesh's full-sized avatar
🤓
Hacking my way through this world..

Vignesh T.V. tvvignesh

🤓
Hacking my way through this world..
View GitHub Profile
@tvvignesh
tvvignesh / flattenArray.js
Created October 15, 2016 16:47
Flatten an array of nested arrays of integers
/**
* 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 March 19, 2018 18:01
Grep implementation in Node.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 July 19, 2018 20:34
Encrypt and Decrypt files using GPG Algorithm - https://www.gnupg.org/

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

@tvvignesh
tvvignesh / DocumentProcessing.md
Created November 23, 2018 11:47
Process Documents

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 November 23, 2018 22:44
Notes/References for Masters

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 December 6, 2018 14:09
Redis installation and commands

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 December 8, 2018 17:26
Checklist to consider before buying anything
  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?