Skip to content

Instantly share code, notes, and snippets.

View lcorneliussen's full-sized avatar

Lars Corneliussen lcorneliussen

View GitHub Profile
@lcorneliussen
lcorneliussen / jira-extract-issue-links.js
Last active April 26, 2022 16:09
A bookmarklet for copying jira issues keys and summaries from a agile planning page or an open jira issue.
/// <reference path="../../Scripts/knockout.d.ts" />
interface KnockoutSubscribableArray<T> {
deltas(callback: (added: T[]) => void): KnockoutSubscription;
deltas(callback: (added: T[], removed: T[]) => void): KnockoutSubscription;
deltas(callback: (added: T[], removed: T[], all: T[]) => void): KnockoutSubscription;
}
// redefined until bug is fixed: https://typescript.codeplex.com/workitem/1351
/*interface KnockoutObservableArray<T> {
<?xml version="1.0" encoding="utf-8"?>
<npandaySettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<operatingSystem>Microsoft Windows NT 6.1.7600.0</operatingSystem>
<defaultSetup>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>2.0.50727</vendorVersion>
<frameworkVersion>2.0.50727</frameworkVersion>
</defaultSetup>
<vendors>
<vendor>
C:\Workbench\NPanday\npanday-its-1.3-incubating>mvn clean test -Prun-its -Dnpanday.version=1.3-incubating
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for npanday.its:npanday-its:jar:1.3-incubating
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 85, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 39, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 60, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
@lcorneliussen
lcorneliussen / YieldingFinder.cs
Created January 21, 2011 12:38
Generated yielding getIds()-Method.
[CompilerGenerated]
private sealed class <getIds>d__0 : IEnumerable<int>, IEnumerable, IEnumerator<int>, IEnumerator, IDisposable
{
// Fields
private int <>1__state;
private int <>2__current;
public YieldingFinder <>4__this;
private int <>l__initialThreadId;
// Methods
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace lcorneliussen
{
public interface IResizeType
{
Size CalcNewSize(Size currentSize, Size newSize, bool resizeIfSmaller);
def mixinAntExec() {
String.metaClass.antExec = {failOnError=true -> antExec([delegate], failOnError)}
ArrayList.metaClass.antExec << {failOnError=true -> antExec(delegate, failOnError)}
}
def antExec(command, failOnError=true) {
def commandLiteral = command.collect{it.contains(' ') ? '"' + it + '"' : it}.join(' ')
println "ant exec with: ${commandLiteral}"