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
GeorgeGkas / index.js
Created July 29, 2018 09:43
Deep copy/clone a class instance in Javascript
/**
* @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 March 4, 2018 11:26
Most Favorite Sublime Configuration 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":