Skip to content

Instantly share code, notes, and snippets.

View pfrenssen's full-sized avatar

Pieter Frenssen pfrenssen

  • Sofia, Bulgaria
View GitHub Profile
{
init: function(elevators, floors) {
var queue = [];
elevators.forEach(function (elevator) {
elevator.on("idle", function() {
// If there is a floor in the queue, go there.
if (queue.length > 0) {
var floor = queue.shift();
goToFloor(elevator, floor);
}
@pfrenssen
pfrenssen / gist:b14b86442d188688b2d6
Last active March 27, 2020 12:07
Jira keyboard accessibility user style for Stylus
/* Jira Agile */
/* Allow to scroll the page with the keyboard in the Plan view */
#ghx-plan,
#ghx-plan-group,
#ghx-rabid,
#ghx-work,
#page,
#js-detail-nav-content {
height: auto !important;
@pfrenssen
pfrenssen / deletemergedbranches.sh
Last active September 22, 2017 10:02
Checks the available git branches and deletes all branches that are fully merged in the main branch.
#!/bin/bash -e
# Checks the available git branches and deletes all branches that are fully
# merged in the main branch.
#
# Source: http://devblog.springest.com/a-script-to-remove-old-git-branches
# Configuration
if [ -z ${MAIN_BRANCH} ]; then
MAIN_BRANCH=develop
@pfrenssen
pfrenssen / locatedrupal.sh
Last active December 21, 2016 20:29
Get all paths to Drupal sites on a server
#!/bin/bash
# Author: Alan Ivey
# http://echodittolabs.org/blog/2011/01/are-your-drupal-sites-running-latest-core
# Default path.
WEBHOME=/var/www
# Default limit on subfolder depth to speed up the search.
MAX_DEPTH=6