Skip to content

Instantly share code, notes, and snippets.

View danielset's full-sized avatar

Daniel Setzermann danielset

View GitHub Profile
@danielset
danielset / 3d_cylinder.php
Created April 15, 2018 16:34
3D Image CSS Transform
<?php
$title = $_GET['title'];
if (isset($_GET['design']) && $_GET['design'] == 'design1') {
$design = 'vorlage_360.png';
} else if (isset($_GET['design']) && $_GET['design'] == 'design2') {
@danielset
danielset / google-real-time-php-api.php
Created May 29, 2016 16:09
PHP Snippet PHP Connect to Google Real Time API and receive the activeVisitors on the site
<?php
//Google RealTime Connect
require_once '/ABSOLUTE/PATH/TO/GOOGLE-API-PHP/vendor/autoload.php';
$client = new Google_Client();
$client->setApplicationName("A_DESCRIPTIVE_NAME");
$client->setAuthConfig('/ABSOLUTE/PATH/TO/GOOGLE-API-PHP/AUTH-FILE.json');
$client->addScope('https://www.googleapis.com/auth/analytics.readonly');
@danielset
danielset / update.php
Last active May 29, 2016 16:07
API Connect cloudBit PHP
<?php
// Place other API connects e.g. the one to Google here
// Your ID and token of your cloudBit
$deviceID = 'DEVICE_ID';
$authToken = 'AUTH_TOKEN';
// The data to send to the API
$cloudData = array(