Skip to content

Instantly share code, notes, and snippets.

View amitpatil321's full-sized avatar
💻
Exploring web!

Amit amitpatil321

💻
Exploring web!
View GitHub Profile
@Hoff97
Hoff97 / JSONE.js
Last active September 24, 2020 03:54
Special JSON object that is able to convert Objects with their methods and also converts cyclic objects.
//Erweiterte JSON, die auch spezielle Objekte parst und zu JSON umwandelt:
//Objekte, die sich selbst enthalten
//Objekte, die Funktionen enthalten
var JSONE = {};
JSONE.to = {};
JSONE.to.removeCycle = function(obj,already = [],lvl = 1,path="PATH#obj"){
if(typeof obj === "object")
{
for(var i in already)
{
@christianhanvey
christianhanvey / modx-snippets.php
Last active June 14, 2023 13:02
Useful snippets for MODX Revo
Snippet: [[SnippetName]]
Chunk: [[$ChunkName]]
System Setting: [[++SettingName]]
TV: [[*fieldName/TvName]]
Link tag: [[~PageId? &paramName=`value`]]
Placeholder: [[+PlaceholderName]]
<?php