Skip to content

Instantly share code, notes, and snippets.

View shantanubhadoria's full-sized avatar
🏠
Working from home

Shantanu Bhadoria shantanubhadoria

🏠
Working from home
View GitHub Profile
@shantanubhadoria
shantanubhadoria / php-fastcgi
Created September 21, 2015 05:05
Setting up PHP fast-cgi using upstart
#/etc/default/php-fastcgi
PHP5=/usr/bin/php5-cgi
FASTCGI_USER=www-data
FASTCGI_GROUP=www-data
ADDRESS=127.0.0.1
PORT=9000
@shantanubhadoria
shantanubhadoria / config.js
Last active December 7, 2015 20:03
Angular Meteor: Using the pageTitle field inside data from angular-ui-router state params to modify html title tag
angular.module('module-name')
.config(function($stateProvider) {
$stateProvider
.state('base.location',{
url: '/location',
templateUrl: 'client/location/location.ng.html',
// This is supposed to update page title when state changes(works in angularjs but doesnt work in angular-meteor)
data: {
'pageTitle': 'Locations'