Skip to content

Instantly share code, notes, and snippets.

View philipp-spiess's full-sized avatar

Philipp Spiess philipp-spiess

View GitHub Profile
@philipp-spiess
philipp-spiess / Program.cs
Created February 22, 2012 19:04
Inheritance
using System;
namespace Inheritance
{
class Program
{
static void Main(string[] args)
{
Quadrat q = new Quadrat(123);
@philipp-spiess
philipp-spiess / Fussballer.cs
Created February 26, 2012 12:52
Polymorphismus C#
public class Fussballer : Sportler
{
public void DoSport()
{
Console.WriteLine("Fussball spielen!");
}
}
@philipp-spiess
philipp-spiess / apc.php
Created February 28, 2012 00:04
Le wild apc.php
<?php
/*
+----------------------------------------------------------------------+
| APC |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
@philipp-spiess
philipp-spiess / dabblet.css
Created February 29, 2012 21:02
Le awesome button test
/**
* Le awesome button test
*/
body {
background: url('http://dribbble.com/images/tile.gif');
}
button {
margin-left:50px;
@philipp-spiess
philipp-spiess / example.js
Created April 10, 2012 21:35 — forked from anonymous/example2.js
MongoDB CRUD and MapReduce
db.foo.insert( { name: "Mario", fach: ["E", "D"] } );
db.foo.insert( { name: "Philipp", fach: ["PR", "D"] } );
db.foo.find();
db.foo.find( { name: "Mario" } );
db.foo.find( { fach: { $in : [ "E", "M" ] } } );
db.foo.update( { name: "Mario" }, { $push: { fach: "M" } } );
db.foo.find( { name: "Mario" } );
@philipp-spiess
philipp-spiess / test.js
Created April 15, 2012 20:34
JavaScript Security Test
var Test = function() {
console.log("I'm not soo evil")
}
Test.prototype.play = function(arg) {
return arg + 1
}
module.exports = Test
//uebbayer.cpp - Übung zu den Bayer Bäumen
//Philipp Spieß
//28.05.2009
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#define MAX 4
@philipp-spiess
philipp-spiess / statement.txt
Created June 20, 2012 15:14
Startup Live Klagenfurt Postponed
Liebe Startup Live Klagenfurt-Teilnehmer,
leider müssen wir das Startup Live Wochenende von 22.-24. Juni auf den Herbst verschieben. Grundsatz der Veranstaltung ist, Investoren bereit zu stellen, die eure Ideen nicht nur Unterstützen und euch Tipps geben, sondern auch darüber Gedanken machen, eure Idee finanziell zu unterstützen. Da uns krankheitsbedingt wertvolle Mentoren kurzfristig ausgefallen sind und wir den Anspruch haben, euch das bestmögliche Umfeld zu garantieren, haben wir uns für eine Verschiebung auf Herbst entschieden.
Der Startup Live Klagenfurt #1 wurde somit auf das Wochenende 16.-18. November 2012 verschoben.
Wir freuen uns, dass ihr eure Zeit für eure Idee investieren bereits seid und hoffen, dass ihr im Hebst mit derselben, wenn nicht mehr Motivation mit dabei seid. Nicht nur wir, sondern auch unsere Investoren und Mentoren halten ihre Tipps bereit und hoffen und freuen sich auf eure Ideen und auf das kommende Event im Herbst mit euch.
Selbstverständlich werden wir die Unkostenbeträ
# Description:
# Brauchst eh lei...
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@philipp-spiess
philipp-spiess / script.js
Created June 2, 2013 21:30
A script we use to find potential customers on the http://500px.com/popuar page.
/*
A script we use to find potential customers on the http://500px.com/popuar page.
*/
jQuery('.photo').each(function(_, data) {
var photo = jQuery(data);
var profile = photo.find('.info a').attr('href');
jQuery.get(profile, function(data) {
var user_page = jQuery(data);
var find = function(v) {
return user_page.find(v).attr('href');