Skip to content

Instantly share code, notes, and snippets.

View Raoul1996's full-sized avatar
🎯
Focusing

nil Raoul1996

🎯
Focusing
View GitHub Profile
if __name__ == '__main__':
import requests
res = []
url = []
for v in url:
resp = requests.get(v).json()
page_list = resp.get("d").get("entrylist")
res.extend([{"url":page.get("originalUrl"),"title":page.get("title")} for page in page_list])
lines= ['['+v.get("title")+']('+v.get("url")+")\n\n"for v in res[::-1]]
@Raoul1996
Raoul1996 / keybase.md
Last active September 11, 2019 11:01

Keybase proof

I hereby claim:

  • I am raoul1996 on github.
  • I am 0x7e3 (https://keybase.io/0x7e3) on keybase.
  • I have a public key whose fingerprint is 55EB E4EF 6E99 9BF9 0009 0B6F F7FA BEFF 299F DE86

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>loading</title>
<style>
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg)
}
@Raoul1996
Raoul1996 / tmux-cheatsheet.markdown
Created January 13, 2019 13:13 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@Raoul1996
Raoul1996 / README-Template.md
Created December 14, 2018 09:26 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

.clearfix:after {
content:”\200B”;
display:block;
height:0;
clear:both;
}
.clearfix { *zoom:1; } 照顾IE6,IE7就可以了
@Raoul1996
Raoul1996 / jsonp.js
Created March 14, 2018 09:51
字节跳动二面手写 jsonp
var jsonp=function(url,callback){
var script =document.createElement('script');
script.src=url;
document.head.appendChild(script);
var funName=Math.random.toString(16).slice(3)
window[funName]=function(data){
callback(data);
delete window[funName];
document.head.removeChild(script);
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/vue/2.1.3/vue.js"></script>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
{
"code": 0,
"data": [
[
[
null,
" 排 班 信 息 表"
],
[
"统计日期:",
class UsersController {
static async index(ctx) {
ctx.body = {
"msg": "SUCCESS",
"data": {
"from": "2017-11-01",
"to": "2017-11-10",
"between": 10,
"data": [{"name": "程艳", "requireDayNum": 8, "actualDayNum": 8, "grade": 1}, {
"name": "翁泉源",