Skip to content

Instantly share code, notes, and snippets.

Lars Corneliussen lcorneliussen

Block or report user

Report or block lcorneliussen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lcorneliussen
lcorneliussen / jira-extract-issue-links.js
Last active Apr 25, 2017
A bookmarklet for copying jira issues keys and summaries from a agile planning page or an open jira issue.
View jira-extract-issue-links.js
View knockout.deltas.d.ts
/// <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> {
View npanday-settings.xml
<?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>
View 1.3-incubating-its-console.txt
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 Jan 21, 2011
Generated yielding getIds()-Method.
View YieldingFinder.cs
[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
View ResizeType.cs
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);
View antexec.groovy
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}"
You can’t perform that action at this time.