Skip to content

Instantly share code, notes, and snippets.

View nielsnuebel's full-sized avatar

Niels Nübel nielsnuebel

View GitHub Profile
/**
* Get the Repeatable Field information.
*
* @param string $repeatableField The component option.
* @param boolean $returnarray The component option.
*
* @return object An object with the information for the component.
*
* @since 1.5
*/
<?php
/**
* @package Joomla.Site
* @subpackage com_content
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
<?php
/**
* Joomla! System plugin - KickLangDefault
*
* @author KickTemp <[email protected]>
* @copyright Copyright 2016 KickTemp
* @license GNU Public License
* @link http://www.kicktemp.com
*/
<?xml version="1.0" encoding="utf-8"?>
<metafile version="3.3" client="site" method="upgrade">
<tag>ch-CH</tag>
<name>German (Switzerland)</name>
<version>3.4.8.1</version>
<creationDate>25.12.2015</creationDate>
<author>J!German</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.jgerman.de</authorUrl>
<copyright>Copyright (C) 2005 - 2015 Open Source Matters &amp; J!German. All rights reserved.</copyright>
# This is a short collection of tools that are useful for managing your
# known_hosts file. In this case, I'm using the '-f' flag to specify the
# global known_hosts file because I'll be adding many deploy users on this
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts
# Add entry for host
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts
# Scan known hosts
<?php
/**
* GitHub webhook handler template.
*
* @see https://developer.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check
<?php
/**
* @package Joomla.Site
* @subpackage mod_kickintro
*
* @author Niels Nübel <[email protected]>
* @copyright Copyright (c) 2013-2016 niels-nuebel.de
* @license GNU General Public License version 2 or later
*/
.row-flex {
.make-row();
display: flex;
flex-wrap: wrap;
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
position: relative;
min-height: 1px;
padding-left: @grid-gutter-width;
padding-right: @grid-gutter-width;
// Restart GIFs (doesn't work in Firefox)
if( /\.gif/i.test( backgroundImageURL ) ) {
var searchstring = '.gif?currenttime=';
var timestamp = Math.floor(Date.now() / 1000)
var position = backgroundImageURL.indexOf(searchstring);
if(position !== -1) {
var oldtimestamp = backgroundImageURL.substr(position + searchstring.length, timestamp.length);
backgroundImageURL = backgroundImageURL.replace(oldtimestamp,timestamp);
}
else {