- 代码复制
- 版本搜索
- 多版本搜索
- 实时搜索
- 快速更新索引
- 文档站点 TOC
- 页面 TOC
- MarkdownLint
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
using UnityEngine; | |
using Math = System.Math; | |
public static class NearestPointTo | |
{ | |
/// <summary> | |
/// Find the closest point on an ellipse centered on the origin. | |
/// </summary> | |
/// Credit: | |
/// 2015-09 Original Paper by Luc. Maisonobe https://www.spaceroots.org/documents/distance/distance-to-ellipse.pdf |
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
- Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
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
//! An HTTP server based on `hyper`. | |
//! | |
//! Run with: | |
//! | |
//! ``` | |
//! cargo run --example hyper-server | |
//! ``` | |
//! | |
//! Open in the browser any of these addresses: | |
//! |
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
//! An HTTP server based on `hyper`. | |
//! | |
//! Run with: | |
//! | |
//! ``` | |
//! cargo run --example hyper-server | |
//! ``` | |
//! | |
//! Using https://github.com/mcollina/autocannon | |
//! ``` |
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
#!/usr/bin/env fish | |
function build | |
set -l mode $argv[1]; set -q $mode ; and set mode Debug | |
xcodebuild -configuration $mode > /dev/null | |
end | |
function package | |
set -l mode $argv[1] | |
set -l repo $argv[2] |
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
# ~/.profile | |
export HTTP_PROXY=http://127.0.0.1:9090 | |
export HTTPS_PROXY=http://127.0.0.1:9090 | |
export PATH="$HOME/.cargo/bin:$PATH" |
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
diff --git a/ios-deploy.xcodeproj/project.pbxproj b/ios-deploy.xcodeproj/project.pbxproj | |
index c58f9d8..6c46afe 100644 | |
--- a/ios-deploy.xcodeproj/project.pbxproj | |
+++ b/ios-deploy.xcodeproj/project.pbxproj | |
@@ -317,7 +317,7 @@ | |
); | |
runOnlyForDeploymentPostprocessing = 0; | |
shellPath = /bin/sh; | |
- shellScript = "echo \"\\\"# AUTO-GENERATED - DO NOT MODIFY\\n\\\"\" > src/ios-deploy/lldb.py.h\nawk '{ print \"\\\"\"$0\"\\\\n\\\"\"}' src/scripts/lldb.py >> src/ios-deploy/lldb.py.h"; | |
+ shellScript = "awk '{ print \"\\\"\"$0\"\\\\n\\\"\"}' src/scripts/lldb.py > src/ios-deploy/lldb.py.h"; |
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
https://battle.net/download/getInstallerForGame?os=MAC&version=LIVE&gameProgram=WARCRAFT_3 | |
https://battle.net/download/getInstallerForGame?os=mac&locale=enUS&version=PTR&gameProgram=WARCRAFT_3 |
rsync (Everyone seems to like -z, but it is much slower for me)
- a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
- H: preserves hard-links
- A: preserves ACLs
NewerOlder