Skip to content

Instantly share code, notes, and snippets.

View BjoernSchotte's full-sized avatar
:bowtie:
Tinkering 🤖

Björn Schotte BjoernSchotte

:bowtie:
Tinkering 🤖
View GitHub Profile
/*
* found on https://confluence.atlassian.com/display/CONFKB/2012/12/17/Advance+warning+of+plans+to+merge+Documentation+theme+with+the+default+theme?focusedCommentId=320603332#comment-320603332
*/
<script type="text/javascript">
AJS.toInit(function ($) {
//improve the pagetree functionality: "selected" class at selected page and expand the children of selected page
//first save the original pagetree function "origHideEmptyChildrenContainer"
var origHideEmptyChildrenContainer = AJS.pagetree.hideEmptyChildrenContainers;
//define our own one and overwrite the original pagetree function "hideEmptyChildrenContainers"
//this function is called by the pagetree after children loading
exports.init = function() {
if (!Ti.Android || Ti.Platform.Android.API_LEVEL < 13 || Ti.Network.online == false) {
Ti.UI.createNotification({
backgroundColor : 'red',
message : 'Dieses Gerät kann zur Zeit keine Kurzbenachrichtigungen empfangen'
}).show();
return;
}
var CloudPush = require('ti.cloudpush');
var deviceToken = null;

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related

@BjoernSchotte
BjoernSchotte / jira-activity.coffee
Created December 4, 2012 18:59 — forked from codec/jira-activity.coffee
JIRA Activity Stream script for Hubot - posts new stream activity to your jabber conference
FeedParser = require('feedparser')
ent = require('ent')
{EventEmitter} = require('events')
class ActivityStream extends EventEmitter
constructor: (@url, @robot) ->
@robot.logger.info("ActivityStream for #{@url}")
self = this
self.guid = "urn:uuid:a1c4b672-fc6d-3a82-8522-0e05350297de"
@BjoernSchotte
BjoernSchotte / travis-ci-phpenv-sugarcrmce.txt
Created September 15, 2012 15:42
PHPENV+vhost Setup for SugarCRM CE travis-ci build
# PHPENV Setup
<IfModule alias_module>
ScriptAlias /phpenv "/home/vagrant/.phpenv/shims"
<Directory "/home/vagrant/.phpenv/shims">
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mime_module>