This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('libs/jquery/jquery').addMashup(function() { | |
function showReport() { | |
$('head').append('<style type="text/css">' | |
+'table.board-efforts tr.hoverHi:hover {background: #E3F5D7 !important}' | |
+'table.board-efforts tr {border-bottom: 1px dotted #eee !important}' | |
+'table.board-efforts td {height: 20px; }' | |
+'table.board-efforts td em {font-size: smaller;}' | |
+'table.board-efforts {border-collapse: collapse;}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency("libs/jquery/jquery") | |
.addMashup(function(config) { | |
var alertEl = '<br/><br/><div class="alert"><strong>Heads up!</strong> This is an awesome message!</div>'; | |
$(document).ready(function() { | |
$('div#ctl00_helpPanel').append(alertEl); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('libs/jquery/jquery') | |
.addMashup(function ($, config) { | |
// Put projects => states' names that you want to hide here | |
// projects can be a regular expression | |
var statesToHideConfiguration = { | |
'Private Universe #[0-9]+': ['Invalid', 'Fixed'] | |
}; | |
// gathers the project name from the div.x-panel-kanban-header > span |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('tp/mashups') | |
.addDependency('user/mashups') | |
.addDependency('jQuery') | |
.addDependency('Underscore') | |
.addDependency('tp3/mashups/context') | |
.addDependency('tau/core/bus.reg') | |
.addDependency('tau/configurator') | |
.addMashup(function (m, um, $, _, context, busRegistry, configurator) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('tp/mashups') | |
.addDependency('user/mashups') | |
.addDependency('jQuery') | |
.addDependency('Underscore') | |
.addDependency('tp3/mashups/context') | |
.addDependency('tau/core/bus.reg') | |
.addDependency('tau/configurator') | |
.addMashup(function (m, um, $, _, context, busRegistry, configurator) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('libs/jquery/jquery') | |
.addMashup(function ($, config) { | |
// Put states' names that you want to hide here | |
var statesToHide = ["In Progress", "Fixed"]; | |
for (var i = 0; i < statesToHide.length; i++) { | |
var headers = $(".kanban-swimlane-header-wrap span:contains('"+statesToHide[i]+"')").filter(function() { | |
return $(this).text().match("^"+statesToHide[i]) != null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tau.mashups | |
.addDependency('tp/mashups') | |
.addDependency('user/mashups') | |
.addDependency('jQuery') | |
.addDependency('Underscore') | |
.addDependency('tp3/mashups/context') | |
.addDependency('tau/core/bus.reg') | |
.addDependency('tau/configurator') | |
.addMashup(function (m, um, $, _, context, busRegistry, configurator) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
class ReoccuringTask(object): | |
def __init__(self, recurrence): | |
self.schedule = recurrence | |
def __call__(self, orig_func): | |
decorator_self = self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('TP_URL', 'http://enzinna.tpondemand.com/'); | |
define('TP_USER', 'admin'); | |
define('TP_PASS', 'admin'); | |
# GET a story | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, TP_URL."api/v1/UserStories/201?format=json"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
from django.db.models.signals import pre_save | |
def full_clean_on_save(cls): | |
""" | |
Class decorator that automatically calls full_clean() when a model is saved. | |
""" | |
def connect(signal, func): | |
cls.func = staticmethod(func) | |
@wraps(func) |
OlderNewer