This file contains hidden or 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
%pyspark | |
from pyspark.mllib.regression import LabeledPoint | |
import numpy as np | |
from pyspark.sql import Row | |
from pyspark.sql import functions as sql_functions | |
from pyspark.sql.types import * | |
import matplotlib.pyplot as plt | |
import matplotlib.cm as cm | |
from pyspark.mllib.recommendation import * | |
import random |
This file contains hidden or 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
%pyspark | |
from pyspark.mllib.regression import LabeledPoint | |
import numpy as np | |
from pyspark.sql import Row | |
from pyspark.sql import functions as sql_functions | |
from pyspark.sql.types import * | |
import matplotlib.pyplot as plt | |
import matplotlib.cm as cm | |
This file contains hidden or 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
import java.io.File | |
import scala.io.Source | |
import org.apache.log4j.Logger | |
import org.apache.log4j.Level | |
import org.apache.spark.SparkConf | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.sql.SQLContext |
This file contains hidden or 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
[Grizzly Bear,40.65507,-73.94888,0.0] | |
[Band Of Horses,40.65507,-73.94888,0.0] | |
[Converge,40.65507,-73.94888,0.0] | |
[Eddie Money,40.65507,-73.94888,0.0] | |
[Matisyahu,40.65507,-73.94888,0.0] | |
[Margaret Becker,40.65507,-73.94888,0.0] | |
[Lady GaGa,40.71455,-74.00712,5.11841538158843] | |
[Wayne Kramer,40.71455,-74.00712,5.11841538158843] | |
[The Ronettes,40.71455,-74.00712,5.11841538158843] | |
[The Strokes,40.71455,-74.00712,5.11841538158843] |
This file contains hidden or 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
site:linkedin.com (inurl:in OR inurl:pub) -inurl:dir -inurl:job -inurl:jobs -inurl:jobs2 -intitle:profiles -inurl:groups "University Recruiter at Microsoft" |
This file contains hidden or 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
docker run --hostname=quickstart.cloudera --privileged=true -t -i -p 8080:80 -p 8888:8888 -p 50000-50100:50000-50100 -P [YOUR_IMAGE_HASH] /usr/bin/docker-quickstart |
This file contains hidden or 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 <cmath> | |
#include <algorithm> | |
#include <limits> | |
#include <vector> | |
#include <bitset> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <cstring> | |
#include <time.h> |
This file contains hidden or 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
Titanic -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mkv|mp4|avi) | |
hey jude -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp3|wma|aac|flac) |
This file contains hidden or 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
import urllib | |
import requests | |
import bs4 as BS | |
h={'User-Agent': 'Mozilla/5.0'} | |
url='http://reddit.com/r/pics' | |
r=requests.get(url, headers=h) | |
soup=BS.BeautifulSoup(r.text) | |
imgs=soup.select('a.thumbnail.may-blank') | |
links = [i['href'] for i in imgs] |
This file contains hidden or 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<queue> | |
#define pp pair<int,int> | |
using namespace std; | |
class Prioritize | |
{ | |
public: | |
int operator() ( const pair<int, int>& p1, const pair<int, int>& p2 ) |
NewerOlder