Skip to content

Instantly share code, notes, and snippets.

@boussou
boussou / stringify.js
Last active October 8, 2020 20:23 — forked from zmmbreeze/stringify.js
Converting circular structure to JSON on JSON.stringify / this is a version of the solution for Vue.js
// http://stackoverflow.com/questions/11616630/json-stringify-avoid-typeerror-converting-circular-structure-to-json/11616993#11616993
//this is a version for Vue.js
//filters vue.js internal properties
//you can extend Vue object instead
Object.stringify = function(value, space) {
var cache = [];
var output = JSON.stringify(value, function (key, value) {
@RickStrahl
RickStrahl / CompilingCSharpCode.cs
Last active June 7, 2025 09:26
A few different approaches to dynamically execute C# code dynamically at runtime from a string of code.
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Mono.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;