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 | |
/** | |
* @author Atanas Vasilev | |
* @link http://pastebin.com/dHbqjUNy | |
*/ | |
define('STR_BOM', "\xEF\xBB\xBF"); | |
$file = null; | |
$directory = getcwd(); |
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 | |
/** | |
* TinyMCE Addon | |
* | |
* @author andreaseberhard[at]gmail[dot]com Andreas Eberhard | |
* @author <a href="http://www.redaxo.de">www.redaxo.de</a> | |
* | |
* @package redaxo4 | |
* @version svn:$Id$ |
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 | |
$nav = new advanced_rex_navigation(); | |
$main_navigation = $nav->get(0,3,FALSE,TRUE,'main'); | |
// 'main' ist der name des navigationstyps | |
// bitte anpassen je nach einstellung im meta-info-addon | |
/* weitere setter methoden: | |
$nav->setClasses(array('menu_item')); | |
$nav->setSeperator('/'); |
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 | |
error_reporting(0); | |
include 'redaxo/include/master.inc.php'; | |
error_reporting(E_ALL ^E_NOTICE); | |
ini_set('display_errors', 1); | |
$CLONE_THIS_ID = 184; | |
$DUPLICATE_MODULES = 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
<?php | |
// Dieses Skript synced nur Kategorien. Sollen auch Artikel gesynced werden, | |
// einfach catprior durch prior ersetzen (an allen Stellen) | |
// Quellsync ist CLANG 0 (Sprache 1) | |
// Es werden ALLE anderen Sprachen gesynced. | |
// Falls nur bestimmte Sprachen gesynced werden sollen, einfach Statement anpassen | |
$query = 'SELECT * FROM rex_article WHERE clang = 0'; | |
$db_conn = rex_sql::factory(); |
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 | |
// Dieses simple Skript synced ausgehend von clang 0 (siehe Zeile 5) einige Metadaten und die Prio | |
// in allen anderen Sprachen außer der Sprache mit ID 0 | |
// Des Weiteren wird der Status synchronisiert (und meine Custom Metadaten cat_navigationstyp und cat_background_picture) | |
// Das Script kann ganz einfach an eigene Metadaten angepasst werden | |
// Anschließend als Modul speichern, in einen Artikel reinfeuern und speichern. Nach dem Speichern kann das Skript auch direkt wieder gelöscht werden, weil es sonst immer wieder (auch im Backend) ausgeführt wird und ggf. nachträglich alles überschreibt. Wenn gewünscht, eine if(!$REX['REDAXO']) abfrage rein, damit es nur im Frontend ausgeführt wird. | |
$query = 'SELECT * FROM rex_article WHERE clang = 0'; | |
$db_conn = rex_sql::factory(); |
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
function get_vimeoid( $url ) { | |
$regex = '~ | |
# Match Vimeo link and embed code | |
(?:<iframe [^>]*src=")? # If iframe match up to first quote of src | |
(?: # Group vimeo url | |
https?:\/\/ # Either http or https | |
(?:[\w]+\.)* # Optional subdomains | |
vimeo\.com # Match vimeo.com | |
(?:[\/\w]*\/videos?)? # Optional video sub directory this handles groups links also | |
\/ # Slash before Id |
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 esseintal packages for opencv | |
apt-get -y install build-essential | |
apt-get -y install cmake | |
apt-get -y install pkg-config | |
apt-get -y install libgtk2.0-dev libgtk2.0 | |
apt-get -y install zlib1g-dev | |
apt-get -y install libpng-dev | |
apt-get -y install libjpeg-dev | |
apt-get -y install libtiff-dev | |
apt-get -y install libjasper-dev |
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
<!doctype html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Orientation Test</title> | |
<style> | |
body { text-align: center; } | |
@media all and (orientation:portrait) { | |
body { font-size: 35em; margin-top: .3em; } | |
} |
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
/*! | |
* angular-masonry 0.10.0 | |
* Pascal Hartig, weluse GmbH, http://weluse.de/ | |
* fixed / optimized for OnseuUI by Hirbod Mirjavadi, nightstomp, http://nightstomp.com | |
* License: MIT | |
*/ | |
(function () { | |
'use strict'; | |
angular.module('wu.masonry', []).controller('MasonryCtrl', [ | |
'$scope', |
OlderNewer