Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import plotly.express as px | |
palette = px.colors.sequential.Bluered.copy() | |
new_palette = list() | |
for color in palette: | |
orig_color = color[4:-1].split(",") | |
# offset = 50 | |
# offset = 75 | |
offset = 100 | |
orig_color = [np.clip(offset + int(color_elem), 0, 255) for color_elem in orig_color] |
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
# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status | |
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}" | |
local host_color="green" | |
# if [ -n "$SSH_CLIENT" ]; then | |
# local host_color="red" | |
# fi | |
# add extra styling for activated venvs |
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
# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status | |
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}" | |
local host_color="green" | |
if [ -n "$SSH_CLIENT" ]; then | |
local host_color="red" | |
fi | |
PROMPT=' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""constrained LLSQ""" | |
"""scipy.minimize""" | |
import numpy as np | |
from scipy import optimize | |
from scipy import linalg | |
# Generate random problem data. | |
m = 30 |