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
// include the SPI library: | |
#include <SPI.h> | |
#include <inttypes.h> | |
void setup() { | |
// Open serial communications and wait for port to open: | |
Serial.begin(9600); | |
while (!Serial) { | |
; // wait for serial port to connect. Needed for native USB port only | |
} |
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
#include <SPI.h> // needed for Arduino versions later than 0018 | |
#include <Ethernet.h> | |
#include <EthernetUdp.h> // UDP library from: bjoern@cs.stanford.edu 12/30/2008 | |
// Enter a MAC address and IP address for your controller below. | |
// The IP address will be dependent on your local network: | |
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress ip(192, 168, 1, 177); | |
IPAddress remote(192, 168, 1, 5); |
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
{ | |
init: function(elevators, floors) { | |
var buttonPressed = []; //keep track of buttons presses | |
// loop over floors | |
_.each(floors, function(floor) { | |
floor.on("up_button_pressed", function() { | |
buttonPressed.push(floor.level); |
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
<pre><?php | |
var_dump( $_REQUEST ) ; | |
?> | |
<hr > | |
<form action="?" method="post"> | |
one: <input type="text" name="one"><br> | |
two: <input type="text" name="two"> | |
<input type="submit" value="Submit"> |
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
<div class="authors form"> | |
<p>Please update your personal information before submitting a story<br /> | |
<strong>User ID: </strong>: <em><?php echo $profile_id ; ?></em><br /> | |
<strong>Authority</strong>: <em><?php echo $authority ; ?></em> <?php | |
if( $authority >= 100 ) { | |
echo $this->Html->link( "Admin", array('controller'=>'admin/stories', 'action'=>'index' ) ) ; | |
} | |
if( $authority >= 50 ) { | |
echo ', '. $this->Html->link( "Slush readers index", array('controller'=>'slusher', 'action'=>'index' ) ) ; |
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> | |
<meta charset="utf-8"> | |
<title>Javascript generated laser cut pendants</title> | |
<script type="text/javascript" src="raphael-min.js"></script> | |
<script type="text/javascript" src="raphael.export.js"></script> | |
</head> | |
<body> | |
<a id='downloadLink'>Download</a><br /> |
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> | |
<meta charset="utf-8"> | |
<title>Javascript generated laser cut pendants</title> | |
<script type="text/javascript" src="raphael-min.js"></script> | |
<script type="text/javascript" src="raphael.export.js"></script> | |
</head> | |
<body> | |
<a id='downloadLink'>Download</a><br /> |
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> | |
<meta charset="utf-8"> | |
<title>Javascript generated laser cut pendants</title> | |
<script type="text/javascript" src="raphael-min.js"></script> | |
<script type="text/javascript" src="raphael.export.js"></script> | |
</head> | |
<body> | |
<div id="canvas"></div> |
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> | |
<meta charset="utf-8"> | |
<title>Javascript generated laser cut pendants</title> | |
<script type="text/javascript" src="raphael-min.js"></script> | |
<script type="text/javascript" src="raphael.export.js"></script> | |
</head> | |
<body> | |
<div id="canvas"></div> |
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> | |
<meta charset="utf-8"> | |
<title>Javascript generated laser cut pendants</title> | |
<script type="text/javascript" src="raphael-min.js"></script> | |
<script type="text/javascript" src="raphael.export.js"></script> | |
</head> | |
<body> | |
<div id="canvas"></div> |