Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Swapnil Agarwal swapagarwal

🎯
Focusing
View GitHub Profile
View gist:ffde903db2e92a9fa6d6e81dc211a77d
### 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:
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;
View linregr.py
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 Oct 6, 2013
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 …
View HideFacebookNewsFeed
// ==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
*/