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
{ | |
"window.zoomLevel": -2, | |
//"terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline", // mac only | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.colorTheme": "Material Palenight", | |
"editor.codeLens": true, | |
"window.zoomLevel": -1, | |
"editor.renderWhitespace": "boundary", | |
"search.exclude": { | |
"**/node_modules": true, |
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
#!/bin/bash | |
arrayContains () { | |
local array="$1[@]" | |
local seeking=$2 | |
local index=-1 | |
for element in "${!array}"; do | |
index=$((index + 1)) | |
if [[ $element == $seeking ]]; then | |
echo $index |
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
// event-bus.js | |
// this is an EmberJS service, compatible and tested with Ember 2.3.1 | |
// manages the EventSource for the entire application | |
import Ember from 'ember'; | |
// TODO: add a method to remove a channel or handler from _openChannels | |
export default Ember.Service.extend({ | |
store: Ember.inject.service(), |
NewerOlder