Skip to content

Instantly share code, notes, and snippets.

View piiskop's full-sized avatar

peacecop kalmer: piiskop

View GitHub Profile
Dimension gensci biochem physio
light 3249 5592 11731
air pressure 101.9 100.4 102.3
distance .903 .903
ambient temperature 28.6 28.1 29
humidity 21.6 24.5
microphone 1.65 1.59
external temperature 24.6 24.7 24.6
<?php
namespace pupils;
class PupilController {
public function __construct() {
require_once dirname(__FILE__) . '/Pupil.php';
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET' :
{
<?php
namespace pupils;
class Pupil {
private $id;
private $name;
private $folder;
private $idStudyGroup;
/**
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
// @formatter:off
$url = sprintf(
'http://%1$s:%2$u/study-groups?format=json&id=3',
$_SERVER['SERVER_NAME'], // 1
$_SERVER['SERVER_PORT'] // 2
);
// @formatter:on
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
// @formatter:off
$url = sprintf(
'http://%1$s:%2$u/study-groups?format=json',
$_SERVER['SERVER_NAME'], // 1
$_SERVER['SERVER_PORT'] // 2
);
// @formatter:on
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
// @formatter:off
$url = sprintf(
'http://%1$s:%2$u/study-groups?format=json',
$_SERVER['SERVER_NAME'], // 1
$_SERVER['SERVER_PORT'] // 2
);
// @formatter:on
<?php
namespace pupils;
class StudyGroupController {
public function __construct($arguments) {
require_once dirname(__FILE__) . '/StudyGroup.php';
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET' :
{
<?php
namespace pupils;
class StudyGroup {
private $id;
private $name;
/**
*
* @return mixed
<?php
namespace pupils;
class StudyGroupPupilsApi {
function __construct() {
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
// @formatter:off
require_once sprintf(
<?php
namespace pupils;
/**
* This file includes just global constants and actions.
* Created on 2.10.2006
*
* @author peacecop kalmer: <[email protected]>
*/