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 | |
// Page.php | |
class Page extends SiteTree { | |
public static $many_many = array( | |
'TestObjects' => 'TestObject' | |
); | |
public static $many_many_extraFields = array( | |
'TestObjects' => array( |
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 | |
/* Simple HTML DOM Parser http://simplehtmldom.sourceforge.net/ */ | |
include('simple_html_dom.php'); | |
$html = file_get_html('http://www.emhi.ee/index.php?ide=21&v_kaart=0&go=5'); | |
foreach($html->find('table[cellpadding=2] tr[bgcolor=#F7F7F7], tr[bgcolor=#FFFFFF]') as $row){ | |
foreach($row->find('td') as $cell) { |
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 | |
class page_graafik extends Page { | |
function initMainPage(){ | |
$this->api->stickyGET('mac'); | |
//Get the maja id from maja table based on mac | |
$maja = $this->setModel('maja'); | |
$maja->tryLoadBy('mac','=',$_GET['mac']); | |
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 | |
include "php_serial.class.php"; | |
$go = $_GET["go"]; | |
// Let's start the class | |
$serial = new phpSerial; | |
// First we must specify the device. This works on both linux and windows (if | |
// your linux serial device is /dev/ttyS0 for COM1, etc) |
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
<html> | |
<head> | |
<style type="text/css"> | |
.nupud { | |
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff; | |
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; | |
box-shadow:inset 0px 1px 0px 0px #ffffff; | |
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); | |
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); |
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
boolean stringComplete = false; // whether the string is complete | |
String inputString = ""; | |
void setup() { | |
// test pin | |
pinMode(10, OUTPUT); // Vasakule | |
pinMode(9, OUTPUT); // Paremale | |
// initialize serial: |