Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
Crabdivating delicious experiences

George Gkasdrogkas GeorgeGkas

🦀
Crabdivating delicious experiences
View GitHub Profile
@GeorgeGkas
GeorgeGkas / index.js
Created Jul 29, 2018
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(
Object.create(
// Set the prototype of the new object to the prototype of the instance.
@GeorgeGkas
GeorgeGkas / Preferences.sublime-settings
Last active Mar 4, 2018
Most Favorite Sublime Configuration Settings
View Preferences.sublime-settings
{
"added_words":
[
"truthy"
],
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Yesterday.tmTheme",
"draw_indent_guides": false,
"ensure_newline_at_eof_on_save": true,
"font_size": 12,
"ignored_packages":