Skip to content

Instantly share code, notes, and snippets.

@campersau
campersau / index.html
Last active December 15, 2015 14:29
d3 insert order
<ul></ul>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script>
d3.select("ul").selectAll("li").data(d3.range(2, 5), identity).enter()
.append("li")
.text(identity);
d3.select("ul").selectAll("li").data(d3.range(0, 8), identity).enter()
.insert("li", function(d, i) {
@campersau
campersau / AccessViolationException
Created February 8, 2016 11:07
CefSharp.OffScreen.ChromiumWebBrowser Parallel Screenshot Crash
System.AccessViolationException ist aufgetreten.
HResult=-2147467261
Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Source=CefSharp.Core
StackTrace:
bei CefSharp.Internals.CefSharpBrowserWrapper.CloseBrowser(Boolean forceClose)
InnerException:
Callstack:
@campersau
campersau / HttpMessageGzipEncoder.cs
Created April 7, 2016 09:11
Griffin.Framework HTTP GZIP Message Encoder
using System;
using System.IO;
using Griffin.Net.Channels;
using System.IO.Compression;
using System.Text;
namespace Griffin.Net.Protocols.Http
{
/// <summary>
/// Used to encode request/response into a byte stream.
info: BugTracker set version: 1.1.11
info: BugTracker set user hash
info: BugTracker set version: 1.1.11
Setting log level to warn
Browse to http://localhost:8448/#/repository?path=C%3A%5CUsers%5Ctryst
Took 8297ms to start server.
## Ungit started ##
2017-04-04T06:56:57.259Z - warn: Responding with ERROR: {"isGitError":true,"errorCode":"unknown","command":"-c color.ui=false -c core.quotepath=false -c core.pager=cat -c credential.helper=C:/Users/tryst/AppData/Roaming/npm/node_modules/ungit/bin/credentials-helper 0 8448 fetch origin --prune","workingDirectory":"C:\\DEV\\sources\\Imas","error":"C:\\Users\\tryst\\AppData\\Roaming\\npm\\node_modules\\ungit\\bin\\credentials-helper
[-v] [-b] [--cliconfigonly] [--gitVersionCheckOverride]
@campersau
campersau / Program.cs
Last active June 26, 2021 13:48
open bi .NET API - Create a CMS
using BiExcellence.OpenBi.Api;
using BiExcellence.OpenBi.Api.Commands;
using BiExcellence.OpenBi.Api.Commands.Cms;
using BiExcellence.OpenBi.Api.Commands.HostHeaders;
using BiExcellence.OpenBi.Api.Commands.RoleContents;
using BiExcellence.OpenBi.Api.Commands.Roles;
// Connection information to the open bi Repository server
var config = new OpenBiConfiguration(protocol: Protocol.HTTP, host: "localhost", port: 9091, applicationName: "Console App");
@campersau
campersau / Program.cs
Created July 4, 2021 12:37
open bi server - Custom Command Handler Plugin
using BiExcellence.OpenBi.Server.License.Abstractions;
using Ibssolution.biox.Repositoryserver;
using Newtonsoft.Json.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace CustomCommandHandlerExample
{
public class CustomCommandHandler : IAsyncRequestHandler
{
@campersau
campersau / Program.cs
Created July 4, 2021 13:14
open bi server - Custom Command Handler Client
using BiExcellence.OpenBi.Api;
using BiExcellence.OpenBi.Api.Commands;
using System.Text.Json;
using System.Threading;
// Connection information to the open bi Repository server
var config = new OpenBiConfiguration(protocol: Protocol.HTTP, host: "localhost", port: 9091, applicationName: "Console App");
await using (var session = new OpenBiSession(configuration: config))
{
@campersau
campersau / Program.cs
Created July 13, 2021 19:28
open bi server - Custom HTTP Handler Server
using BiExcellence.OpenBi.Server.License.Abstractions;
using Ibssolution.biox.Repositoryserver;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace CustomHttpHandlerExample
{
public class CustomHttpHandler : IAsyncHttpHandler
{
@campersau
campersau / Program.cs
Created July 14, 2021 11:06
open bi server - Custom HtmlItem
using BiExcellence.OpenBi.Server.License.Abstractions;
using HtmlAgilityPack;
using Ibssolution.biox.Repositoryserver;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
namespace CustomHtmlItemExample
{
public class CustomHtmlItem : HtmlItem
@campersau
campersau / Program.cs
Created July 27, 2021 15:41
open bi server - Custom Batch Job Handler
using BiExcellence.OpenBi.Server.License.Abstractions;
using Ibssolution.biox.Repositoryserver;
using Microsoft.Extensions.Logging;
using System.Threading;
using System.Threading.Tasks;
namespace CustomBatchJobHandlerExample
{
public class CustomBatchJobHandler : BatchHandlerBase
{