A Runscope Community Project — Learn more.

Bin URL


Make a request to get started. After making a request, refresh this page to see it.

cURL
curl -X POST -d "fizz=buzz" http://requestb.in/y0qofsy0
Python (with Requests)
import requests, time
r = requests.post('http://requestb.in/y0qofsy0', data={"ts":time.time()})
print r.status_code
print r.content
Node.js (with request)
var request = require('request');
var url ='http://requestb.in/y0qofsy0'
request(url, function (error, response, body) {
if (!error) {
console.log(body);
}
});
Ruby
require 'open-uri'
result = open('http://requestb.in/y0qofsy0')
result.lines { |f| f.each_line {|line| p line} }
C# / .NET (4.5+)
using System;
using System.Net.Http;
using System.Threading.Tasks; namespace RequestBinExample
{
class Program
{
static void Main(string[] args)
{
var task = MakeRequest();
task.Wait(); var response = task.Result;
var body = response.Content.ReadAsStringAsync().Result;
Console.WriteLine(body);
} private static async Task<HttpResponseMessage> MakeRequest()
{
var httpClient = new HttpClient();
return await httpClient.GetAsync(new Uri("http://requestb.in/y0qofsy0"));
}
}
}
Java
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;
import org.apache.commons.httpclient.params.HttpMethodParams; import java.io.*; public class RequestBinTutorial {
public static void main(String[] args) {
HttpClient client = new HttpClient();
GetMethod method = new GetMethod("http://requestb.in/y0qofsy0");
try {
int statusCode = client.executeMethod(method);
byte[] responseBody = method.getResponseBody();
System.out.println(new String(responseBody));
} catch (Exception e) {
System.err.println("Fatal error: " + e.getMessage());
e.printStackTrace();
} finally {
method.releaseConnection();
}
}
}
PHP
<?php
$result = file_get_contents('http://requestb.in/y0qofsy0');
echo $result;
?>

Limits

This bin will keep the last 20 requests made to it and remain available for 48 hours after it was created. However, data might be cleared at any time, so treat bins as highly ephemeral.

Need more?

Runscope request captures give you RequestBins with live updates, permanent URLs, file handling and much more. Sign up free.

RequestBin is brought to you by Runscope.

Global API Monitoring

Check uptime and performance of your APIs from around the world or behind your firewall. Get notified of downtime before your customers complain.

Functional API Testing

Verify your APIs are working correctly. Create functional tests to validate the structure and content of your most critical API workflows.

Well-connected

Runscope integrates with the tools you're already using like Slack, DataDog, Splunk, HipChat, PagerDuty, New Relic Insights, Swagger, AWS API Gateway, Jenkins and more.

Monitoring You Can Trust

Trusted by over 80,000 developers, Runscope is used by 1,000s of companies around the world to detect and prevent costly API downtime.

© 2017 Runscope Inc. - Privacy Policy - Terms of Service

A Runscope Community Project — Learn more.

http://requestb.in
POST
/y0qofsy0
application/x-www-form-urlencoded
9 bytes
21s ago

From 1.180.212.187, 108.162.215.245

FORM/POST PARAMETERS

fizz: buzz

HEADERS

X-Request-Id: b3b42d3a-cf2a-47dc-aade-341eb717613a

Connect-Time: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Total-Route-Time: 0

Content-Type: application/x-www-form-urlencoded

Cf-Ray: 3296551ef2462246-LAX

Connection: close

User-Agent: curl/7.49.1

Via: 1.1 vegur

Accept: */*

Content-Length: 9

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
fizz=buzz
http://requestb.in
POST
/y0qofsy0
application/x-www-form-urlencoded
9 bytes
29s ago

From 1.180.212.187, 108.162.215.249

FORM/POST PARAMETERS

fizz: buzz

HEADERS

X-Request-Id: 7d83b05b-d84a-45fa-931e-21c9e63b7b84

Total-Route-Time: 0

Cf-Ipcountry: CN

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 0

Content-Type: application/x-www-form-urlencoded

Cf-Ray: 329654ea40165372-LAX

Connection: close

Via: 1.1 vegur

Accept: */*

Content-Length: 9

User-Agent: curl/7.49.1

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
fizz=buzz
http://requestb.in
GET
/y0qofsy0

0 bytes
43s ago

From 1.180.212.187, 108.162.215.248

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 23573bd4-6478-4398-a834-a230118c007c

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Connection: close

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 32965490d23a0d55-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D8WA.XGIM1dVMDdkEyH7g8e16lenWSs0;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
GET
/y0qofsy0

0 bytes
1m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: cf395b91-0980-481e-81e5-9c4527a241e5

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 2

Cache-Control: max-age=0

Connection: close

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 3296536600752306-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D8Vg.ESyPrOfl-hqw-_AoGx0JPgJGR4o;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
GET
/y0qofsy0

0 bytes
1m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 0021e097-c186-4281-8ee3-5900130f34d8

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

Cache-Control: max-age=0

Connection: close

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 32965353d2512306-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D8Uw.7zz27D9M8GpTcwE3q8gzkMqvoDY;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
GET
/y0qofsy0

0 bytes
1m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 97560799-5146-4225-8cbc-5e9406177c6c

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Ray: 3296534aa3a02306-LAX

Connect-Time: 0

Cache-Control: max-age=0

Connection: close

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Via: 1.1 vegur

Cf-Visitor: {"scheme":"http"}

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D8UQ.wXieMIAiuYaDWVfRKosSmVh2WiU;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
GET
/y0qofsy0

0 bytes
1m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 2c4db87d-e676-4db7-be81-678500a0538a

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

Cache-Control: max-age=0

Connection: close

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 3296533a674c2306-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D8Tg.s8DO677wWFDRaqBq2D8DS5gtoFM;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
GET
/y0qofsy0

0 bytes
1m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: b7d51c21-760a-485b-946d-404f7d8d4518

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

Cache-Control: max-age=0

Connection: close

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 32965326e0e12306-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3D4XQ.gfhMONEVbHdYYNYIZN4Ytp4qGks;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
POST
/y0qofsy0
application/json
629 bytes
2m ago

From 52.204.105.43, 162.158.78.183

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 4e22a01f-a268-4969-aaa4-4dd429d3858d

Total-Route-Time: 0

X-Newrelic-Id: UQUFVFJUGwUJVlhaBgY=

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 0

Content-Type: application/json

Cf-Ipcountry: US

Accept: */*

Via: 1.1 vegur

Connection: close

X-Newrelic-Transaction: PxQHUVUACVUAVlhaBwZWXwAIFB8EBw8RVU4aUggLVwNVVQtYCVEEA11SDkNKQV1SVVwHAAECFTs=

Cf-Ray: 329651c1c273087a-IAD

Content-Length: 629

User-Agent: python-requests/2.11.1

Cf-Connecting-Ip: 52.204.105.43

RAW BODY
{"push_data": {"pushed_at": 1485793940, "images": [], "tag": "helloworld2", "pusher": "alexyuyu"}, "callback_url": "https://registry.hub.docker.com/u/alexyuyu/webapp/hook/2if02a0e4iedf4fchf1h5fdfii4c4j00f/", "repository": {"status": "Active", "description": "webapp:  python2.7+flask", "is_trusted": false, "full_description": "webapp:  python2.7+flask:  hello world", "repo_url": "https://hub.docker.com/r/alexyuyu/webapp", "owner": "alexyuyu", "is_official": false, "is_private": false, "name": "webapp", "namespace": "alexyuyu", "star_count": 0, "comment_count": 0, "date_created": 1485709674, "repo_name": "alexyuyu/webapp"}}
http://requestb.in
GET
/y0qofsy0

0 bytes
18m ago

From 1.180.212.187, 108.162.215.249

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: bd835fdf-9fea-49ab-aa6d-2239e1c5f7a1

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 0

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Connection: close

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 32963a86a73f20ba-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3Dw9A.uMw_h5cnuRRdN02CrWEv1fNS6Sw;
_ga=GA1.2.2049448936.1485714017

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
POST
/y0qofsy0
application/x-www-form-urlencoded
16 bytes
46m ago

From 1.180.212.187, 108.162.215.246

FORM/POST PARAMETERS

ts: 1485791318.69

HEADERS

X-Request-Id: 3cb122a9-533c-4bb5-8e3a-cd5c9208433c

Total-Route-Time: 0

Cf-Ipcountry: CN

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

Content-Type: application/x-www-form-urlencoded

Cf-Ray: 329611c0272a5420-LAX

Connection: close

Via: 1.1 vegur

Accept: */*

Content-Length: 16

User-Agent: python-requests/2.13.0

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
ts=1485791318.69
http://requestb.in
GET
/y0qofsy0

0 bytes
50m ago

From 1.180.212.187, 108.162.215.249

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: a194a521-cac8-4824-9132-a5334fdd023f

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Total-Route-Time: 0

Upgrade-Insecure-Requests: 1

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 1

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

Connection: close

Via: 1.1 vegur

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cf-Ray: 32960c3867f422d0-LAX

Cookie:
__cfduid=d104067c702039b2d98328d1682d0371f1485714014;
session=eyJyZWNlbnQiOlsieTBxb2ZzeTAiXX0.C3Dvuw.jef4RRjRNAz6yTexIyBZZUk8YAc;
_ga=GA1.2.2049448936.1485714017; _gat=1

Cf-Ipcountry: CN

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
None
http://requestb.in
POST
/y0qofsy0
application/x-www-form-urlencoded
9 bytes
50m ago

From 1.180.212.187, 108.162.215.249

FORM/POST PARAMETERS

fizz: buzz

HEADERS

X-Request-Id: 91076775-eff2-4bc7-99df-20ccd8de5bc0

Total-Route-Time: 0

Cf-Ipcountry: CN

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 0

Content-Type: application/x-www-form-urlencoded

Cf-Ray: 32960b7434392240-LAX

Connection: close

Via: 1.1 vegur

Accept: */*

Content-Length: 9

User-Agent: curl/7.49.1

Cf-Connecting-Ip: 1.180.212.187

RAW BODY
fizz=buzz

Limits

This bin will keep the last 20 requests made to it and remain available for 48 hours after it was created. However, data might be cleared at any time, so treat bins as highly ephemeral.

Need more?

Runscope request captures give you RequestBins with live updates, permanent URLs, file handling and much more. Sign up free.

RequestBin is brought to you by Runscope.

Global API Monitoring

Check uptime and performance of your APIs from around the world or behind your firewall. Get notified of downtime before your customers complain.

Functional API Testing

Verify your APIs are working correctly. Create functional tests to validate the structure and content of your most critical API workflows.

Well-connected

Runscope integrates with the tools you're already using like Slack, DataDog, Splunk, HipChat, PagerDuty, New Relic Insights, Swagger, AWS API Gateway, Jenkins and more.

Monitoring You Can Trust

Trusted by over 80,000 developers, Runscope is used by 1,000s of companies around the world to detect and prevent costly API downtime.

© 2017 Runscope Inc. - Privacy Policy - Terms of Service

http://requestb.in
POST
/y0qofsy0
application/json
629 bytes
2m ago

From 52.204.105.43, 162.158.78.183

FORM/POST PARAMETERS

None

HEADERS

X-Request-Id: 4e22a01f-a268-4969-aaa4-4dd429d3858d

Total-Route-Time: 0

X-Newrelic-Id: UQUFVFJUGwUJVlhaBgY=

Host: requestb.in

Accept-Encoding: gzip

Cf-Visitor: {"scheme":"http"}

Connect-Time: 0

Content-Type: application/json

Cf-Ipcountry: US

Accept: */*

Via: 1.1 vegur

Connection: close

X-Newrelic-Transaction: PxQHUVUACVUAVlhaBwZWXwAIFB8EBw8RVU4aUggLVwNVVQtYCVEEA11SDkNKQV1SVVwHAAECFTs=

Cf-Ray: 329651c1c273087a-IAD

Content-Length: 629

User-Agent: python-requests/2.11.1

Cf-Connecting-Ip: 52.204.105.43

RAW BODY
{"push_data": {"pushed_at": 1485793940, "images": [], "tag": "helloworld2", "pusher": "alexyuyu"}, "callback_url": "https://registry.hub.docker.com/u/alexyuyu/webapp/hook/2if02a0e4iedf4fchf1h5fdfii4c4j00f/", "repository": {"status": "Active", "description": "webapp:  python2.7+flask", "is_trusted": false, "full_description": "webapp:  python2.7+flask:  hello world", "repo_url": "https://hub.docker.com/r/alexyuyu/webapp", "owner": "alexyuyu", "is_official": false, "is_private": false, "name": "webapp", "namespace": "alexyuyu", "star_count": 0, "comment_count": 0, "date_created": 1485709674, "repo_name": "alexyuyu/webapp"}}

webhook: requestbin的更多相关文章

  1. 什么是webhook

    什么是webhook 翻译,原文地址:https://sendgrid.com/blog/webhook-vs-api-whats-difference/ 一.概述 Webhook是一个API概念,并 ...

  2. 如何让Targetprocess 中 webhook 推送comment 到指定的项目

    Targetprocess 作为Agile管理工具非常好使.我们用TP + bearychat来做任务的沟通. TP目前是不支持comment push到指定的项目,因为其带出的字段中没有相关项目.但 ...

  3. 在windows下,git webhook使用php拉取代码的学习总结

    原来上传代码到测试服务器都是用ftp,我觉得这种方式很低效,而且容易出错,比如忘记传某个修改过文件. 现在项目的代码放在了git@osc上了,想使用他webhook,每当有push的时候,git@os ...

  4. What is Webhook ( Introduction to Webhook )

    A webhook in web development is a method of augmenting or altering the behavior of a web page, or we ...

  5. jenkins coding.net webhook plugin

    开源地址: https://github.com/yuzd/coding.net =========================================================== ...

  6. jenkins+webhook+docker做持续集成

    简介:我们现在都流行把项目封装成docker的镜像,不过实际用的时候就会发现很麻烦,我们每次更改代码了以后都要打包成docker容器 ,事实证明项目比较多的时候真的会让人崩溃,我这边用spring c ...

  7. Gitlab使用Webhook实现Push代码自动部署

    1.Jenkins 安装完成以后,首先我们在Jenkins中需要安装一下,Gitlab Hook Plugin 插件: 2.插件安装完成我们创建任务,在任务重构建触发器下获取回调URL: 注意: 注意 ...

  8. 钉钉 机器人接入 自定义webhook

    钉钉出了个webhook机器人接入,自定义的机器人支持随时post消息到群里: 昨天就尝试着用C#写了个: 一开始用python写,但是莫名的提示  {"errmsg":" ...

  9. gitlab与jenkins的自动化部署(通过webhook与ansilble)

    gitlab与jenkins的自动化部署(通过webhook与ansilble) 1.部署介绍 gitlab服务器:192.168.1.49:80jenkins服务器:192.168.1.49:818 ...

随机推荐

  1. DAY17、常用模块

    一.time模块 1.时间戳(timestamp):time.time()     #可以作为数据的唯一标识   是相对于1970-1-1-0:0:0时间插值 2.延迟线程的运行:time.sleep ...

  2. c语言提高第二天

    一.指针强化1.指针也是一种数据类型,指针变量也是一种变量,和int a本质是一样的 1)指针变量也是一种变量,也有空间,32位程序大小为4个字节 int *p = 0x1122; 2)*操作符,*相 ...

  3. GC Tools

    GC Tools There are multiple ways to enable the GC log: specifying either of the flags -verbose:gc or ...

  4. Python——日志模块(logging)

    一.日志说明 日志是跟踪软件运行时所发生的事件的一种方法.软件开发者在代码中调用日志函数,表明发生了特定的事件.事件由描述性消息描述,该描述性消息可以可选地包含可变数据(即,对于事件的每次出现都潜在地 ...

  5. 「CF1154F」Shovels Shop【背包DP】

    题目链接 [洛谷传送门] 题解 非常简单的背包. \(f[i]\)表示购买\(i\)个物品所需要最少的花费. 不考虑免费的限制条件,那么一定是选择前\(k\)个双鞋子. 那么加入免费的条件,那么还是要 ...

  6. Java【第四篇】基本语法之--循环

    循环语句功能 在循环条件满足的情况下,反复执行特定代码 循环语句的四个组成部分 初始化部分(init_statement)循环条件部分(test_exp) 循环体部分(body_statement) ...

  7. 【洛谷P3605】晋升者计数

    题目大意:给定一棵 N 个点的树,点有点权,求对于每个点来说,以该点为根的子树内比该点点权小的点的个数. 题解:考虑对于每个点开一棵权值线段树.递归过程中,将子树的信息合并到父节点上,统计答案后,再将 ...

  8. django系列6:模板

    当前编辑的django页面,是默认的UI,如果想要改变页面展示,就需要用到模板. 模板的原理是这样的: 实际步骤: 1.编辑views.py,将template和content做好映射 from dj ...

  9. 解决ssh登录慢的问题

    修改文件/etc/ssh/sshd_config  : UseDNS no GSSAPIAuthentication no 重启服务 service sshd restart

  10. 降维【PCA & SVD】

    PCA(principle component analysis)主成分分析 理论依据 最大方差理论 最小平方误差理论 一.最大方差理论(白面机器学习) 对一个矩阵进行降维,我们希望降维之后的每一维数 ...