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
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
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
"watch": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views app.js", | |
"watch-debug": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views --debug app.js", | |
"prewatch": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ", | |
"prewatch-debug": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ", | |
"clean": "rimraf dist temp coverage *.log npm-debug.log", | |
"dos2unix": "find ./ -type f \\( -iname \\*.json -o -iname \\*.js \\) -not -path */node_modules/* | xargs ../tools/dos2unix", | |
"lint": "npm run eslint && npm run jshint && npm run jscs", | |
"eslint": "eslint --ignore-path .eslintignore --ext .js -f stylish .", |
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
'use strict'; | |
module.exports = function (grunt) { | |
var env = grunt.option('env') || 'dev'; | |
var testFile = grunt.option('file') || 'test/**/*.js'; | |
var banner = '/*\n<%= pkg.name %> <%= pkg.version %>'; | |
banner += '- <%= pkg.description %>\n<%= pkg.repository.url %>\n'; | |
banner += 'Built on <%= grunt.template.today("yyyy-mm-dd") %>\n*/\n'; | |
var globalConfig = {}; |
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
[Serializable] | |
[Alias("Groups")] | |
public class Group : IDataMap, IHasId<short>, ISerializable { | |
public Group() { | |
} | |
public Group( SerializationInfo info, StreamingContext context ) { | |
Id = info.GetInt16("Id"); | |
Name = info.GetString("Name"); | |
} |