const pointColorScale = d3
.scaleSequential(d3.interpolateTurbo)
.domain(extent);
where interpolateTurbo is the predefined color scale and extent is the variable min / max values.
# TAR | |
tar -cvf archive.tar folder | |
tar -xvf archive.tar -C folder_to_deploy --strip 1 | |
tar -tvf archive.tar | |
# BZ2 | |
tar -jcvf archive.tar.bz2 folder | |
tar -jxvf archive.tar.bz2 -C folder_to_deploy --strip 1 | |
tar -jtvf archive.tar.bz2 |
Open Software:
The situation:
#!/bin/bash | |
# Get all *.tar files from the remote server app folder, without recursing into folders | |
rsync -avh --progress --rsh="ssh -i aws-pem" \ | |
user@host:/path/to/folder/*.tar ~/Desktop | |
# Complete with exclude and mlkctxt |
# How to log in Docker repositories | |
# Log into DockerHub repository (default) | |
# Private repositories at DockerHub must be created manually beforehand | |
# and set to private | |
docker login -u USERNAME -p PASSWORD | |
# Log into GitLab repository | |
docker login -u USERNAME -p PASSWORD <registry URL>/<namespace>/<project>/<image> |
import * as rx from "rxjs"; | |
/** | |
Define a class with a Subject$. | |
*/ | |
class A { | |
/** |
#!/bin/bash | |
# Color output | |
jq --color-output . file.json | |
# Pretty | |
jq '.' non-pretty.json > pretty.json |
name: sunnsaas_v1-full_backend | |
root: /home/git/sunnsaas/sunnsaas_v1 | |
startup_window: sunnsaas_v1-full_backend/full_backend | |
# This shows a custom layout obtained with PREFIX : list-windows after configuring it with PREFIX : resize-pane | |
# Predefined layouts are: even-horizontal, even-vertical, main-horizontal, main-vertical, and tiled. | |
windows: | |
- sunnsaas_v1-full_backend/full_backend: | |
layout: 935c,317x73,0,0{210x73,0,0[210x36,0,0,0,210x36,0,37,4],106x73,211,0[106x18,211,0,1,106x17,211,19,5,106x18,211,37,2,106x17,211,56,3]} |
# ------------------------- | |
# | |
# Reads JSON from file, process it, and save results | |
# | |
# ------------------------- | |
import json | |
wpBaseFolder = "workpackages/wp-2022-04-13-010-process-heliostat_fields/src" | |
with open("%s/data/000_in/Hel_Eff_param.json" % wpBaseFolder) as f: |