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
/* | |
* this uses jquery UI/Effects/switchClass with transitions | |
* parameters are: | |
* normal: starter class | |
* pump: class to transform to | |
* interval: time interval | |
* stop: if the object hast this stopper class it will break, | |
* you can set the class from the outside | |
* | |
* usage: $('.status').pump({normal : 'someclass', |
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
#!/bin/sh | |
# | |
# A hook script that is called after a successful | |
# merge is made. | |
# It triggers the boilerplate build. | |
# | |
# To enable this hook, make this file executable | |
# change to build dir | |
cd ../../build |
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
<target name="copyViews"> | |
<echo message="copy Views for build"/> | |
<mkdir dir="${dir.intermediate}/${dir.views}"/> | |
<copy todir="${dir.intermediate}/${dir.views}" includeEmptyDirs="true"> | |
<fileset dir="${dir.views}/" excludes="${file.default.exclude}, ${file.exclude}"> | |
</fileset> | |
</copy> | |
<mkdir dir="${dir.publish}/${dir.views}"/> | |
<copy todir="${dir.publish}/${dir.views}" includeEmptyDirs="true"> | |
<fileset dir="${dir.views}/" excludes="${file.default.exclude}, ${file.exclude}"> |
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 WikipediaMarkupCoordinates{ | |
/** | |
* @param string $text | |
* @return boolean|array | |
* | |
* bsp: http://de.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=Berufskolleg_Deutzer_Freiheit | |
*/ | |
public static function parseCoordinatesFromInfobox($text) { |
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
# install silverstripe + common modules from github | |
# usage sh install_silverstripe.sh <folder_name> <tag/branch> | |
# examples: | |
# sh install_silverstripe.sh some_folder tags/2.4.5 | |
# sh install_silverstripe.sh some_folder master | |
#set up project base folder | |
git clone [email protected]:silverstripe/silverstripe-installer.git $1 | |
cd $1 | |
git checkout $2 |
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 | |
require_once __DIR__ . '/../vendor/silex/silex.phar'; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
$app = new Silex\Application(); |
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
# install silverstripe + common modules from github | |
# usage sh install_silverstripe.sh <folder_name> <tag/branch> | |
# examples: | |
# sh install_silverstripe.sh some_folder tags/2.4.5 | |
# sh install_silverstripe.sh some_folder master | |
#set up project base folder | |
git clone [email protected]:silverstripe/silverstripe-installer.git $1 | |
cd $1 | |
git checkout $2 |
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 | |
/** | |
* Tweaked Symfony2 bootstrap file | |
*/ | |
// if you don't want to setup permissions the proper way, just uncomment the following PHP line | |
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | |
umask(0000); | |
if ( file_exists( dirname(__FILE__).'/../.env.php' ) ){ |
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 registerContainerConfiguration(LoaderInterface $loader) { | |
if ($this->getEnvironment() == 'dev') { | |
$extrafiles = array( | |
__DIR__ . '/config/config_local.yml', | |
); | |
foreach ($extrafiles as $filename) { | |
if (file_exists($filename) && is_readable($filename)) { | |
$loader->load($filename); | |
} |
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
#!/bin/sh | |
#install SilverStripe3 CMS | |
#usage sh install_silverstripe3.sh | |
DEFAULT_BROWSER="/usr/bin/firefox" | |
RELEASE="SilverStripe-cms-v3.0.1.tar.gz" | |
RELEASE_FOLDER="SilverStripe-cms-v3.0.1" | |
echo "-------------- Install $RELEASE from web :) ---------------" | |
echo "Type your Project Folder:" |
OlderNewer