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
'use strict'; | |
angular.service('$FUEL', function($resource,$xhr){ | |
function Route(template, defaults) { | |
this.template = template = template + '#'; | |
this.defaults = defaults || {}; | |
var urlParams = this.urlParams = {}; | |
forEach(template.split(/\W/), function(param){ | |
if (param && template.match(new RegExp(":" + param + "\\W"))) { |
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
function OrganizationManagementCreateCtrl($route,$location) | |
{ | |
var self = this; | |
this.$route = $route; | |
this.test123 = 'XXX'; | |
this.formtemplate = 'partial_form.html'; | |
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
<h2>Description 1</h2> | |
<?php | |
Loader::element('editor_init'); | |
Loader::element('editor_config'); | |
Loader::element('editor_controls'); | |
?> | |
<div class="ccm-block-field-group" id="ccm-editor-pane"> | |
<textarea id="description" class="ccm-advanced-editor advancedEditor" name="description" rows="5" style="width: 95%;"><?php echo $description; ?></textarea> | |
</div> |
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
return array( | |
/** | |
* global configuration | |
*/ | |
// set it to false to prevent the static session from auto-initializing, know that it might make your session | |
// expire sooner because it's not updated when it's not used. note that auto-initializing always loads the default driver | |
'auto_initialize' => true, | |
// if no session type is requested, use the default |
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
/* jqueryFileUpload-Plugin | |
https://github.com/blueimp/jQuery-File-Upload */ | |
MYANGULARAPP.directive('myJqueryfileupload', function(){ | |
return{ | |
restrict:'E', | |
compile:function(el,attrs){ | |
var compiler = this; | |
var elem = el; | |
// 2DO: serialize it from json? |
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
/* | |
*usage: <textarea ui:pagedown-bootstrap ng:model="box.content"></textarea> | |
*/ | |
myApp.directive('uiPagedownBootstrap', function() { | |
var nextId = 0; | |
return { | |
require: 'ngModel', | |
replace:true, | |
template:'<div class="pagedown-bootstrap-editor"></div>', |
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
function view() { | |
$this->loadBlockInformation(); | |
$ih = Loader::helper('image'); | |
$images = $this->images; // they are loaded | |
if($this->activateRandom == true) | |
{ | |
shuffle($images); |
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
RewriteEngine On | |
RewriteRule /p/*$ http://yourpad.de/ [NC,L] | |
RewriteCond %{REQUEST_URI} !^/locales/ | |
RewriteCond %{REQUEST_URI} !^/locales.json | |
RewriteCond %{REQUEST_URI} !^/admin | |
RewriteCond %{REQUEST_URI} !^/p/ | |
RewriteCond %{REQUEST_URI} !^/static/ | |
RewriteCond %{REQUEST_URI} !^/pluginfw/ | |
RewriteCond %{REQUEST_URI} !^/javascripts/ | |
RewriteCond %{REQUEST_URI} !^/socket.io/ |
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
var locale = {"en-US":"<?xml version=\"1.0\" encoding=\"utf-8\"?><locale xmlns=\"http://purl.org/net/xbiblio/csl\" version=\"1.0\" xml:lang=\"de-DE\"><info><rights license=\"http://creativecommons.org/licenses/by-sa/3.0/\">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2012-07-04T23:31:02+00:00</updated></info><style-options punctuation-in-quote=\"false\"/> <date form=\"text\"> <date-part name=\"day\" form=\"ordinal\" suffix=\" \"/> <date-part name=\"month\" suffix=\" \"/> <date-part name=\"year\"/> </date> <date form=\"numeric\"> <date-part name=\"day\" form=\"numeric-leading-zeros\" suffix=\".\"/> <date-part name=\"month\" form=\"numeric-leading-zeros\" suffix=\".\"/> <date-part name=\"year\"/> </date> <terms> <term name=\"accessed\">zugegriffen</term> <term name=\"and\">und</term> <term name=\"and others\">und andere</term> <term name=\"anonymous\">ohne Autor</term> <term name=\"anonymous\" form=\"short\">o. A.</term> |
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
/* include this in your story javascript (story-> edit story javascript) | |
I used this in my interactive video textadventure: http://matthias-andrasch.de/2015/ela-twine-textadventure-mit-html5-video | |
*/ | |
/* chrome does not let this happen from disk unfortunately, only in firefox */ | |
if(typeof meSpeak === 'undefined'){ | |
$.getScript("mespeak/mespeak.full.js").fail(function(){ | |
console.log('loading mespeak via ajax failed, trying it the old school way'); | |
var js = document.createElement("script"); |
OlderNewer