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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
upstream websocket { | |
server 127.0.0.1:8010; | |
} | |
server { |
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
#!/bin/zsh | |
# | |
# This script installs prezto into a vagrant/*nix box which already has zsh and oh-my-zsh | |
# installed. It also replaces the prompt color and enables the git prezto module. If | |
# executed via the suggested command below, also the default shell is changed into zsh. | |
# BTW, if using this for a vagrant box, be sure to execute the command while ssh'd into | |
# the box. | |
# | |
# Usage: curl -L https://raw-gist-file-address-here.sh | zsh && chsh -s $(which zsh) | |
# |
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
import {Injectable, provide} from 'angular2/core'; | |
import {Observable} from 'rxjs'; | |
const GEOLOCATION_ERRORS = { | |
'errors.location.unsupportedBrowser': 'Browser does not support location services', | |
'errors.location.permissionDenied': 'You have rejected access to your location', | |
'errors.location.positionUnavailable': 'Unable to determine your location', | |
'errors.location.timeout': 'Service timeout has been reached' | |
}; |
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
/**! | |
* nodocms backend application | |
* Copyright(c) 2015 Johannes Pichler - webpixels | |
* Created by johannespichler on 23.11.15. | |
* LGPLv3.0 Licensed | |
**/ | |
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
import {provide, bootstrap} from 'angular2/angular2'; | |
import {Component} from 'angular2/angular2'; | |
import {CORE_DIRECTIVES} from 'angular2/angular2'; | |
import {RouteConfig, ROUTER_DIRECTIVES, LocationStrategy, HashLocationStrategy, Location, RouterOutlet} from 'angular2/router'; | |
import {ComponentA} from './componenta_folder/componenta'; | |
import {ComponentB} from './componentb_folder/componentb'; | |
import {ComponentC} from './componentc_folder/componentc'; |
NewerOlder