Skip to content

Instantly share code, notes, and snippets.

View swapagarwal's full-sized avatar
🎯
Focusing

Swapnil Agarwal swapagarwal

🎯
Focusing
View GitHub Profile
### Keybase proof
I hereby claim:
* I am swapagarwal on github.
* I am swapagarwal (https://keybase.io/swapagarwal) on keybase.
* I have a public key ASADLF0jw6l5nnofd5URmLlkcgf4sgV2EpFpALzQtvmR4wo
To claim this, I am signing this object:
#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
swapagarwal / HideFacebookNewsFeed
Created October 6, 2013 08:34
Installation Link : http://userscripts.org/scripts/show/179316 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 …
// ==UserScript==
// @name HideFacebookNewsFeed
// @description Saves you time by hiding Facebook news feed.
// @include *://*.facebook.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// ==/UserScript==
/*
* Author : Swapnil Agarwal
*/