Jonas Coch klaftertief

View gist:2995194
1 2 3 4 5 6 7 8 9 10
public function fetchNavigation(){
return array(
array(
'location' => __('System'),
'name' => __('Menu Item Name'),
'link' => '/link/',
'limit' => 'developer'
)
);
}
View AddExtension.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
DEFAULT_BRANCH="master"
. .symbuilder
 
extensions=$webroot"/extensions/"
 
if [ $# -eq 1 ]
then
# get a name for new project from command line arguments
extension_name="$1"
View master.xml
1 2 3 4 5 6 7 8 9 10
<ssstudent_list>
<student>
<name>George Washington</name>
<major>Politics</major>
<phone>312-123-4567</phone>
<email>gw@example.edu</email>
</student>
<student>
<name>Janet Jones</name>
<major>Undeclared</major>
View Nginx Megaconf
1 2 3 4 5 6 7 8 9 10
server {
server_name "~^((?<subdomain>www)\.)?(?<domain>location\.com)$";
index index.php index.htm index.html default.asp;
 
## Performs 301 redirects to non-www plus other minor things.
#include templates/server.main.conf;
# ----------------------------------------------------------------------->
 
# set main domain root to _
if ($subdomain = "") {
View gist:858462
1 2 3 4 5 6 7 8 9 10
/**
* @package assets
*/
 
(function($) {
 
/**
* This plugin creates a Symphony duplicator.
*
* @param {Object} custom_settings
View gist:857392
1 2 3 4 5 6 7 8 9 10
// Clickable utilities in the XSLT editor
$('#utilities li').click(function(event) {
if ($(event.target).is('a')) return;
 
var editor = $('textarea.code'),
lines = editor.val().split('\n'),
statement = '<xsl:import href="../utilities/' + $(this).find('a').text() + '"/>',
regexp = '^' + statement.replace('/>', '').replace('../utilities/', '(?:\.\./utilities/)?'),
newLine = '\n',
numberOfNewLines = 1,
View gist:629757
1 2 3 4 5 6 7 8 9 10
public function grab(&$param_pool=NULL){
// I am not able to access $param_pool, so I'm taking a detour via Frontend::Page()
$page = Frontend::Page();
// CREATE XML DOCUMENT
$doc = new DOMDocument;
$root = $doc->createElement($this->dsParamROOTELEMENT);
$doc->appendChild($root);
// APPEND ARTICLES
View gist:583905
1 2 3 4 5 6 7 8 9 10
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
View gist:491174
1 2 3 4 5 6 7 8 9 10
// everyone's new favorite closure pattern:
(function(window,document,undefined){ ... })(this,this.document);
 
// when minified:
(function(w,d,u){ ... })(this,this.document);
 
// which means all uses of window/document/undefined inside the closure
// will be single-lettered, so big gains in minification.
 
// it also will speed up scope chain traversal a tiny tiny little bit.
View data.days.php
1 2 3 4 5 6 7 8 9 10
<?php
 
require_once(TOOLKIT . '/class.datasource.php');
Class datasourcedays extends Datasource{
public $dsParamROOTELEMENT = 'days';
public $dsParamURL = 'http://symphony.dev';
public $dsParamXPATH = '/';
public $dsParamCACHE = '60';
Something went wrong with that request. Please try again.