This file contains hidden or 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
| # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| import hashlib | |
| import os | |
| import sys | |
| # when pylint runs the third_party module is the one from depot_tools | |
| # pylint: disable=E0611 | |
| from third_party import fancy_urllib |
This file contains hidden or 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 | |
| set -e | |
| [[ $UID != 0 ]] && exec sudo -E "$(readlink -f "$0")" "$@" | |
| up() { | |
| # setup wg0 | |
| ip link add dev wg0 type wireguard | |
| ip addr add dev wg0 10.0.200.13/32 | |
| wg setconf wg0 /etc/wireguard/wg0.conf |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Curve</title> | |
| <script defer> | |
| //弧长c 拱高h - 半径r 弦长l | |
| // 圆心角a | |
| function calcR1(h, l) { | |
| const r = ( Math.pow(h,2) + Math.pow((l/2),2) )/ 2/h; | |
| const a = 2 * Math.asin( l / 2 / h ); |
OlderNewer