Skip to content

Instantly share code, notes, and snippets.

View jdowner's full-sized avatar

Joshua Downer jdowner

View GitHub Profile
@jdowner
jdowner / example.html
Created August 13, 2014 10:58
Example of SVG interaction and transformation
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>svg-example</title>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<style>
.bottom {
fill: blue;
stroke: blue;
@jdowner
jdowner / index.html
Last active August 29, 2015 14:05
Javascript coroutine experiment
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>coroutine-traversal-example</title>
</head>
<script src="traversal.js"></script>
<body>
</body>
<script>
@jdowner
jdowner / noise.cfg
Last active August 29, 2015 14:04 — forked from rsvp/noise.sh
ambient noise
duration='00:59:00'
noisetype='pinknoise'
progress='--no-show-progress'
noisetype="pinknoise"
band_center="1000"
band_width="499"
tremolo_speed="0.01"
tremolo_depth="43"
@jdowner
jdowner / example.qml
Last active June 2, 2021 18:34
How to pass a Qml Component as a signal parameter.
import QtQuick 1.0
Rectangle {
height: 300
width: 400
color: "gray"
// This text element is for visual feedback when the signal fires
Text {
text: "(empty)"
@jdowner
jdowner / Turret.cpp
Created January 5, 2012 01:52
A simple turret that tracks a target.
#include "Turret.h"
#include <cmath>
#include <algorithm>
#include <cassert>
namespace
{
const double TWOPI = 2.0 * M_PI;
}