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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/lior/.oh-my-zsh" | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
################ start custom oh my zsh configs | |
POWERLEVEL9K_MODE='nerdfont-complete' |
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 harry = [ | |
{ | |
name: 'Math', | |
grade: 95 | |
}, | |
{ | |
name: 'Good Magic', | |
grade: 100 | |
}, | |
{ |
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
var carsCharsLength = cars.map(function(car){ | |
return car.length; | |
}); |
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
# Allows to chekin TFS files and associate them to a workItem if needed. | |
function lazytf() { | |
while(true) | |
do | |
clear | |
read -p "Checkin comment: " checkinComment | |
printf "Do you want to associate a workItem? [y]/[n] \n" | |
printf "#######################################\n" |
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
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 7, |
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
" Use the Solarized Dark theme | |
"set background=dark | |
"colorscheme solarized | |
"let g:solarized_termtrans=1 | |
" Make Vim more useful | |
set nocompatible | |
" Use the OS clipboard by default (on versions compiled with `+clipboard`) | |
set clipboard=unnamed | |
" Enhance command-line completion |
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
var tableToExcel = (function () { | |
var uri = 'data:application/vnd.ms-excel;base64,', | |
template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>', | |
base64 = function (s) { | |
return window.btoa(unescape(encodeURIComponent(s))) | |
}, | |
format = function (s, c) { | |
return s.replace(/{(\w+)}/g, function (m, p) { | |
return c[p]; | |
}) |
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
// Spread Example | |
let obj = { | |
hero : "Superman", | |
firstName : "Clark" | |
} | |
let lastName = "Kent"; | |
let newObj = { | |
...obj, | |
lastName |