A host-only network interface is created virtually in software which appears to the host system.
This interface can be attached to one or more VMs, allowing connectivity between those VMs and communication between the host system and VMs.
A host-only network interface is created virtually in software which appears to the host system.
This interface can be attached to one or more VMs, allowing connectivity between those VMs and communication between the host system and VMs.
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
-- The meta-circular interpreter from section 5 of Reynolds's Definitional | |
-- Interpreters for Higher Order Programming Languages | |
-- (http://www.cs.uml.edu/~giam/91.531/Textbooks/definterp.pdf) | |
data EXP | |
= CONST Const | |
| VAR Var | |
| APPL Appl | |
| LAMBDA Lambda | |
| COND Cond |
Priority Queues | |
═══════════════ | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
INSERT DEL-MIN MIN DEC-KEY DELETE MERGE | |
binary log n log n 1 log n log n n | |
binomial 1 log n 1 log n log n log n | |
Fibonacci 1 log n† 1 1† log n† log n | |
Pairing 1† log n† 1† 1† log n† 1† | |
Brodal-Okasaki 1 log n 1 1 log n 1 |
[package] | |
name = "rust-async-qotd" | |
version = "0.1.0" | |
authors = ["Gökberk Yaltıraklı <[email protected]>"] | |
[dependencies] | |
tokio = { git = "https://github.com/tokio-rs/tokio" } | |
rand = "0.3" |
package main | |
import ( | |
"net/http" | |
) | |
func main() { | |
go func() { | |
http.ListenAndServe(":8001", &fooHandler{}) | |
}() |
-- | |
-- how to populate locations table on db2 from wineries table on db1 | |
-- | |
-- SELECT "INSERT INTO locations( name, website, address, address2, city, state, zip, country, phone, created_at, updated_at, latitude, longitude, email, fax, winery_id ) VALUES (" || name ||", " || website || ", " || address || ", null , null, null, null, null, " || phone || ", " || created_at || ", " || modified_at || ",null, null, " || email || ", " || fax || ", " || winery_id || "); " FROM wineries | |
SELECT 'INSERT INTO locations( name, winery_id ) VALUES ("' || name || '", "' || winery_id || '"); ' FROM wineries |
params = ActionController::Parameters.new({ | |
item: { | |
name: 'James', | |
age: 26, | |
role: 'God' | |
} | |
}) |
;; OSX - Update the PATH to match that from the shell | |
(defun set-exec-path-from-shell-PATH () | |
(let ((path-from-shell | |
(replace-regexp-in-string "[[:space:]\n]*$" "" | |
(shell-command-to-string "$SHELL -l -c 'echo $PATH'")))) | |
(setenv "PATH" path-from-shell) | |
(setq exec-path (split-string path-from-shell path-separator)))) | |
(when (equal system-type 'darwin) (set-exec-path-from-shell-PATH)) | |
;; Go mode |