Skip to content

Instantly share code, notes, and snippets.

View stepheneb's full-sized avatar

Stephen Bannasch stepheneb

View GitHub Profile
@stepheneb
stepheneb / index.html
Last active June 17, 2023 04:10
D3 Example: zoom, pan, and axis rescale
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>One Graph</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<script type="text/javascript" src="simple-graph.js"></script>
<style type="text/css">
body { font: 13px sans-serif; }
rect { fill: #fff; }
@stepheneb
stepheneb / README.md
Last active May 20, 2023 13:50 — forked from mbostock/.block
Comparing interpolation in Lab and LCh color spaces.
@stepheneb
stepheneb / README.md
Last active April 6, 2023 21:03
Canvas Animate Path Benchmark
@stepheneb
stepheneb / README.md
Last active April 6, 2023 20:41
Simple 2D molecular simulation written in JavaScript

Simple Molecules

See this example live

About the Simple Molecules Model

You can select how many molecules to use and what the temperature should be.

About the Lennard-Jones potential graph

@stepheneb
stepheneb / plabel-scroll-test.html
Last active April 6, 2023 20:36
horizontal scroll test of 650 items -- can't scroll leftr past item 328
<!DOCTYPE html>
<html>
<head>
<title>plabel scroll test</title>
<style>
:root {
--poslabel-color: #888;
--poslabel-border-color: #ddd;
--poslabel-background-color: rgba(250, 250, 250, 0.8);
@stepheneb
stepheneb / .block
Last active February 12, 2023 21:09
Simple JavaScript benchmarking tool
height: 500
scrolling: yes
@stepheneb
stepheneb / list-native-gems.rb
Created December 13, 2010 17:17
list RubyGems that have native extensions
#!/usr/bin/env ruby
require 'rubygems'
gempaths = Gem::default_path
puts
puts "Scanning paths in Gem::default_path for RubyGems with native extensions ..."
puts
@stepheneb
stepheneb / observation-targets.json
Created November 2, 2021 18:05
observation-targets.json
{
"type": "observation",
"titlemainmenu": "Take Your Own Telescope Image",
"title": "Take Your Own Telescope Image",
"subtitle": "Request your own telescope observation and have the image emailed to you.",
"menuimage": "images/menu-observation.jpg",
"action": "Choose a target",
"pages": [
{
"id": "MW9",
$ npm install --save-dev ../electron-forge/packages/publisher/github
npm WARN rollback Rolling back ansi-regex@5.0.0 failed (this is probably harmless): /Users/stephen/dev/00-clients/rlmg/electron-forge/node_modules/ora/node_modules/ansi-regex is not a child of /Users/stephen/dev/00-clients/rlmg/cfa-own-electron
npm WARN acorn-import-assertions@1.7.6 requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@16.0.3 requires a peer of eslint-plugin-import@^2.22.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@16.0.3 requires a peer of eslint-plugin-node@^11.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@16.0.3 requires a peer of eslint-plugin-promise@^4.2.1 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /Users/stephen/dev/00-clients/rlmg/cfa-own