Skip to content

Instantly share code, notes, and snippets.

View mikeskaug's full-sized avatar

Mike Skaug mikeskaug

View GitHub Profile
@mikeskaug
mikeskaug / README.md
Last active May 26, 2017 20:46
Polymer dynamics

A simulation of polymer dynamics using d3.

The physics are not quite right, namely the bond lengths should be much more rigid, but it illustrates the basic physical picture of random thermal fluctuations in the polymer chain.

@mikeskaug
mikeskaug / README.md
Last active May 20, 2017 04:05
Random Walk

Simulation of a simple two dimensional Gaussian random walk. Random walks are used to model and understand many physical phenomena such as the movement of molecules through our bodies, the spread of contaminants underground and the fluctuation of stock prices.

@mikeskaug
mikeskaug / README.md
Last active June 29, 2022 14:13 — forked from vasturiano/README.md
Brownian motion

Simulation of particles immersed in fluid at some temperature, using the d3-force physics engine.

This is was inspired by this block.

The velocities of the fluid particles are drawn from the Maxwell-Boltzman velocity distribution and scale with temperature like sqrt(T).

This illustrates the origin of Brownian motion, which is the random motion of particles suspended in a fluid due to collisions with the fast moving fluid particles or molecules.

@mikeskaug
mikeskaug / index.html
Last active August 22, 2016 16:02
OpenLayers vector layer extent
<!DOCTYPE html>
<html>
<head>
<title>Limited Layer Extent</title>
<link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/ol.css" type="text/css">
<script src="http://openlayers.org/en/v3.17.1/build/ol.js"></script>
</head>
<body>
<div id="map"></div>
</div>
@mikeskaug
mikeskaug / ANAM_1951-2014_analysis.ipynb
Created February 22, 2016 20:01
Analysis and Visualization of Data from Accidents in North American Mountaineering 1951-2014
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikeskaug
mikeskaug / cd_data_reduced.csv
Last active January 22, 2016 21:41
Spatial Analysis of data2go.nyc Dataset
GEO_ID GEO LABEL air_qual_cd diversion_cd lead_complaints_cd lead_kids_cd waste_cd water_per_1000_cd noise_per_1000_cd citu_land_cd vacant_parking_land_cd accidents_death_cd alzheimers_deaths_cd any_exercise_cd binge_drinking_cd birth_rate_cd births_cd cancer_deaths_cd current_smoker_cd death_rate_cd deaths_cd diabetes_cd diabetes_deaths_cd fruits_veggies_cd health_insurance_cd healthy_food_sq_footage_cd heart_disease_deaths_cd hiv_test_cd hypertension_deaths_cd infant_mortality _cd influenza_deaths_cd life_expectancy_cd low_birth_wght_cd lower_resp_deaths_cd obesity_cd pre_term_birth_cd prenatal_care_cd stroke_death_cd substance_abuse_related_deaths_cd sugary_drink_cd teen_birth_cd vac_flu_cd vac_hpv_cd sanitation_per_1000_cd sewer_per_1000_cd rodent_per_1000_cd park_recreation_land_cd self_reported_health_good_cd self_reported_health_cd jail_incar_cd prematuremortality_cd avoidable_asthma_cd avoidable_diabetes_cd psychhosp_rate_cd asthma5to14_cd alchosp_cd drughosp_cd assaulthosp_cd hiv_deaths_cd family_hom
@mikeskaug
mikeskaug / alaska.png
Last active October 26, 2015 20:29
Shaded Relief with AlbersUsa Projection
alaska.png