This file contains 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
public function findAllByCoordinatesDistance($coordinates, $distance) { | |
$earthRadius=6367.41; | |
if($distance[strlen($distance)-1] = 'm'){ | |
$earthRadius=$earthRadius/1.609; | |
$distance = intval($distance); | |
} | |
// prepare for injections | |
$distance = floatval($distance); |
This file contains 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
Doctrine in TYPO3 FLOW ORM/* {#doctrine} | |
=================================== | |
Einfache Datentypen (Attribute) | |
------------------------------- | |
@code | |
class Blog { | |
/** | |
* @var string |
This file contains 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 KayStrobach\Project\Aspects; | |
use TYPO3\Flow\Annotations as Flow; | |
/** | |
* Wraps around the \TYPO3\Flow\Cli\Response | |
* | |
* @Flow\Aspect |
This file contains 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
<f:form.validationResults for="{for}"> | |
<f:if condition="{validationResults.flattenedErrors}"> | |
<div class="alert alert-danger alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" title="Schließen">×</button> | |
<p> | |
Leider waren einige Eingaben im Formular nicht korrekt. | |
</p> | |
<f:for each="{validationResults.flattenedErrors}" key="propertyPath" as="errors"> | |
<div class="row"> | |
<div class="col-md-3"> |
This file contains 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
$workflow->defineTask( | |
'vendor.package:createfolder', | |
'typo3.surf:shell', | |
array( | |
'command' => 'mkdir {releasePath}/someGreatFolder', | |
'logOutput' => TRUE | |
) | |
); | |
This file contains 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
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil | |
print "Welcome to the MS Windows hell\n\n" | |
print "Please confirm the UAC messages, but still the network will be slow\n\n" | |
config.vm.synced_folder ".", "/serverdata", owner: "www-data", group:"www-data" | |
else | |
print "You are not running Windows ... thank god!\n\n" | |
print "You may be asked for your sudo password to use NFS shares\n" | |
print "More Information: https://docs.vagrantup.com/v2/synced-folders/nfs.html\n\n" | |
config.vm.synced_folder ".", "/serverdata", type: "nfs" #, owner: "www-data", group:"www-data" | |
end |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
print "You may be asked for your sudo password to use NFS shares\n" | |
print "More Information: https://docs.vagrantup.com/v2/synced-folders/nfs.html\n\n" | |
unless Vagrant.has_plugin?("vagrant-vbguest") | |
print "please execute the following command to enable automated vbguest installation\n\n" | |
print "vagrant plugin install vagrant-vbguest" |
This file contains 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 KayStrobach\Themes\Hook; | |
use KayStrobach\Themes\Utilities\CheckPageUtility; | |
/** | |
* Class PageNotFoundHandlingHook | |
* | |
* @package KayStrobach\Themes\Hook |
This file contains 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 Tx_beskin_Be_PreHeaderRenderHook { | |
function main($arg) { | |
/** @var \t3lib_PageRenderer $pagerenderer*/ | |
$pagerenderer = $arg['pageRenderer']; | |
$extConfigs = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['beskin']); | |
$paths = array (); |
This file contains 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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
OlderNewer