A Pen by ZeronoFreya on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def initBM(self, eval_obj): | |
self.backup = eval_obj.name | |
depgraph = bpy.context.evaluated_depsgraph_get() | |
if eval_obj.mode == "EDIT": | |
bm = bmesh.from_edit_mesh(eval_obj.data) | |
else: | |
bm = bmesh.new() | |
bm.from_object(eval_obj, depgraph) | |
# bm.from_mesh(me) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# 参考 https://blog.csdn.net/qq_45427038/article/details/100139330 | |
# 获取离散点的拟合平面,并以离散点中心(位于拟合平面上)为中心,绘制正三角形,中心到各顶点距离为1 | |
# 最少需要3个顶点 | |
size = 10 | |
# 创建函数,用于生成不同属于一个平面的10个离散点 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function addSudo() { | |
sudoPwd=/etc/sudoers | |
chmod u+w $sudoPwd | |
if grep $1 $sudoPwd; then | |
echo "User $1 already have sudo!" | |
else | |
sed -i '/root[\s\t]*ALL=(ALL)/a\'${1}' ALL=(ALL) ALL' $sudoPwd \ | |
&& sed -i '/NOPASSWD/a\'${1}' ALL=(ALL) NOPASSWD: ALL' $sudoPwd \ | |
&& echo "User $1 add sudo success!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
shadowsocks: | |
container_name: shadowsocks | |
image: oddrationale/docker-shadowsocks | |
ports: | |
- "1984:1984" | |
restart: always | |
command: -s 0.0.0.0 -p 1984 -k 密码 -m aes-256-cfb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kill Baidu AD | |
// @name:zh-CN 百度广告(首尾推广及右侧广告)清理 | |
// @namespace hoothin | |
// @version 0.86 | |
// @description Just Kill Baidu AD | |
// @description:zh-CN 彻底清理百度搜索(www.baidu.com)结果首尾的推广广告、二次顽固广告与右侧广告,并防止反复 | |
// @author hoothin | |
// @include http*://www.baidu.com/* | |
// @include http*://m.baidu.com/* |