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
category year number_of_projects funding pct_total_funding
Biology 2010 571 172491996 0.42217716484066
Biology 2011 547 133433016 0.444955971996505
Biology 2012 623 156741439 0.472183975406918
Biology 2013 621 152538790 0.493907273247676
Biology 2014 661 148483803 0.479174913300542
Biology 2015 678 170236721 0.49684419351254
Biology 2016 731 213915479 0.586978006798431
Biology 2017 827 231721338 0.606796644086178
Biology 2018 856 246990099 0.626540089029386
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tune Learning App with ABC Editor and Player</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura.css" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/abcjs@6.4.3/abcjs-audio.min.css">
<script src="https://cdn.jsdelivr.net/npm/abcjs@6.4.3/dist/abcjs-basic-min.min.js"></script>
@abalter
abalter / citations_with_tooltips.html
Last active August 28, 2024 20:51
Process citations in <cite> tags and format them. Also add tooltips to preview the full reference.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.tooltip {
position: relative;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notes Application</title>
<style>
.note {
display: none;
margin: 20px 0;

Am I correct that any square matrix can be thought of as a directed graph? If so, how do I determine whether or not it contains cycles? Is it by looking for imaginary eigenvalues?

Yes, any square matrix can be thought of as a directed graph, particularly when you interpret the matrix as an adjacency matrix of the graph. Here's how this works and how you can determine whether the graph contains cycles:

Interpreting a Square Matrix as a Directed Graph

  1. Adjacency Matrix: A square matrix ( A ) of size ( n \times n ) can represent a directed graph with ( n ) vertices. The entry ( A[i][j] ) indicates the presence (and possibly the weight) of a directed edge from vertex ( i ) to vertex ( j ).

Determining the Presence of Cycles

Ariel Balter Obsidian

Key Uses

  • To-Do lists
  • Track multiple projects
  • Maintain lists (such as materials needed for projects, information needed, etc.)
  • Calendar
  • Personal notes
  • Research notes
  • Research ideas
@abalter
abalter / adding-items-to-selected-stacks.markdown
Created November 9, 2022 06:04
Adding items to selected stacks
@abalter
abalter / simple-codepen-example.html
Created November 3, 2022 05:30
Simple two-tab codepen example in a single html file. Based on https://codepen.io/Souleste/pen/xxwvVva
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Simple CodeMirror Sample</title>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.css'>
<style>
.tabs {
list-style-type: none;
padding: 0;
@abalter
abalter / index.html
Created November 3, 2022 05:16
Simple CodeMirror Sample
<div class="tabs-container">
<ul class="tabs">
<li class="tab active" data-tab="0">One</li>
<li class="tab" data-tab="1">Two</li>
</ul>
<div class="tab-pane active" data-pane="0">
<textarea class="editor">// here is the first one
var editor = CodeMirror.fromTextArea(document.getElementById('editor'), {
mode: "javascript",
lineNumbers: true,
@abalter
abalter / screen-and-tmux.md
Created May 19, 2022 23:04
Screen and Tmux tutorial

Terminal Multiplexers

A terminal multiplexer mainly facilitates three things:

  1. Create persistent terminal sessions that remain intact even when you log out of a machine--as long as the machine itself remains running. For example:
  • SSH into a remote machine
  • Start a screen session
  • Start a process
  • Log out of the machine
  • Log back in later, attach to the screen session, and continue working with that process.