Skip to content

Instantly share code, notes, and snippets.

View nxvipin's full-sized avatar
👨‍💻

Vipin Nair nxvipin

👨‍💻
  • Mountain View, CA
View GitHub Profile
/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
@nxvipin
nxvipin / Wordle.md
Last active April 13, 2022 07:21
Wordle
Wordle 298 3/6

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

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 September 24, 2012 11:38
Some numerical methods in python.
"""
Bisection, Secant & Newton Raphson Method.
"""
import math
"""
* Variable Description:
*
* f : Given function
* f_ : Derivative of f
@nxvipin
nxvipin / factorial.erl
Created September 13, 2012 15:37
Naive Parallel Factorial
% 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 08:45
Image grid generation similar to twilk.com
#Copyright (c) 2012 Vipin Nair <[email protected]>
#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