Skip to content

Instantly share code, notes, and snippets.

View ronfe's full-sized avatar

JI Hongfei ronfe

  • Guanghe.tv
  • Beijing, China
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ronfe
ronfe / merge_101.ipynb
Created September 30, 2019 08:26
merge_101.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Project Kibana

Catalog

Shapes

  • A / No shape
  • B / Triangle
  • C / Quatro
  • D / Circle
  • E / Multiple
import requests
import os, json
def get_json(car_id):
url = 'https://apis.xin.com/vr/car_material'
body = {
"carid": car_id,
"cityid": "201"
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,MUN,6,7.4,新赛季的第一场比赛,曼联的队长袖标是由{博格巴}戴上了。
2,MUN,7,7.1,{桑切斯}的射门反弹到对方球员的手上,裁判判罚了点球。
3,LEI,18,5.9,今天的主裁判是[马里纳],这次是吹罚了莱斯特城右后卫{阿马泰}手球犯规。慢镜头我们可以看到,{阿马泰}的确是伸手来拦挡这个球了。
4,MUN,6,7.4,点球是交给了队长{博格巴}来处理,节奏比较缓慢,但还是准确命中,攻破了[小舒梅切尔]的十指关。
4,LEI,1,6.8,点球是交给了队长[博格巴]来处理,节奏比较缓慢,但还是准确命中,攻破了{小舒梅切尔}的十指关。
5,MUN,6,7.4,这是新赛季{博格巴}帮助球队所攻进的第一个进球。
6,MUN,6,7.4,家有{博格巴},发型有保障。如今当队长,千万别急躁。
7,LEI,8,6.1,这一次在禁区里边,{伊赫纳乔}这一次左脚的射门偏离了目标,但已经是越位在先了。
8,LEI,7,7.1,这次是{格雷}把球挑传给了[伊赫纳乔],[他]扛住对方的[林德洛夫]完成了一脚射门,可惜是越位在先。
8,LEI,8,6.1,这次是[格雷]把球挑传给了{伊赫纳乔},{他}扛住对方的[林德洛夫]完成了一脚射门,可惜是越位在先。
101,平行
111,垂直
197,外心
198,中点
195,N等分点
798,弧中点
199,动点
V100,点到直线的距离
import pexpect
import datetime
child = pexpect.spawn('proxmark3 /dev/cu.usbmodem1411')
child.expect('proxmark3> ')
child.sendline('hf mf rdbl 5 a 000000555555')
child.expect('proxmark3> ')
x = str(child.before)
x = ''.join(x.strip().split()[-17:-1])
@ronfe
ronfe / yahtzee.py
Last active September 7, 2018 00:10
yahtzee
class Yahtzee():
def keep(self, keeplist):
for i in range(5):
if i not in keeplist:
self.dices[i] = np.random.choice(range(1,7))
def __repr__(self):
return str(self.dices)
def __init__(self):
self.dices = np.random.choice(range(1,7), 5)