Skip to content

Instantly share code, notes, and snippets.


Swapnil Agarwal swapagarwal

View GitHub Profile
View gist:ffde903db2e92a9fa6d6e81dc211a77d
### Keybase proof
I hereby claim:
* I am swapagarwal on github.
* I am swapagarwal ( on keybase.
* I have a public key ASADLF0jw6l5nnofd5URmLlkcgf4sgV2EpFpALzQtvmR4wo
To claim this, I am signing this object:
View bigInt_C++.cpp
#include <vector>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
typedef long long LL;
// base and base_digits must be consistent
const int base = 1000000000;
const int base_digits = 9;
from numpy import loadtxt, zeros, ones, array, linspace, logspace
from pylab import scatter, show, title, xlabel, ylabel, plot, contour
#Evaluate the linear regression
def compute_cost(X, y, theta):
Comput cost for linear regression
#Number of training samples
swapagarwal / HideFacebookNewsFeed
Created October 6, 2013 08:34
Installation Link : Kills the news feed and replaces it with a message reminding you not to get distracted. That's it. You can still check your messages and notifications, post status updates, and do everything you could do before. You just won't get distracting news feed posts anymore. No more wasting …
View HideFacebookNewsFeed
// ==UserScript==
// @name HideFacebookNewsFeed
// @description Saves you time by hiding Facebook news feed.
// @include *://**
// @require
// ==/UserScript==
* Author : Swapnil Agarwal