Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Built @triggerz using #continuousdeployment, #nodejs, #react and #postgresql

Lars Thorup larsthorup

💭
Built @triggerz using #continuousdeployment, #nodejs, #react and #postgresql
View GitHub Profile
@larsthorup
larsthorup / CommentReader.cs
Created Apr 15, 2012
Place your test data next to the test code.
View CommentReader.cs
using System;
using System.Diagnostics;
using System.Reflection;
using System.Xml;
using NUnit.Framework;
/// <summary>
/// Written in June 2006 by Lars Thorup, ZeaLake and Sune Gynthersen, BestBrains
/// Description here: http://www.zealake.com/2012/04/15/commentreader-place-your-test-data-next-to-the-test-code/
/// </summary>
@larsthorup
larsthorup / navigation.js
Last active Aug 29, 2015
Navigation sample code
View navigation.js
define(['jquery', 'Q', 'evaluator'], function ($, Q, Evaluator) {
var Navigation = {};
var search = function (tree, propertyName) {
if ($.isArray(tree)) {
for (var i = 0; i < tree.length; ++i) {
return search(tree[i], propertyName);
}
} else if ($.isPlainObject(tree)) {
View gist:7c790a1b312a82bc79f1
2015-06-19 08:36:14,194 [156666801] INFO - j.ide.startup.FileContentQueue - C:\r\larsthorup\todomvc-ember-cli\tmp\tree_merger-tmp_dest_dir-LzeL3teO.tmp\ember-localstorage-adapter\LICENSE (The system cannot find the path specified)
java.io.FileNotFoundException: C:\r\larsthorup\todomvc-ember-cli\tmp\tree_merger-tmp_dest_dir-LzeL3teO.tmp\ember-localstorage-adapter\LICENSE (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.contentsToByteArray(LocalFileSystemBase.java:485)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:505)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:108)
at com.intellij.ide.caches.FileContent.getBytes(FileContent.java:50)
at com.intellij.openapi.project.FileCont
@larsthorup
larsthorup / gist:e581739eb50bf29399de
Created Jun 23, 2015
Error: Sandbox receiver error
View gist:e581739eb50bf29399de
wallaby.js started
core v1.0.68
Tue, 23 Jun 2015 04:41:06 GMT wallaby:project File cache: C:\Users\lars_000\.WebStorm10\system\wallaby\projects\d2fcb17d51b9cdba
Tue, 23 Jun 2015 04:41:06 GMT wallaby:workers Parallelism for initial run: 2, for regular run: 2
Tue, 23 Jun 2015 04:41:06 GMT wallaby:workers Starting run worker instance #0
Tue, 23 Jun 2015 04:41:06 GMT wallaby:workers Starting run worker instance #1
Tue, 23 Jun 2015 04:41:06 GMT wallaby:workers Web server is listening at 54507
Tue, 23 Jun 2015 04:41:07 GMT wallaby:project Stopping process pool
Tue, 23 Jun 2015 04:41:07 GMT wallaby:project File cache is up-to-date, starting full test run
Tue, 23 Jun 2015 04:41:07 GMT wallaby:project Running postprocessor