Orbiting planets and moons with D3.js, inspired by Jan van der Laan's Planetarium. Orbital speeds are roughly scaled relative to one another.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Title of the document</title> | |
</head> | |
<body> | |
<!--This doesn't work when you press Enter and | |
there's a click event --> | |
<div id="button-1" role="button" tabindex="0"> | |
Open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 1452 | |
redirect: https://observablehq.com/@d3/mona-lisa-histogram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'rest_api_init', 'example_add_cfs' ); | |
/** | |
* Add cfs fields to api call for post type example | |
* Fields will be put in cfs object in json | |
* @param none | |
* | |
* @return null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote prune origin | |
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tank; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.util.concurrent.TimeUnit; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Refer to https://gist.github.com/remy/350433 | |
try { | |
// Test webstorage existence. | |
if (!window.localStorage || !window.sessionStorage) throw "exception"; | |
// Test webstorage accessibility - Needed for Safari private browsing. | |
localStorage.setItem('storage_test', 1); | |
localStorage.removeItem('storage_test'); | |
} catch(e) { | |
(function () { | |
var Storage = function (type) { |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First Name,Last Name,Salary,Position | |
Patricia,Gilman,"56,987.55",Professor | |
Debra L,Gentis,"48,274.07",IT Specialist II | |
Sydney F,Henderson,"22,325.17",IT Support Technician I | |
David G,Carnevale,"7,980.67",Professor Emeritus | |
Latifah L,Abdul-Raheem,"38,400.00",Grants Specialist I | |
David S,Gross,"10,275.00",Professor Emeritus | |
Tina M,Henderson,"38,894.96",Admissions/Recruitmt Spec I | |
Peter C,Vail,"9,000.00",Adjunct | |
Carl B,Van Buskirk,"68,181.24",Tech Project Mgmt Spec III |
NewerOlder