Skip to content

Instantly share code, notes, and snippets.

Avatar

Magnus Siverbrant paddelkraft

  • Volvo IT
  • Sweden
View GitHub Profile
@paddelkraft
paddelkraft / jiraBoardImprovement.js
Last active Feb 2, 2016
Improve functionality of jira boards.
View jiraBoardImprovement.js
'use strict';
(function(){
require(["jquery"],function($) {
var ColorUtil = {
"getBackgroundColorCode":function(element){
var colorCode = $(element).css("background-color");
console.log("background-color = "+ colorCode);
return colorCode;
@paddelkraft
paddelkraft / board.js
Last active Aug 29, 2015
TFSkanbanBuddyUserScript
View board.js
function jsonDecode(string) {
try {
return JSON.parse(string);
} catch (e) {
try{
return JSON.decode(string);
}catch(e2){
return {};
}
}
@paddelkraft
paddelkraft / improve-board.js
Created Jun 17, 2014
Tfs 2012 Kanban board inprovements
View improve-board.js
// ==UserScript==
// @name Kanban improve (common)
// @namespace http://tfs2012.company.net/
// @version 0.1
// @description Does the usability improvements over standard SharePoint Kanban board
// @match http://tfs2012.company.net:8080/tfs/Global/Shop/_backlogs/board
// @copyright 2014+
// ==/UserScript==a
(function () {
@paddelkraft
paddelkraft / garminHistoryCopy.sh
Last active Aug 29, 2015
Copy Garmin Training History Mac
View garminHistoryCopy.sh
#!/bin/bash
destination_dir=~/Documents/training/garminData/
#device=$(ls ~/Library/Application\ Support/Garmin/Devices/)
for device in $(ls ~/Library/Application\ Support/Garmin/Devices/)
do
echo "Copy history files for Device $device"
cp ~/Library/Application\ Support/Garmin/Devices/$device/History/*.TCX $destination_dir
done