Skip to content

Instantly share code, notes, and snippets.

@varontron
varontron / .block
Last active January 28, 2020 02:32
Scatterplot with Lasso
license: mit
@varontron
varontron / .block
Created February 7, 2020 17:22 — forked from senthilthyagarajan/.block
Segments By Audience
width: 820
height: 730
@varontron
varontron / .block
Created February 19, 2020 00:38
Brush & Zoom
license: gpl-3.0
@varontron
varontron / dupeSearch.js
Created October 27, 2020 14:10
Diskover deduping
#!/usr/bin/env node
'use strict'
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const fs = require('fs')
const { Client } = require('@elastic/elasticsearch')
const client = new Client({ node: 'http://localhost:9200' })
let i = 0
const size = 1000
@varontron
varontron / outlookEventToNotion.scpt
Last active January 19, 2023 23:20
Applescript to copy and format selected outlook event data to "MergeCSV" in Notion
property MY_NOTION_TOKEN : "redacted"
property MTG_DATABASE_ID : "redacted"
tell application "Microsoft Outlook"
-- is an evet selected in the calendar window?
if class of front window is main window and view of front window is calendar view then
set theEvt to the selection
-- is the event unsaved or is the buggy "New Outlook" interface being used
else if class of front window is window and object of front window is missing value then
display dialog "Unsaved events cannot be copied. Save your event and run this script again." with title "Alert!" with icon 2 buttons {"OK"} default button {"OK"}
#!/bin/zsh
# The script will iterate through the queues and terminate any jobs in these queues with any of the following states:
# SUBMITTED PENDING RUNNABLE STARTING RUNNING
# Requirements:
# valid ~/.aws/credentials
# aws cli installed
# Usage:
# pass space-delimited quoted string of queue names as argument to script, e.g.,
# terminateJobs.zsh "my-nextflow-head-queue my-nextflow-small-process-queue my-nf-large-process-queue"
#