Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ctlusto's full-sized avatar

Chris Lusto ctlusto

View GitHub Profile
@ctlusto
ctlusto / index.html
Last active January 12, 2019 14:02
An interactive exponential population model using Desmos
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="//cdn.jsdelivr.net/semantic-ui/2.2.6/semantic.min.css">
<link rel="stylesheet" href="scrubber.css">
<link rel="stylesheet" href="main.css">
<script src="//www.desmos.com/api/v0.8/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
<!-- Load jQuery from Desmos instead of pulling in another copy -->
<script>window.jQuery = window.$ = Desmos.$</script>
<script src="//cdn.jsdelivr.net/semantic-ui/2.2.6/semantic.min.js"></script>
@ctlusto
ctlusto / index.html
Last active July 11, 2017 17:33
An interactive logistic population model using Desmos
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="//cdn.jsdelivr.net/semantic-ui/2.2.6/semantic.min.css">
<link rel="stylesheet" href="scrubber.css">
<link rel="stylesheet" href="main.css">
<script src="//www.desmos.com/api/v0.8/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
<!-- Load jQuery from Desmos instead of pulling in another copy -->
<script>window.jQuery = window.$ = Desmos.$</script>
<script src="//cdn.jsdelivr.net/semantic-ui/2.2.6/semantic.min.js"></script>
@ctlusto
ctlusto / example1.js
Created January 20, 2017 01:01
Some sample widgets built using the Desmos API
$(function() {
// MathQuillify some text
var MQ = Desmos.MathQuill;
MQ.StaticMath($('#slope-intercept')[0]);
MQ.StaticMath($('#intercept-point')[0]);
MQ.StaticMath($('#slope')[0]);
MQ.StaticMath($('#intercept')[0]);
MQ.StaticMath($('#slope-annotation')[0]);
MQ.StaticMath($('#intercept-point-annotation')[0]);
@ctlusto
ctlusto / index.html
Last active December 16, 2016 03:25
Logistic Population Growth
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Logistic Population Growth</title>
<link rel="stylesheet" href="scrubber.css">
<link rel="stylesheet" href="main.css">
<script src="scrubber.js" charset="utf-8"></script>
<script src="//www.desmos.com/api/v0.8/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
</head>
@ctlusto
ctlusto / index.html
Last active December 16, 2016 07:55
Exponential Population Growth
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Exponential Population Growth</title>
<link rel="stylesheet" href="scrubber.css">
<link rel="stylesheet" href="main.css">
<script src="scrubber.js" charset="utf-8"></script>
<script src="//www.desmos.com/api/v0.8/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
</head>
@ctlusto
ctlusto / index.html
Last active January 13, 2017 19:11
Desmos Mockup Tool with Custom Colors
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Desmos Custom Colors</title>
<link href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://www.desmos.com/api/v0.8/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
@ctlusto
ctlusto / README.md
Last active October 28, 2015 23:55
Seeing Spots
@ctlusto
ctlusto / index.html
Created October 23, 2015 23:02
Happy Trails
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Happy Trails</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="calculator"></div>
<script src="//www.desmos.com/api/v0.5/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
@ctlusto
ctlusto / README.md
Last active October 18, 2015 15:41
Creating and Updating Expressions

An example of creating and updating expressions with the Desmos API to make a color-shifting timer. Accompanies this post.

@ctlusto
ctlusto / README.md
Last active October 18, 2015 01:23
Basic Desmos Example

A basic example of embedding a Desmos calculator using their API.