Skip to content

Instantly share code, notes, and snippets.

function partition(arr, left, right, pivot) {
var temp = arr[pivot];
arr[pivot] = arr[right];
arr[right] = temp;
var track = left;
for (var i = left; i < right; i++) {
if (arr[i]<arr[right]) {
var t = arr[i];
arr[i] = arr[track];
arr[track] = t;
@VirusPC
VirusPC / time-searcher.json
Last active March 30, 2021 09:37
add hover interaction
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A scatter plot example with interactive legend and x-axis.",
"width": 600,
"height": 400,
"padding": 5,
"autosize": "pad",
"signals": [
{
"name": "dateSpan",