Skip to content

Instantly share code, notes, and snippets.

View GeorgeGkas's full-sized avatar
Crabdivating delicious experiences

George Gkasdrogkas GeorgeGkas

Crabdivating delicious experiences
View GitHub Profile
GeorgeGkas / index.js
Created July 29, 2018 09:43
Deep copy/clone a class instance in Javascript
View index.js
* @function
* @description Deep clone a class instance.
* @param {object} instance The class instance you want to clone.
* @returns {object} A new cloned instance.
function clone(instance) {
return Object.assign(
// Set the prototype of the new object to the prototype of the instance.
GeorgeGkas / Preferences.sublime-settings
Last active March 4, 2018 11:26
Most Favorite Sublime Configuration Settings
View Preferences.sublime-settings
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Yesterday.tmTheme",
"draw_indent_guides": false,
"ensure_newline_at_eof_on_save": true,
"font_size": 12,