First check the python downloads page to view the current releases
$ open https://www.python.org/downloads/
This produces the list of ALL available pyenv versions
$ pyenv install --list
...
pypy3-dev
First check the python downloads page to view the current releases
$ open https://www.python.org/downloads/
This produces the list of ALL available pyenv versions
$ pyenv install --list
...
pypy3-dev
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Open Weather API</title> | |
<style type="text/css"> | |
pre { | |
background-color: #f1f1f1; | |
padding: 5px; | |
margin: 5px; | |
border-radius: 5px; |
// This is an example of Optional Chaining | |
const adventurer = { | |
name: 'Alice', | |
cat: { | |
name: 'Dinah' | |
} | |
}; | |
const dogName = adventurer.dog?.name; | |
console.log(dogName); |
// js goes here | |
console.log("hello js") |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello onsubmit</title> | |
</head> | |
<body> | |
<h1>Hello onsubmit</h1> | |
<form onsubmit="handleForm()"> | |
<input type="text" name="todo" autocomplete="off"> | |
<button type="submit">Create Todo</button> |
import sys | |
print(sys.path) |
function X_rec = recoverData(Z, U, K) | |
% initialize recovered values | |
X_rec = zeros(size(Z, 1), size(U, 1)); | |
for i = 1:size(X_rec,1) | |
% projected_x is (1, K) | |
projected_x = Z(i, :); | |
% initialize x |
function Z = projectData(X, U, K) | |
% Initalize | |
Z = zeros(size(X, 1), K); | |
% index to create Ureduce | |
Ureduce = U(:, 1:K) | |
for i=1:size(Z,1) | |
function centroids = kMeansInitCentroids(X, K) | |
% initialize placeholder | |
centroids = zeros(K, size(X, 2)); | |
% use randperm to shuffle the row indices of X | |
shuffle_X = randperm(size(X,1)); | |
% only use the first K number of shuffled indices | |
first_K = shuffle_X(1:K, :); |
function centroids = computeCentroids(X, idx, K) | |
% Initialize to store new centroid values | |
centroids = zeros(K, n); | |
% iterate over number of centroids | |
for i = 1:K | |
% create a boolean vector that match the current index, then use this to index into X | |
has_this_centroid = X(idx == i, :); |