- 平移
>>> line=shapely.LineString([(0,0.3), (0.3,0)])
>>> line.parallel_offset(0.13, side="right")
<LINESTRING (0.092 0.392, 0.392 0.092)>- 计算弧度radian,角度angle
origin=(0,0)>>> line=shapely.LineString([(0,0.3), (0.3,0)])
>>> line.parallel_offset(0.13, side="right")
<LINESTRING (0.092 0.392, 0.392 0.092)>origin=(0,0)via: LIS/lis-next#318
Set-VMVideo -VMName centos -HorizontalResolution 2560 -VerticalResolution 1440 -ResolutionType Single
Get-VMVideo centos| cmd /C "call set arg=%1% &&call set uri=%%arg:explorer://=%% && call echo %%uri%% && call C:\Windows\explorer.exe %%uri:/=\%%" |
use custom template
{{{files.0.content.html}}}
<script>
document.querySelectorAll('.step-details').forEach(item=>{
item.outerHTML=`<details>${item.innerHTML}</details>`
})
document.querySelectorAll('.step-summary').forEach(item=>{
item.outerHTML=`${item.innerHTML}`
| import sys | |
| from optparse import OptionParser | |
| from smb.SMBConnection import SMBConnection | |
| def main(argv): | |
| parser = OptionParser() | |
| parser.add_option("-u", "--username", | |
| help="windows username that will be used for authentication") | |
| parser.add_option("-p", "--password", |
| import binascii | |
| file = open('douyin_signature.csv', 'wb') | |
| bom = binascii.unhexlify(''.join("EF BB BF".split())) | |
| file.write(bom) | |
| file.write('unique_id,signature'.encode()) | |
| def get_signature(unique_id): | |
| import requests | |
| response = requests.get(f'https://www.iesdouyin.com/web/api/v2/user/info/?unique_id={unique_id}').json() | |
| return response['user_info']['signature'] |
| from manimlib.imports import * | |
| class Stop(Exception): | |
| def __init__(self, last_animations): | |
| self.animations = last_animations | |
| class Main(Scene): | |
| current_month = 1 |
| from manimlib.imports import * | |
| class Main(Scene): | |
| def construct(self): | |
| dot = Dot() | |
| line = Line() | |
| arrow = Arrow() | |
| circle = Circle() | |
| annulus = Annulus() |
| from manimlib.imports import * | |
| class HelloWorld(Scene): | |
| def construct(self): | |
| hello_text = TextMobject( | |
| "Hello World, from smite", | |
| tex_to_color_map={ | |
| "World": YELLOW, | |
| } | |
| ) |
| import json | |
| from mitmproxy import ctx | |
| from mitmproxy import command | |
| class Analysis: | |
| def __init__(self): | |
| self.info = {} |