Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View stoefln's full-sized avatar

Stephan Petzl stoefln

View GitHub Profile
@stoefln
stoefln / html
Created July 18, 2011 21:32
a lot of warnings with domcrawler
<!DOCTYPE html>
<html>
<head>
<title>Willkommen</title>
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Eventiply">
@stoefln
stoefln / create event
Created July 25, 2011 07:04
goutte problem
<!DOCTYPE html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>Veranstaltung erstellen</title>
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Eventiply">
@stoefln
stoefln / EventiplyExtension.php
Created October 5, 2011 07:36
facebook connect
<?php
namespace Ajado\EventHubBundle\Twig\Extension;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
*
*/
class EventiplyExtension extends \Twig_Extension
@stoefln
stoefln / RegistrationController.php
Created January 10, 2012 15:03
Registration implementation
//....
/**
* @Route("/register",name="_index_register")
* @Template()
*/
public function registerAction() {
if($this->getUser() && $this->getUser() != "anon."){
return $this->redirect($this->generateUrl('_user_events', array('username' => $this->getUser()->getUsername())));
@stoefln
stoefln / ajaxformdialog.js
Created January 12, 2012 17:14
Ajax Form Dialog
var eventiply = {};
eventiply.formToArray = function(form){
var postVars = {};
$(form).find('input').each(function(i,obj){
postVars[$(obj).attr('name')] = $(obj).val();
});
$(form).find('select').each(function(i,obj){
postVars[$(obj).attr('name')] = $(obj).val();
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>at.ac.tuwien.infosys.dst</groupId>
<artifactId>dst</artifactId>
<packaging>pom</packaging>
<version>2014</version>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dst</artifactId>
<groupId>at.ac.tuwien.infosys.dst</groupId>
<version>2014</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@stoefln
stoefln / embed.html
Last active September 1, 2016 12:34
<script type="text/javascript" id="seesmart-embedder-axszsdfas-s813e9-3737-d5a159268ae6" class="seesmart-embedder-axszsdfas-s813e9-3737-d5a159268ae6">
(function() {
function async_load(){
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
__seesmart = {
button_selector: '###button_selector###'
};
s.src = 'https://www.seesmart.at/v1/seesmart-tracking-min.js';
/*
* Arduino control for a solenoid valve array (currently 8 pieces), which are hooked up to tubes with liquid inside.
* Each solenoid valve controls a stream of air which is blown into the stream of liquid inside the tubes.
* By layouting the tubes on a wall it's possible to create beautiful animations
*/
#define TRACK_NUMBER 8
#define MAX_CHARS_PER_TRACK 80
class Track