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.
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 |
//! An HTTP server based on `hyper`. | |
//! | |
//! Run with: | |
//! | |
//! ``` | |
//! cargo run --example hyper-server | |
//! ``` | |
//! | |
//! Open in the browser any of these addresses: | |
//! |
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
# IPV4 | |
## github | |
207.97.227.245 www.github.com | |
203.208.39.22 webcache.googleusercontent.com | |
203.208.39.22 mail.google.com | |
203.208.39.22 reader.google.com | |
203.208.39.22 www.google.com.hk |
(function(doc, type) { | |
var head = doc.getElementsByTagName('head')[0], | |
frag = doc.createDocumentFragment(), | |
add = function(url, id) { | |
if (doc.getElementById(id)) {return;} | |
var node = doc.createElement(type); | |
node.href = url; | |
id && (node.id = id); | |
//node.rel = 'stylesheet'; | |
//node.type = 'text/css' |
#!/usr/bin/env python | |
import socket, time | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(('localhost', 6379)) | |
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) | |
time.sleep(2) | |
sock.sendall('PING\r\n') | |
print repr(sock.recv(4096)) | |
time.sleep(2) |
/** | |
* Function to fix native charCodeAt() | |
* | |
* Now, we can use fixedCharCodeAt("foo€", 3); for multibyte (non-bmp) chars too. | |
* | |
* @access public | |
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt | |
* @note If you hit a non-bmp surrogate, the function will return false | |
* @param str String Mixed string to get charcodes | |
* @param idx Integer Position of the char to get |
# ~/.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" |
//! An HTTP server based on `hyper`. | |
//! | |
//! Run with: | |
//! | |
//! ``` | |
//! cargo run --example hyper-server | |
//! ``` | |
//! | |
//! Using https://github.com/mcollina/autocannon | |
//! ``` |