Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Jira Print
// @namespace https://github.com/andreasisaak
// @match https://*.atlassian.net/sr/jira.issueviews:searchrequest-printable/*
// @description Jira Print
// @version 1
// @author Patrick Kahl <kahl.patrick@googlemail.com>, Andreas Isaak <andy.jared@googlemail.com>
// ==/UserScript==
(function() {
// ==UserScript==
// @name Jira Detailprint
// @namespace https://github.com/andreasisaak
// @match https://*.atlassian.net/si/jira.issueviews:issue-html/*
// @description Jira Detailprint
// @version 1
// @author Patrick Kahl <kahl.patrick@googlemail.com>, Andreas Isaak <andy.jared@googlemail.com>
// ==/UserScript==
(function() {
// ==UserScript==
// @name Jira Detail Styling
// @namespace https://github.com/andreasisaak
// @match https://*.atlassian.net/browse/*
// @description Jira Detail Styling
// @version 1
// @author Andreas Isaak <andy.jared@googlemail.com>
// ==/UserScript==
(function() {
// ==UserScript==
// @name Jira Filter List Styling
// @namespace https://github.com/andreasisaak
// @match https://*.atlassian.net/*
// @description Jira Filter List Styling
// @version 1
// @author Patrick Kahl <kahl.patrick@googlemail.com>, Andreas Isaak <andy.jared@googlemail.com>
// ==/UserScript==
;(function() {
@andreasisaak
andreasisaak / SassMeister-input.scss
Created March 9, 2018 16:17
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
@andreasisaak
andreasisaak / SassMeister-input.scss
Created March 9, 2018 16:17
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
@andreasisaak
andreasisaak / jquery.debugsizes.js
Created December 9, 2016 13:58
Debug width and height of elements on resize
var debugItemSize = function () {
var debug = jQuery('.YOUR_CLASS');
debug.each(function () {
var span;
if (jQuery(this).find('.debug-span').length) {
span = jQuery(this).find('.debug-span');
} else {
span = jQuery('<span />').addClass('debug-span');
@andreasisaak
andreasisaak / _mq.scss
Created January 5, 2016 10:16
Mediaquery mixin
// Mediaquery mixin with mobile first approach
//
// $values - One or two numbers for the breakpoint
// $query - Use min(-width) or max(-width). Default: min.
// $expansion - Choose between width and height in the expansion? Default: width.
@mixin mq($values, $query: min, $expansion: width) {
@if length($values) > 1 {
$min: nth($values, 1);
$max: nth($values, 2);
@andreasisaak
andreasisaak / gist:7085018
Created October 21, 2013 14:41
Use contao functions to trim text
<?php
echo '<p class="teaser">' . String::getInstance()->substr($this->text, 80) . '</p>';
?>
@andreasisaak
andreasisaak / gist:7084979
Created October 21, 2013 14:40
Use retina images in template files
<?php $objInput = Input::getInstance(); ?>
<?php $objCookie = json_decode($objInput->cookie("retina")); ?>
<?php echo ($objCookie->hasRetina) ? $this->getImage('src', 'retina_width', 'retina_height') : $this->getImage('src', 'width', 'height'); ?>