Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻

Vipin Nair nxvipin

👨‍💻
View GitHub Profile
View MacOSSetup.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
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
View Wordle.md
Wordle 298 3/6

⬛⬛⬛⬛⬛
⬛⬛🟩🟩🟩
🟩🟩🟩🟩🟩
Wordle 294 3/6
View Nginx Conditional Upstream
upstream p1 {
server foo.com;
}
upstream p2 {
server bar.com;
}
# Select upstream based on the value of query parameter `product`
View keybase.md

Keybase proof

I hereby claim:

  • I am swvist on github.
  • I am swvist (https://keybase.io/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
nxvipin / num.py
Created Sep 24, 2012
Some numerical methods in python.
View num.py
"""
Bisection, Secant & Newton Raphson Method.
"""
import math
"""
* Variable Description:
*
* f : Given function
* f_ : Derivative of f
@nxvipin
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.
-module(factorial).
-define(PROC, 4).
-export([sub_factorial/2, sub_factorial/3]).
-export([calculate/1, calculate/2]).
sub_factorial(V, N, PID) ->
@nxvipin
nxvipin / imagegrid.py
Created May 14, 2012
Image grid generation similar to twilk.com
View imagegrid.py
#Copyright (c) 2012 Vipin Nair <swvist@gmail.com>
#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