This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { strict as assert } from 'assert'; | |
// | |
// Deep Clone of an object | |
// Blog-Post: https://www.workingsoftware.dev/how-to-deep-clone-in-javascript/ | |
// | |
// Self-Made | |
function deepClone(obj) { | |
if (typeof obj !== 'object' || obj === null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById('myButton').addEventListener('click', clickMe); | |
document.getElementById('parent').addEventListener('click', clickMe, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const calculator = { | |
read(a, b) { | |
this.a = a; | |
this.b = b; | |
}, | |
sum() { | |
return this.a + this.b; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: "Sample Link Post" | |
description: "Example and code for using link posts." | |
tags: [sample post, link post] | |
comments: true | |
link: http://aronbordin.com | |
categories: [intro] | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: "Sample Link Post" | |
description: "Example and code for using link posts." | |
tags: [sample post, link post] | |
comments: true | |
link: http://aronbordin.com | |
categories: [intro] | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: "Sample Link Post" | |
description: "Example and code for using link posts." | |
tags: [sample post, link post] | |
comments: true | |
link: http://aronbordin.com | |
categories: [intro] | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: dark-post | |
title: Dark Post | |
description: "Sample Dark post" | |
tags: [sample post] | |
--- | |
This is a sample post to show the dark post theme. To use this dark theme, just add: | |
{% highlight yaml %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: dark-post | |
title: Dark Post | |
description: "Sample Dark post" | |
tags: [sample post] | |
--- | |
This is a sample post to show the dark post theme. To use this dark theme, just add: | |
{% highlight yaml %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: Syntax Highlighting Post | |
description: "Demo post displaying the various ways of highlighting code in Markdown." | |
modified: 2016-12-01 | |
tags: [sample post, code, highlighting] | |
categories: [intro] | |
--- | |
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1] |
NewerOlder