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
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}"
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);
lcorneliussen / YieldingFinder.cs
Created Jan 21, 2011
Generated yielding getIds()-Method.
View YieldingFinder.cs
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 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] 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] It is highly recommended to fix these problems because they threaten the stability of your build.
View npanday-settings.xml
<?xml version="1.0" encoding="utf-8"?>
<npandaySettings xmlns:xsi="" xmlns:xsd="">
<operatingSystem>Microsoft Windows NT 6.1.7600.0</operatingSystem>
lcorneliussen / jira-extract-issue-links.js
Last active Nov 21, 2019
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:
/*interface KnockoutObservableArray<T> {
You can’t perform that action at this time.