This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The most important line in every Shell Script. | |
set -e | |
JENKINS_USER="$(git config --get jenkins.username)" | |
JENKINS_PASSWORD="$(git config --get jenkins.password)" | |
if [ -n "$2" ]; then | |
JENKINS_JOB="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Verifies the given BrowserID assertion | |
* | |
* @throws \UnexpectedValueException on error | |
* | |
* @param string $assertion Assertion provided by navigator.id.getVerifiedEmail() | |
* @param string $audience Host Name, defaults to $_SERVER['HTTP_HOST'] | |
* @param string $verifyService URL of the verification webservice, defaults BrowserID's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://yoursvnserver.example.com/framework lib/framework | |
https://someotherlibrary.example.com/framework lib/other_framework |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace CHH; | |
trait MetaObject | |
{ | |
protected static $__metaClass; | |
static function setMetaClass(MetaClass $metaClass) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor/ | |
composer.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// pipes each function's return value as input into the next function in the chain | |
function func_compose() | |
{ | |
$fns = func_get_args(); | |
$composition = function() use ($fns) { | |
$input = func_get_args(); | |
foreach ($fns as $fn) { | |
$return = call_user_func_array($fn, $input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function func_wrap($fn, $wrapper) | |
{ | |
// Unify calling of the wrapped function | |
if(is_array($fn) or is_string($fn)) { | |
$original = function() use ($fn) { | |
return call_user_func_array($fn, func_get_args()); | |
}; | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function func_curry($fn) | |
{ | |
$args = array_slice(func_get_args(), 1); | |
return function() use ($fn, $args) { | |
$args = array_merge($args, func_get_args()); | |
return call_user_func_array($fn, $args); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class LoginForm extends Szene1_Html_Form | |
{ | |
/** | |
* Schablonenmethode, wird von parent::__construct() aufgerufen | |
*/ | |
public function init() | |
{ | |
$this->setAction("/login"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<title>Ein Kontaktformular</title> | |
<?php | |
echo "<b><br>Projekt: Hello World"; | |
$Vorname="Florian"; | |
$Nachname="Hrubicek"; | |
echo "<b><br>Name: $Vorname $Nachname"; | |
$Adresse="Holzing 6"; | |
$PLZ="3300 Winklarn,"; |
NewerOlder