This file contains hidden or 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
// this draws sets of circles in rows on the screen | |
// Steve Lambert February 14, 2012 | |
// variables | |
int stage = 1; | |
float cDim = 15; // dimensions of the circle | |
float y = 0 - cDim; // y is the starting position of the row | |
float xSpacing = cDim; // spacing between the circles | |
float ySpacing = 10; // spacing below each row |
This file contains hidden or 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
// Get OpenCV here: http://ubaa.net/shared/processing/opencv/ | |
import hypermedia.video.*; | |
import java.awt.Rectangle; | |
OpenCV opencv; | |
// contrast/brightness values | |
int contrast_value = 0; |
This file contains hidden or 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
//relay pins | |
#define relayAPin 2 | |
#define relayBPin 3 | |
#define relayCPin 4 | |
#define relayDPin 5 | |
#define relayEPin 6 | |
#define relayFPin 7 | |
#define relayGPin 8 | |
#define relayHPin 9 |
This file contains hidden or 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
/* | |
Sonar 100% Program | |
v.0.4.1 | |
This version has: | |
* 3 sonar units | |
* LEDs to show when triggered | |
* variable trigger distance set with a pot | |
* An error LED to show if a sonar unit is out. |
This file contains hidden or 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
<?xml version="1.0"?> | |
<rss version="2.0"> | |
<channel> | |
<title>Art Channel Name</title> | |
<link>http://museum.art/add-art/</link> | |
<description>Brief description of the venue providing the images.</description> <!-- limit what's displayed in the Add-Art interface to a couple sentences. --> | |
<image>http://museum.art/add-art/icon.png</image> <!-- a small, standarized size logo image for the organization. To be displayed in the interface. --> | |
<pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate> <!-- show in interface as 12 June '13 --> | |
<lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate> <!-- needed? --> | |
<docs>http://blogs.law.harvard.edu/tech/rss</docs> |
This file contains hidden or 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 get_header() ?> | |
<!-- generated with home.php --> | |
<div id="home-banner"> | |
<?php putRevSlider("tsleadin") ?> | |
</div><!-- #home-banner--> | |
<div id="home-container"> | |
This file contains hidden or 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 get_header() ?> | |
<!-- created with category.php --> | |
<?php get_sidebar() ?> | |
<hr /> | |
<div id="content"> | |
<!--checking if this is a for sale page--> | |
<?php |
This file contains hidden or 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
// Thumbnail Function - this creates a default thumbnail if one is specified | |
function get_thumb ($post_ID){ | |
$thumbargs = array( | |
'post_type' => 'attachment', | |
'numberposts' => 1, | |
'post_status' => null, | |
'post_parent' => $post_ID | |
); | |
$thumb = get_posts($thumbargs); | |
if ($thumb) { |
This file contains hidden or 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
/* | |
Steve Lambert | |
September 8, 2015 | |
This is an example for class about the things | |
they have questions about today. | |
*/ |
This file contains hidden or 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
void setup() { | |
size(480, 120); | |
smooth(); | |
background(240); | |
rectMode(CENTER); | |
// done with setup | |
} | |
void draw() { |