Skip to content

Instantly share code, notes, and snippets.

View abalter's full-sized avatar

Ariel Balter abalter

  • Center For Health Systems Effectiveness, OHSU
  • Portland, OR
View GitHub Profile
@abalter
abalter / getoptsdemo.sh
Created August 24, 2017 17:38
Template for bash getopts argument parsing for various types of arguments.
#!/bin/bash
### preallocate variables
required=
optional_hasarg=
got_opt_arg=false
optional_noarg=false
has_default="DEFAULT"
@abalter
abalter / svs-to-cropped-tiffs.js
Created August 24, 2017 20:19
Script for FIJI/ImageJ used for this paper: https://www.ncbi.nlm.nih.gov/pubmed/28380359
/*
Code used for processing images for the paper
"Quantitative Multiplex Immunohistochemistry Reveals Myeloid-Inflamed Tumor-Immune Complexity Associated with Poor Prognosis."
Cell Rep. 2017 Apr 4;19(1):203-217. doi: 10.1016/j.celrep.2017.03.037.
https://www.ncbi.nlm.nih.gov/pubmed/28380359
*/
var debug = true;
@abalter
abalter / ellipse.svg
Created September 13, 2017 20:08
Ellipse in svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abalter
abalter / index.html
Last active April 1, 2018 02:36
Web Template created by abalter - https://repl.it/JCsR/75
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ariel Balter</title>
<meta name="author" content="name">
<meta name="description" content="description here">
@abalter
abalter / mycards.html
Created October 5, 2017 20:13
My Cards
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>mycards</title><!-- Custom fonts for this template -->
<!-- ========== STYLESHEETS ============= -->
<!-- BOOTSTRAP -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css">
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abalter
abalter / queryme.html
Last active October 30, 2017 04:37
simple javascript test page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>runme</title>
</head>
<body>
<h1 id="changeme">If you see this then jQuery did not run.</h1>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
@abalter
abalter / tmux_local_install.sh
Last active November 1, 2017 15:17 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.6
@abalter
abalter / simplescrollspy.html
Last active December 11, 2024 22:23
Very simple scrollspy
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
<style type="text/css">
.nav {
position: fixed;
top: 0px;
}
@abalter
abalter / tiaa-cref.ipynb
Last active December 21, 2017 07:48
Plot Historical Price Data Using Plotly and the Morningstar API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.