Skip to content

Instantly share code, notes, and snippets.

<?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;
@andizzle
andizzle / Docker setup instruction.md
Last active August 29, 2015 14:19
Docker setup.md
  1. Install docker, boot2docker and docker-compose

    $ brew update && brew upgrade && brew clean $ brew install docker docker-compose boot2docker

@andizzle
andizzle / gist:0a1b3a0a8d9742cb4ddf
Created February 25, 2015 06:41
Rails initialisation summary
  1. The initial command that invokes 'rails' loads the railties/bin/rails excutable: https://github.com/rails/rails/blob/master/railties/bin/rails

  2. 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:

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:
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]);
# 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
# 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
(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)
<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>
# 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