Skip to content

Instantly share code, notes, and snippets.


Vipin Nair nxvipin

View GitHub Profile
/bin/bash -c "$(curl -fsSL"
export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
brew install --cask keepassxc
brew install --cask emacs
brew install --cask rectangle
brew install --cask insomnia
brew install --cask docker
brew install --cask meetingbar
Wordle 298 3/6

Wordle 294 3/6
View Nginx Conditional Upstream
upstream p1 {
upstream p2 {
# Select upstream based on the value of query parameter `product`

Keybase proof

I hereby claim:

  • I am swvist on github.
  • I am swvist ( on keybase.
  • I have a public key whose fingerprint is B47F 59DE 3D01 7E58 87F2 01EE 401A C579 AFAA 31CF

To claim this, I am signing this object:

nxvipin /
Created Sep 24, 2012
Some numerical methods in python.
Bisection, Secant & Newton Raphson Method.
import math
* Variable Description:
* f : Given function
* f_ : Derivative of f
nxvipin / factorial.erl
Created Sep 13, 2012
Naive Parallel Factorial
View factorial.erl
% Naive Parallel Factorial
% The second line defines the number of processes that will be spawned.
% Modify the number to control the task distribution.
-define(PROC, 4).
-export([sub_factorial/2, sub_factorial/3]).
-export([calculate/1, calculate/2]).
sub_factorial(V, N, PID) ->
nxvipin /
Created May 14, 2012
Image grid generation similar to
#Copyright (c) 2012 Vipin Nair <>
#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:
#The above copyright notice and this permission notice shall be included in all