Skip to content

Instantly share code, notes, and snippets.

View arasevic's full-sized avatar

Andrej Rasevic arasevic

  • Rasevic Engineering
  • Washington, DC
View GitHub Profile

This method allows you to get all symbol properties of a given object as an array of symbols.

'use strict';

let obj = {};
let a = Symbol('a');
let b = Symbol.for('b');
@arasevic
arasevic / NewMachineSetUp
Last active October 7, 2016 14:28
Steps for setting up a new development environment from scratch on mac OS X El Capitan
These steps are for installing all the necessary development tools for a fresh and clean installation of OS X El Capitan on a mac.
1) Install Slack from the App Store
2) Install screenhero (at this point in time you need to have a pre-existing account in order for it to be free)
3) Install Google Chrome for mac
4) Install Firefox for mac
5) place the git-completion.bash file in your home directory
6) place the git-prommpt.sh file in your home directory
7) place the bash_profile.txt file in your home directory and rename it .bash_profile
8) install sublime text editor 2
9) install xcode from the App Store
@arasevic
arasevic / Git commands
Last active December 11, 2019 21:23
Helpful git commands I can never remember
# How to do a rebase the Bill way
git fetch
git rebase -p origin/branch_you_branched_off_of
# initial push to remote off of locally created branch
git push --set-upstream origin feature-11076
# command for returning latest tag information
git describe --abbrev=0 --tags
@arasevic
arasevic / es6CodeSnippets
Created January 18, 2018 12:06
examples of some new (and older) features of JS
let test = ["Nikola", "Aleksandra", "Andreja", "Luka"]
let name1, name2, name3, name4;
[name1, name2, name3, name4] = [...test]
console.log(name4) // Luka
const result = test.reduce((x,y) => x + y, "")