Skip to content

Instantly share code, notes, and snippets.

View jaredcnance's full-sized avatar

Jared Nance jaredcnance

  • Amazon Web Services
  • Seattle
View GitHub Profile
{
"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,
@jaredcnance
jaredcnance / deploy.sh
Created October 12, 2016 18:25
Deploy Docker Compose To Remote Host
#!/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
@jaredcnance
jaredcnance / event-bus.js
Created March 2, 2016 21:28
Ember Event Bus
// 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(),