- embeddings.js: word2vec in Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Linear Regression From First Principles | |
Author: Gaurav Menghani ([email protected]) | |
''' | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def linear_sum(X, W, b): | |
return X.dot(W) + b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
struct Node { | |
int val; | |
Node *next; | |
}; | |
void print(Node* n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Slope { | |
int n, d; | |
Slope(int nn, int dd) { | |
int g = gcd(abs(nn), abs(dd)); | |
// cout << "gcd of " << nn << ", " << dd << " is: " << g << endl; | |
n = (g > 0 ? nn/g : nn); | |
d = (g > 0 ? dd/g : dd); | |
} | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <iostream> | |
#include <cassert> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <algorithm> | |
#include <utility> | |
#include <cstdio> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cassert> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <algorithm> | |
#include <utility> | |
#include <cstdio> | |
#include <limits> | |
#include <bitset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cassert> | |
#include <set> | |
#include <map> | |
#include <vector> | |
#include <algorithm> | |
#include <utility> | |
#include <cstdio> | |
#include <limits> | |
#include <bitset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cassert> | |
using namespace std; | |
struct Edge { | |
int src, dst; | |
int w; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdio> | |
#include <vector> | |
#include <event2/event.h> | |
#include <glog/logging.h> | |
#include <cassert> | |
#include <string> | |
#include <cstring> | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delivery/Logistics: | |
Instacart | |
Munchery | |
Lyft | |
Sidecar | |
Uber | |
Thumbtack | |
DoorDash | |
Grubhub | |
Seamless |