This file contains 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
sudo yum install ruby | |
sudo yum install rubygems | |
sudo yum install ruby-devel | |
sudo gem update --system | |
sudo gem install compass |
This file contains 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 | |
try { | |
$filename = 'maintenance.enable'; | |
if (file_exists($filename)) { | |
unlink($filename); | |
echo "Application is now public"; | |
} else { |
This file contains 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
# Redirect public to maintenance page | |
RewriteCond %{DOCUMENT_ROOT}/dist/maintenance.enable -f | |
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC] | |
RewriteRule ^ /maintenance.html [R=301,L] |
This file contains 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
app.factory('dataService', ['$q', 'logger', 'apiService', 'resources', ($q, logger, apiService, resources) => { | |
var dataService = new App.Services.DataService($q); | |
dataService.source(new TSCore.App.Data.DataSources.MemoryDataSource($q, logger)); | |
dataService.source(new TSCore.App.Data.DataSources.ApiDataSource($q, apiService, logger)); | |
dataService.setResources(resources); | |
return dataService; |
This file contains 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
var config = new TSCore.Config({ | |
application: { | |
title: 'Project title', | |
version: '1.1.0' | |
} | |
}); |
This file contains 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
var config = new TSCore.Config({ | |
application: { | |
title: 'Project title', | |
version: '1.1.0' | |
} | |
}); | |
config.has('application.title'); | |
// true |
This file contains 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
var config = new TSCore.Config({ | |
application: { | |
title: 'Project title', | |
version: '1.1.0' | |
} | |
}); | |
config.get('application.title'); | |
// 'Project title' |
This file contains 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
var config = new TSCore.Config(); | |
config.set('application.repository', 'https://github.com/redound/ts-core.git'); | |
config.get(); | |
//{ | |
// application: { | |
// repository: "https://github.com/redound/ts-core.git" | |
// } |
This file contains 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
var config = new TSCore.Config({ | |
application: { | |
title: 'Project title', | |
version: '1.1.0' | |
} | |
}); | |
config.load({ application: { title: 'Project title', version: '1.2.0' } }); | |
config.get('application.version'); |
This file contains 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
var config = new TSCore.Config({ | |
application: { | |
title: 'Project title', | |
version: '1.1.0' | |
} | |
}); | |
config.clear(); | |
config.get(); |
OlderNewer