http://api.themoviedb.org/3/movie/271110/reviews?api_key=05df3644ee3e75b407700ca976b07874
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
def merge_ranges(input_range_list): | |
prev_start_date = input_range_list[0][0] | |
prev_end_date = input_range_list[0][1] | |
result = [] | |
for i in range(1,len(input_range_list)): | |
current_start_date = input_range_list[i][0] | |
if current_start_date > prev_end_date: | |
result.append([prev_start_date,prev_end_date]) | |
prev_start_date = current_start_date | |
prev_end_date = input_range_list[i][1] |
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
var img_dom = document.getElementsByClassName('image-thumb-body'); | |
var links = []; | |
for (var i = 0; i< img_dom.length;i++){ | |
links.push(img_dom[i].src); | |
} | |
function downloadAll(urls) { | |
var link = document.createElement('a'); |
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
var img_dom = document.getElementsByClassName('image-thumb-body'); | |
var links = []; | |
for (var i = 0; i< img_dom.length;i++){ | |
links.push(img_dom[i].src); | |
} | |
function downloadAll(urls) { | |
var link = document.createElement('a'); |
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
ls = [-1, -2, 1, 3, 2] | |
maxx = ls[0]*ls[1]*ls[2] | |
for i in range(len(ls)-2): | |
prod=1 | |
for j in range(i,i+3): | |
prod*=ls[j] | |
if maxx < prod: | |
maxx = prod |
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
{"Menu": [{"Food": "Burger", "Price": 50}, {"Food": "Pizze", "Price": 300}], "RestaurantName": "Burger Place"} |
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
yasksrivastava at Yasks-MacBook-Pro in ~/learnyoureact | |
$ node | |
> function calc(){ | |
... this.a = 5; | |
... } | |
undefined | |
> calc() | |
undefined | |
> calc | |
[Function: calc] |
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 <map> | |
using namespace std; | |
struct Edge{ | |
char vertex1; | |
char vertex2; | |
int weight; |
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 <map> | |
using namespace std; | |
struct Edge{ | |
char vertex1; | |
char vertex2; | |
int weight; |
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 <map> | |
using namespace std; | |
struct Edge{ | |
char vertex1; | |
char vertex2; | |
int weight; |