Skip to content

Instantly share code, notes, and snippets.

View manuelkiessling's full-sized avatar

Manuel Kießling manuelkiessling

View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Netzwerkbrücke mhdev VM (bestehender Stack)
config.vm.define :mhdev do |mhdev_config|
mhdev_config.vm.network :bridged, :mac => "0800275e32c0"
end
end
@manuelkiessling
manuelkiessling / gist:1662418
Created January 23, 2012 10:42
Symfony issue #3124
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require 'spec_helper'
describe SharesController do
render_views
describe '#create' do
it "should redirect to Login if user is not logged in" do
post :create, :share => { :facebook_id => 'abc', :address_id => 7 }
response.should redirect_to login_path
<!DOCTYPE html>
<html>
<head>
<link href="css/default.css"
rel="stylesheet"
type="text/css"
media="screen, projection" />
@manuelkiessling
manuelkiessling / gist:800520
Created January 28, 2011 16:39
Ruby class layout allowing a funny call combination
class Foo
def calculate_for_events(events)
@events = events
self
end
def between(time)
@start_time = time
self
<?php
abstract class cCommandLineTool implements cCommandLineToolInterface extends cTool {
const TYPE_DECLARED = 0;
const TYPE_BOOLEAN = 1;
private $sCronjobTitle = NULL;
private $sCronjobDescription = NULL;
private $aArguments = array();