Skip to content

Instantly share code, notes, and snippets.

View prashantgpt91's full-sized avatar
🎯
Focusing

Prashant Gupta prashantgpt91

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@prashantgpt91
prashantgpt91 / year_quakes_small.json
Last active May 9, 2017 19:05
Sample Earthquake data including details with magnitude | Latitude | Longitude
[{"time":1356999256890,"lat":51.975,"lng":-169.566,"mag":2.9},{"time":1357011132440,"lat":40.358,"lng":141.54,"mag":4.6},{"time":1357013314840,"lat":36.451,"lng":71.19,"mag":4.5},{"time":1357018546500,"lat":15.586,"lng":-98.458,"mag":4.5},{"time":1357024164090,"lat":52.655,"lng":-169.476,"mag":3.3},{"time":1357024345000,"lat":-30.265,"lng":-70.948,"mag":3},{"time":1357025750140,"lat":46.883,"lng":151.051,"mag":5.1},{"time":1357027849090,"lat":-48.804,"lng":106.441,"mag":4.4},{"time":1357028197890,"lat":18.346,"lng":118.922,"mag":4.7},{"time":1357029341060,"lat":29.263,"lng":51.201,"mag":4.1},{"time":1357029540090,"lat":2.638,"lng":91.398,"mag":4.1},{"time":1357029938540,"lat":-7.504,"lng":156.049,"mag":4.8},{"time":1357031956600,"lat":27.027,"lng":127.397,"mag":4.8},{"time":1357032080270,"lat":-0.197,"lng":98.576,"mag":4.4},{"time":1357040293940,"lat":34.36,"lng":-97.585,"mag":2.8},{"time":1357042884580,"lat":-26.895,"lng":-63.137,"mag":4.5},{"time":1357045691800,"lat":-7.11,"lng":130.368,"mag":4.4},{"time":1
This file has been truncated, but you can view the full file.
{"China":["Guangzhou","Fuzhou","Beijing","Baotou","Hohhot","Guiyang","Yinchuan","Nanjing","Changzhou","Chuzhou","Hefei","Jinan","Qingdao","Harbin","Zhaodong","Taiyuan","Xi'an","Xianyang","Shenzhen","Nanning","Zhengzhou","Xinxiang","Luohe","Luoyang","Chaoyang","Xingyi","Foshan","Haikou","Chengdu","Dongguan","Mingzhou","Chongqing","Zhuhai","Kunming","Wuhan","Xiling","Huizhou","Jiangmen","Shantou","Changxiacun","Zhongshan","Lhasa","Nanchang","Tianjin","Shanghai","Hebei","Shijiazhuang","Quanzhou","Putian","Xiamen","Chengyang","Zhangzhou","Sanming","Nanping","Baoding","Langfang","Yantai","Binzhou","Lanzhou","Yueqing","Zhongxin","Zhoushan","Hangzhou","Ningbo","Wenzhou","Changchun","Fuyang","Jieshou","Anqing","Wuhu","Shishi","Shishi","Weitang","Shenyang","Changsha","Yongjiawan","Lengshuijiang","Shijiazhuang","Xuchang","Suzhou","Xuzhou","Taizhou","Nanyang","Xinhua","Ürümqi","Yan'an Beilu","Baotao","Macao","Wuxi","Yangzhou","Baiyin","Tongren","Kunshan","Zhangjiagang","Jiangyin","Zhenjiang","Zhoukou","Anyang","Dalian
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int i,n;
cin>>n;
int a[n],dp[n];
class Solution {
public:
/**
* @param n: An integer
* @return: An integer
*/
int climbStairs(int n) {
// write your code here
if(n==1)
return 1;
class Solution {
public:
/**
* @param n: An integer
* @return: An integer
*/
int climbStairs(int n) {
// write your code here
int dp[n+1];
dp[0] = 0;
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from keras.applications.vgg16 import preprocess_input
from keras.applications.vgg16 import decode_predictions
from keras.applications.vgg16 import VGG16
# load the model
model = VGG16()
# load an image from file
image = load_img('2.jpg', target_size=(224, 224))
curl -w "@curl-format.txt" -o /dev/null -H "Content-Type: application/json" -X POST -d '{"data": "172.31.59.195 - - [13/Sep/2017:07:22:17 +0000] \"GET / HTTP/1.1\" 301 178 \"-\" \"Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)\""}' -s http://13.210.241.227/v1/parser
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
time_namelookup: 0.000
time_connect: 0.001
time_appconnect: 0.000
time_pretransfer: 0.001
time_redirect: 0.000
time_starttransfer: 0.079
----------
time_total: 0.079