-
Install docker, boot2docker and docker-compose
$ brew update && brew upgrade && brew clean $ brew install docker docker-compose boot2docker
This file contains hidden or 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
| <?php namespace OpenSimSim\Providers; | |
| use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; | |
| use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | |
| use OpenSimSim\Models\Entity; | |
| use OpenSimSim\Models\Generic; | |
| use OpenSimSim\Models\Work; | |
| use OpenSimSim\Models\Skill; | |
| use OpenSimSim\Models\OAuth\Client; | |
| use OpenSimSim\Models\Observer\EntityObserver; |
-
The initial command that invokes 'rails' loads the railties/bin/rails excutable: https://github.com/rails/rails/blob/master/railties/bin/rails
-
rails/railtie/cli (https://github.com/rails/rails/blob/master/railties/lib/rails/cli.rb) is loaded. If already inside the Rails app, start the app: https://github.com/rails/rails/blob/master/railties/lib/rails/app_rails_loader.rb If plugin is passed in ARGV, we are creating a new plugin: require 'rails/commands/plugin' https://github.com/rails/rails/blob/master/railties/lib/rails/commands/plugin.rb Otherwise, we are starting a new Rails app:
This file contains hidden or 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
| mapping = {'{': 1, '}': -1, '[': 2, ']': -2, '(': 3, ')': -3} | |
| case = '([{}])' | |
| total_score = 0 | |
| string_list = [letter for letter in case] | |
| def validBraces(string): | |
| if len(string) % 2 == 1: |
This file contains hidden or 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
| export default = App.Person = DS.Model.extend({ | |
| firstName: DS.attr(), | |
| lastName: DS.attr(), | |
| fullName: function(key, value) { | |
| //Setter - if | |
| if (arguments.length > 1) { | |
| var nameParts = value.split(/\s+/); | |
| this.set('firstName', nameParts[0]); | |
| this.set('lastName', nameParts[1]); |
This file contains hidden or 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
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="daveverwer" | |
| # Example aliases |
This file contains hidden or 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
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="daveverwer" | |
| # Example aliases |
This file contains hidden or 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
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("marmalade" . | |
| "http://marmalade-repo.org/packages/") t) | |
| (add-to-list 'package-archives | |
| '("melpa" . | |
| "http://melpa.milkbox.net/packages/") t) | |
| (package-initialize) | |
This file contains hidden or 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
| <VirtualHost *:80> | |
| ProxyPreserveHost On | |
| ProxyRequests Off | |
| ServerName jira.emoteworkstation.com | |
| ServerAlias jira.emoteworkstation.com | |
| ProxyPass / http://jira.emoteworkstation.com:8080/ | |
| ProxyPassReverse / http://jira.emoteworkstation.com:8080/ | |
| </VirtualHost> |
This file contains hidden or 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
| # basic settings | |
| if-shell 'test -z "$POWERLINE_COMMAND"' 'if-shell "which powerline-client" "set-environment -g POWERLINE_COMMAND powerline-client" "set-environment -g POWERLINE_COMMAND powerline"' | |
| set -g default-terminal "screen-256color" | |
| setw -g xterm-keys on | |
| set -g base-index 0 | |
| set -s escape-time 0 | |
| setw -g mode-mouse off | |
| # bindings | |
| # first rebind prefic |